Skip to content

Commit

Permalink
Docs (#3)
Browse files Browse the repository at this point in the history
* Added hythen to package name

* Removed path manipulation in conf.py

* Updated makefile to target package

* unhyphenated project name

* Updated readme
  • Loading branch information
lewis-chambers authored Jul 23, 2024
1 parent 19ec937 commit fd8977a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ To make thing move a bit faster, use the script `./rename-package.sh` to rename

Will rename the package and all references to "acoolnewname"

After doing this it is recommended to also run:

```
cd docs
make apidoc
```

To keep your documentation in sync with the package name. You may need to delete a file called `mypackage.rst` from `./docs/sources/...`

### Deploying Docs to GitHub Pages

If you want docs to be published to github pages automatically, go to your repo settings and enable docs from GitHub Actions and the workflows will do the rest.
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ help:
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

apidoc:
@sphinx-apidoc -f ../src/* -o sources
@sphinx-apidoc -f ../src/mypackage -o sources
5 changes: 0 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

import os, sys

path = os.path.abspath("../src")
sys.path.append(path)

import mypackage

project = 'My Project'
Expand Down
2 changes: 1 addition & 1 deletion docs/sources/modules.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mypackage
=======
=========

.. toctree::
:maxdepth: 4
Expand Down
4 changes: 2 additions & 2 deletions docs/sources/project.rst → docs/sources/mypackage.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
mypackage package
===============
=================

Submodules
----------

mypackage.module module
---------------------
-----------------------

.. automodule:: mypackage.module
:members:
Expand Down

0 comments on commit fd8977a

Please sign in to comment.