Skip to content

Commit

Permalink
Try docs build with build-docs.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Ankita Katiyar <[email protected]>
  • Loading branch information
ankatiyar committed Apr 26, 2024
1 parent be7236e commit 4ddbba2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 55 deletions.
7 changes: 7 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ build:
tools:
python: "3.9"
nodejs: "19"
jobs:
post_checkout:
- git fetch --unshallow || true
pre_build:
- pip freeze
- python -m sphinx -WETan -j auto -D language=en -b linkcheck -d _build/doctrees docs/source _build/linkcheck


sphinx:
builder: html
Expand Down
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

14 changes: 14 additions & 0 deletions docs/build-docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -e

# Exit script if you try to use an uninitialized variable.
set -o nounset

action=$1

if [ "$action" == "linkcheck" ]; then
sphinx-build -WETan -j auto -D language=en -b linkcheck -d docs/build/doctrees docs/source docs/build/linkcheck
elif [ "$action" == "docs" ]; then
sphinx-build -WETa --keep-going -j auto -D language=en -b html -d docs/build/doctrees docs/source docs/build/html
fi
35 changes: 0 additions & 35 deletions docs/make.bat

This file was deleted.

0 comments on commit 4ddbba2

Please sign in to comment.