Skip to content

Commit 434837d

Browse files
committed
Update documentation build scripts
1 parent bd9616e commit 434837d

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
sudo apt install -y build-essential sudo git wget curl python3-sphinx rsync
2020
2121
# 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
2323
sudo apt install -y libgdk-pixbuf2.0-dev libsm-dev libice-dev librsvg2-dev
2424
sudo apt install -y libxfixes-dev libxi-dev libx11-dev gettext intltool
2525
sudo apt install -y libxml-parser-perl x11proto-core-dev libasound2-dev

ci/docs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ sudo make
1919

2020
# make documentation
2121
show-green "Building documentation"
22+
sphinx-build -b html doc doc/_build/html
2223
./make-doc.sh
23-
mkdir deploy
24+
mkdir -p deploy
2425
cp -r doc/_build/html deploy/sugar3
2526
touch deploy/.nojekyll
2627
# create an index.html so that users don't become confused

doc/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ endif
1515
# Internal variables.
1616
PAPEROPT_a4 = -D latex_paper_size=a4
1717
PAPEROPT_letter = -D latex_paper_size=letter
18-
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
18+
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS)
1919
# the i18n builder cannot share the environment and doctrees with the others
2020
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
2121

@@ -52,9 +52,9 @@ clean:
5252
rm -rf $(BUILDDIR)/*
5353

5454
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."
5858

5959
dirhtml:
6060
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml

make-doc.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
#!/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
213

314
sphinx-apidoc --force --separate --output-dir=doc src
415
make -C doc html

src/sugar3/sugar-key-grabber.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,4 +312,4 @@ sugar_key_grabber_is_modifier(SugarKeyGrabber *grabber, guint keycode, guint mas
312312
XFreeModifiermap (modmap);
313313

314314
return is_modifier;
315-
}
315+
}

0 commit comments

Comments
 (0)