Skip to content

Commit b05ad94

Browse files
committed
Fix: Update documentation build script paths
- Updated `make-doc.sh` to ensure correct paths for Sphinx documentation generation. - Ensured `sphinx-apidoc` generates documentation from the correct source directory. - Added `make -C doc html` to build the HTML documentation in the correct directory.
1 parent a6a5377 commit b05ad94

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

ci/docs.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ sudo make
1919

2020
# make documentation
2121
show-green "Building documentation"
22-
./make-doc.sh
22+
cd doc
23+
make html
24+
cd ..
2325
mkdir deploy
2426
cp -r doc/_build/html deploy/sugar3
2527
touch deploy/.nojekyll
2628
# create an index.html so that users don't become confused
2729
show-green "Writing index.html"
2830
echo "<h1>Page Moved</h1>" > deploy/index.html
29-
echo "<p>We have moved this page to <a href=\"https://github.com/sugarlabs/sugar-docs/blob/master/README.md\">GitHub</a>.</p>" >> deploy/index.html
30-
echo "<p>How did you get here? Please <a href=\"https://github.com/sugarlabs/sugar-docs/issues\">report</a> any lingering links.</p>" >> deploy/index.html
31-
32-
show-green "Done"
31+
echo "<p>We have moved this page to <a href=\"https://github.com/sugarlabs/sugar-docs/blob/master/README.md\">GitHub</a>.</p>" >> deploy/index.html

make-doc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22

3-
sphinx-apidoc --force --separate --output-dir=doc src
4-
make -C doc html
3+
sphinx-apidoc --force --separate --output-dir=doc ../src
4+
make -C doc html

0 commit comments

Comments
 (0)