Skip to content

Commit

Permalink
Doc build update to move api to generated dir and update to gitignore (
Browse files Browse the repository at this point in the history
…#31)

* moved api to generated directory

* added ignore of DS_Store files

* Update .gitignore to correct version file
  • Loading branch information
ehsteve committed Aug 21, 2023
1 parent fff5463 commit ec7ab3a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion hermes_{{ cookiecutter.instr_name }}/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,8 @@ docs/_build
docs/generated
docs/api
docs/whatsnew/latest_changelog.txt
hermes_{{ cookiecutter.instr_name }}/version.py
hermes_{{ cookiecutter.instr_name }}/_version.py
htmlcov/

# Mac hidden files
.DS_Store
2 changes: 1 addition & 1 deletion hermes_{{ cookiecutter.instr_name }}/docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ help:

clean:
rm -rf $(BUILDDIR)
rm -rf api
rm -rf ./generated

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
Expand Down
3 changes: 3 additions & 0 deletions hermes_{{ cookiecutter.instr_name }}/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
"sphinx_changelog",
]

# Set automodapi to generate files inside the generated directory
automodapi_toctreedirnm = "generated/api"

# Set automodapi to generate files inside the generated directory
# automodapi_toctreedirnm = "_build/html/api"
numpydoc_show_class_members = False
Expand Down

0 comments on commit ec7ab3a

Please sign in to comment.