Skip to content

Commit e004711

Browse files
committed
fix doxygen
1 parent 1fbb4f8 commit e004711

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

build_docs.sh

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -e # Exit with nonzero exit code if anything fails
33

4-
# Doxygen
4+
# Build Doxygen
55
echo "Build the Doxygen documentation"
66
cd Docs/Doxygen
77
doxygen doxygen.conf &> doxygen.out
@@ -12,27 +12,29 @@ if grep -q "warning:" doxygen.out; then
1212
fi
1313
cd ../..
1414

15-
# sphinx
16-
cd Docs/sphinx_documentation
17-
18-
echo "Build the Sphinx documentation for Amrex."
19-
make PYTHON="python3" latexpdf
20-
mv build/latex/amrex.pdf source/
21-
make clean
22-
make SPHINXOPTS='-v -W --keep-going' PYTHON="python3" html
23-
cd ../../
24-
2515
mkdir build
2616
cd build
2717
mkdir docs_html docs_xml
2818

29-
# add doxygen
19+
# copy doxygen to target location
3020
mkdir -p docs_html/doxygen
3121
cp -rp ../Docs/Doxygen/html/* docs_html/doxygen/
3222
mkdir -p docs_xml/doxygen
3323
cp -rp ../Docs/Doxygen/xml/* docs_xml/doxygen/
3424
# add tagfile to allow other docs to interlink with amrex
3525
cp ../Docs/Doxygen/amrex-doxygen-web.tag.xml docs_xml/doxygen/.
3626

37-
# add sphinx
27+
# Build sphinx
28+
cd ../Docs/sphinx_documentation
29+
30+
echo "Build the Sphinx documentation for Amrex."
31+
make PYTHON="python3" latexpdf
32+
mv build/latex/amrex.pdf source/
33+
make clean
34+
make SPHINXOPTS='-v -W --keep-going' PYTHON="python3" html
35+
cd ../../
36+
37+
cd build
38+
39+
# copy sphinx to target location
3840
cp -rp ../Docs/sphinx_documentation/build/html/* docs_html/

0 commit comments

Comments
 (0)