Skip to content

Commit

Permalink
Document the documentation process
Browse files Browse the repository at this point in the history
  • Loading branch information
autra committed Jul 3, 2020
1 parent e80a146 commit f35146c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- pip install .
- pip install .[dev]
- pytest
- flake8 setup.py py3dtiles/
- flake8 setup.py py3dtiles/ docs/
# TODO move that in unit tests
- py3dtiles info tests/pointCloudRGB.pnts
tags:
Expand Down
8 changes: 7 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ SPHINX_APIDOC_OPTIONS="members,show-inheritance" sphinx-apidoc -o ./api ../py3dt
```
This command needs to be used only when new files are added (TODO check if sphinx-autoapi wouldn't do this job for us?)

To regenerate the doc:
To regenerate the doc for one version:

```
make clean && make html
```
(For some reason, make clean is often necessary if the toctree changes)

To generate the doc as gitlab does it:

```
sphinx-multiversion . <outfolder>
```
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
author = u'Augustin Trancart, Paul Blottière, Jérémy Gaillard, Ludovic Delauné, Nicolas Saul, Pierre-Éric Pelloux-Prayer, Raphaël Delhome, Vincent Jaillot, Éric Lemoine'

# The short X.Y version
latest_tag=subprocess.check_output(['git', 'describe', '--tags', '--abbrev=0'])
latest_tag = subprocess.check_output(['git', 'describe', '--tags', '--abbrev=0'])
print(latest_tag)
version = latest_tag
# The full version, including alpha/beta/rc tags
Expand Down

0 comments on commit f35146c

Please sign in to comment.