-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(template): Add API documentation to the template 2/4 (Sphinx) (#124
) * Add the necessary dependencies in pyproject.toml and conf.py, to generate the API documentation with sphinx. * Remove unusable file in sphinx (post_gen_project.py) * Create and edit the file for automatic API documentation. * Edit the index.rst with all the files --------- Co-authored-by: Ivan Ogasawara <ivan.ogasawara@gmail.com>
- Loading branch information
1 parent
e9843e2
commit e3b2baf
Showing
9 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
src/scicookie/{{cookiecutter.project_slug}}/docs-sphinx/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/scicookie/{{cookiecutter.project_slug}}/docs-sphinx/readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
```{include} ../README.md | ||
``` |
1 change: 0 additions & 1 deletion
1
src/scicookie/{{cookiecutter.project_slug}}/docs-sphinx/readme.rst
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
src/scicookie/{{cookiecutter.project_slug}}/docs/api/references.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
API references | ||
============== | ||
|
||
.. automodule:: {{cookiecutter.package_slug}} | ||
:members: | ||
|
||
.. automodule:: {{cookiecutter.package_slug}}.{{cookiecutter.package_slug}} | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters