3 # Copyright (c) 2018-2023. The SimGrid Team. All rights reserved.
5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of the license (GNU LGPL) which comes with this package.
8 # Simplistic script to rebuild our documentation with sphinx-build
10 # If you are missing some dependencies, try: pip3 install --requirement docs/requirements.txt
12 # Python needs to find simgrid on my machine, but not ctest -- sorry for the hack
13 if [ -e /opt/simgrid ] ; then chmod +x /opt/simgrid; fi
18 if [ "x$1" != 'xdoxy' ] && [ -e build/xml ] ; then
19 echo "Doxygen not rerun: 'doxy' was not provided as an argument"
22 rm -rf build/xml source/api/
23 (cd source; doxygen 2>&1; cd ..) | (grep -v "is not documented." || true) # XXXXX Reduce the verbosity for now
27 if [ "x$1" != 'xlogs' ] && [ -e build/log_categories.rst ] ; then
28 echo "Log categories not extracted: 'logs' was not provided as an argument"
31 perl ./bin/extract_logs_hierarchy.pl ../ > build/log_categories.rst
37 perl -pe 's/(xlink:href="(?:http|.*\.html))/target="_top" $1/' \
38 source/img/graphical-toc.svg > build/html/graphical-toc.svg
41 echo "Undocumented examples:"
42 for ex in $( (cd .. ; \
43 find examples/cpp/ -name '*.cpp'; \
44 find examples/c/ -name '*.c'; \
45 find examples/python -name '*.py'; \
48 if grep -q "example-tab:: $ex" ../examples/README.rst ; then :
49 # echo "found example-tab:: $ex"
50 elif grep -q "showfile:: $ex" ../examples/README.rst ; then :
57 if [ -e /usr/bin/linkchecker ] ; then
58 linkchecker --no-status -o csv --ignore-url='.*\.css$' --ignore-url=build/html/_modules build/html \
60 | grep -v 'urlname;parentname;baseref;result;warningstring'
63 echo "Install linkchecker to have it executed when you build the doc."