File tree Expand file tree Collapse file tree 4 files changed +18
-6
lines changed Expand file tree Collapse file tree 4 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 19
19
sudo apt install -y build-essential sudo git wget curl python3-sphinx rsync
20
20
21
21
# install sugar-toolkit-gtk3 dependencies
22
- sudo apt install -y python-all- dev python3-all -dev libgtk-3-dev
22
+ sudo apt install -y python-dev-is-python3 python3-dev libgtk-3-dev
23
23
sudo apt install -y libgdk-pixbuf2.0-dev libsm-dev libice-dev librsvg2-dev
24
24
sudo apt install -y libxfixes-dev libxi-dev libx11-dev gettext intltool
25
25
sudo apt install -y libxml-parser-perl x11proto-core-dev libasound2-dev
Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ sudo make
19
19
20
20
# make documentation
21
21
show-green " Building documentation"
22
+ sphinx-build -b html doc doc/_build/html
22
23
./make-doc.sh
23
- mkdir deploy
24
+ mkdir -p deploy
24
25
cp -r doc/_build/html deploy/sugar3
25
26
touch deploy/.nojekyll
26
27
# create an index.html so that users don't become confused
Original file line number Diff line number Diff line change 15
15
# Internal variables.
16
16
PAPEROPT_a4 = -D latex_paper_size=a4
17
17
PAPEROPT_letter = -D latex_paper_size=letter
18
- ALLSPHINXOPTS = -d $(BUILDDIR ) /doctrees $(PAPEROPT_$(PAPER ) ) $(SPHINXOPTS ) .
18
+ ALLSPHINXOPTS = -d $(BUILDDIR ) /doctrees $(PAPEROPT_$(PAPER ) ) $(SPHINXOPTS )
19
19
# the i18n builder cannot share the environment and doctrees with the others
20
20
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER ) ) $(SPHINXOPTS ) .
21
21
52
52
rm -rf $(BUILDDIR ) /*
53
53
54
54
html :
55
- $(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
56
- @echo
57
- @echo " Build finished. The HTML pages are in $( BUILDDIR) /html."
55
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
56
+ @echo
57
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
58
58
59
59
dirhtml :
60
60
$(SPHINXBUILD ) -b dirhtml $(ALLSPHINXOPTS ) $(BUILDDIR ) /dirhtml
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ set -e
3
+
4
+ if [ ! -d " src" ]; then
5
+ echo " Error: ../src directory does not exist."
6
+ exit 1
7
+ fi
8
+
9
+ if [ ! -d " doc" ]; then
10
+ echo " Error: doc directory does not exist."
11
+ exit 1
12
+ fi
2
13
3
14
sphinx-apidoc --force --separate --output-dir=doc src
4
15
make -C doc html
You can’t perform that action at this time.
0 commit comments