Skip to content

Commit 31d0166

Browse files
committed
Move doctrees out of build directory
And remove level of nesting. Doctrees can be shared between different builders, so it's not necessary to place them in target-specific directories. This means that the structure of BookHTML/ matches what is in gh-pages.
1 parent 8d31045 commit 31d0166

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
doctrees/
12
BookHTML/
2-
BookLatex/
3+
BookLatex/

build_html.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sphinx-build -b html -d BookHTML/doctrees Book BookHTML/html
1+
sphinx-build -b html -d doctrees Book BookHTML

build_release_html.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# get rid of old files, so we don't keep them around in the git repo
22
# when a file or directory was renamed
3-
rm -rf BookHTML/html/*/
4-
rm -f BookHTML/html/*.html
5-
rm -f BookHTML/html/.buildinfo
3+
rm -rf BookHTML/*/
4+
rm -f BookHTML/*.html
5+
rm -f BookHTML/.buildinfo
66

7-
sphinx-build -b html -d BookHTML/doctrees -a Book BookHTML/html
7+
sphinx-build -b html -d doctrees -a Book BookHTML

build_release_latex.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ rm -rf BookLatex
22
# inkscape Book/hashtables/images/basic_hashtable.svg -D -A Book/hashtables/images/basic_hashtable.pdf
33
# inkscape Book/hashtables/images/doubly_linked_hashtable.svg -D -A Book/hashtables/images/doubly_linked_hashtable.pdf
44
# inkscape Book/hashtables/images/ordered_hashtable.svg -D -A Book/hashtables/images/ordered_hashtable.pdf
5-
sphinx-build -b latex -d BookLatex/doctrees -a Book BookLatex/latex
6-
cd BookLatex/latex
5+
sphinx-build -b latex -d doctrees -a Book BookLatex
6+
cd BookLatex
77
pdflatex PHPInternalsBook.tex
88
pdflatex PHPInternalsBook.tex
9-
cd ../..
9+
cd ..

0 commit comments

Comments
 (0)