Skip to content

Example of how to write documentation for python packages

Notifications You must be signed in to change notification settings

yoctoyotta1024/example-python-documentation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example repository (Python)

This git repository is a minimal example to show how to structure a Python package, and how to use GitHub Actions to automatically run tests and build documentation for your software.

Install the package

Create a new environment will all dependencies and make it the active environment

conda env create -f environment.yml
conda activate mypackage

Inspect information about the environment and list all installed packages

conda info
conda list

Install our own package in the environment

python3 -m pip install .

Run tests

Run the test suite

pytest .

Build documentation

Auto-generate documentation

cd docs/
make html

The generated HTML files are stored in docs/build/html.

When commits are pushed or merged to the remote repository, a new version of the documentation is build and published on GitHub pages.


Further information

About

Example of how to write documentation for python packages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%