Set up a documentation tool

- use sphinx to document the developed package
- create nox session "docs" to build the docs
This commit is contained in:
Alexander Hess 2024-09-10 02:09:09 +02:00
commit c07a9ed19f
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
8 changed files with 608 additions and 2 deletions

15
docs/conf.py Normal file
View file

@ -0,0 +1,15 @@
"""Configure sphinx."""
import lalib
project = lalib.__pkg_name__
author = lalib.__author__
project_copyright = f"2024, {author}"
version = release = lalib.__version__
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx_autodoc_typehints",
]

25
docs/index.rst Normal file
View file

@ -0,0 +1,25 @@
lalib - A Python library to study linear algebra
================================================
.. toctree::
:hidden:
:maxdepth: 1
license
reference
The goal of this package is to provide
a library written in pure `Python`_ (incl. the `standard library`_)
to learn about linear algebra by reading and writing code.
Prerequisites
-------------
Python 3.9 or newer is needed.
The package depends only on core Python (incl. the standard library).
.. _standard library: https://docs.python.org/3/library/index.html
.. _python: https://docs.python.org/3/

4
docs/license.rst Normal file
View file

@ -0,0 +1,4 @@
License
=======
.. include:: ../LICENSE.txt

6
docs/reference.rst Normal file
View file

@ -0,0 +1,6 @@
Reference
=========
.. contents::
:local:
:backlinks: none