Skip to content

Commit

Permalink
docs: add manual docs on autodoc/ci
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ong committed Dec 29, 2023
1 parent dfcf9a3 commit 528f492
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/autodoc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Automatic documentation
===

The documentation in this repo was setup using this guide:
https://redandgreen.co.uk/sphinx-to-github-pages-via-github-actions/


Key commands
===

Setup from scratch:

`cd /docs`
`sphinx-quickstart`

Generate .rst's automatically (from root directory)
`sphinx-apidoc -o docs .`

Manually generate html (already done in Github Action):
`cd docs && make html`

Clean html

`cd docs && make clean`
24 changes: 24 additions & 0 deletions docs/ci.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Automatic documentation
===

The documentation in this repo was setup using this guide:
https://redandgreen.co.uk/sphinx-to-github-pages-via-github-actions/


Key commands
===

Setup from scratch:

`cd /docs`
`sphinx-quickstart`

Generate .rst's automatically (from root directory)
`sphinx-apidoc -o docs .`

Manually generate html (already done in Github Action):
`cd docs && make html`

Clean html

`cd docs && make clean`
3 changes: 3 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ Welcome to adventofcode2023's documentation!
:maxdepth: 2
:caption: Contents:

autodoc.md
ci.md
modules


Indices and tables
==================
Expand Down

0 comments on commit 528f492

Please sign in to comment.