mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Use the same sphinx config for dev and Read The Docs
This commit is contained in:
@@ -55,10 +55,9 @@ The GUI's HTML file is automatically built when building the LOOT GUI binary, bu
|
||||
|
||||
## Building The Documentation
|
||||
|
||||
The documentation is built using [Doxygen](http://www.stack.nl/~dimitri/doxygen/), [Breathe](https://breathe.readthedocs.io/en/latest/) and [Sphinx](http://www.sphinx-doc.org/en/stable/). Install them (Breathe and Sphinx support Python 2 and 3) and make sure they're accessible from your `PATH`, then:
|
||||
The documentation is built using [Doxygen](http://www.stack.nl/~dimitri/doxygen/), [Breathe](https://breathe.readthedocs.io/en/latest/) and [Sphinx](http://www.sphinx-doc.org/en/stable/). Install them (Breathe and Sphinx support Python 2 and 3) and make sure they're accessible from your `PATH`, then run:
|
||||
|
||||
```
|
||||
doxygen docs/api/Doxyfile
|
||||
sphinx-build -b html docs build/docs/sphinx
|
||||
```
|
||||
|
||||
|
||||
+4
-7
@@ -22,14 +22,11 @@
|
||||
|
||||
import subprocess, os
|
||||
|
||||
read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
|
||||
output_directory = os.path.join('..', 'build', 'docs')
|
||||
if not os.path.exists(output_directory):
|
||||
os.makedirs(output_directory)
|
||||
|
||||
if read_the_docs_build:
|
||||
output_directory = '../build/docs'
|
||||
if not os.path.exists(output_directory):
|
||||
os.makedirs(output_directory)
|
||||
|
||||
subprocess.call('doxygen', shell=True, cwd='..')
|
||||
subprocess.call(['doxygen', 'docs/api/Doxyfile'], cwd='..')
|
||||
|
||||
# -- General configuration ------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user