Skip to content

Commit

Permalink
Update documentation for 1.0.0 (#64)
Browse files Browse the repository at this point in the history
* Update documentation for 1.0.0

* Use uv in readthedocs

* Fix docs source dir
  • Loading branch information
JohnPaton authored Dec 4, 2024
1 parent 12ef986 commit 4262da7
Show file tree
Hide file tree
Showing 24 changed files with 421 additions and 140 deletions.
17 changes: 9 additions & 8 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ sphinx:

formats: all

# https://docs.readthedocs.io/en/stable/build-customization.html#install-dependencies-with-uv

build:
os: ubuntu-20.04
os: "ubuntu-22.04"
tools:
python: "3.10"

python:
install:
- method: pip
path: .
extra_requirements:
- docs
commands:
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
- uv sync --dev --frozen
- uv run -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs/source $READTHEDOCS_OUTPUT/html
15 changes: 13 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,20 @@ BUILDDIR = build
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile
.PHONY: help Makefile clean build apidocs

clean:
rm -rf build/ source/api

# automatic api docs of airbase
apidocs:
uv run sphinx-apidoc --output-dir ./source/api ../airbase --force --maxdepth 2 --module-first

# Build the Sphinx documentation.
build: apidocs
uv run $(SPHINXBUILD) "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
uv run @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
3 changes: 0 additions & 3 deletions docs/requirements.txt

This file was deleted.

44 changes: 0 additions & 44 deletions docs/source/airbase.rst

This file was deleted.

7 changes: 7 additions & 0 deletions docs/source/api/airbase.airbase.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
airbase.airbase module
======================

.. automodule:: airbase.airbase
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/airbase.cli.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
airbase.cli module
==================

.. automodule:: airbase.cli
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/airbase.csv_api.client.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
airbase.csv\_api.client module
==============================

.. automodule:: airbase.csv_api.client
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/airbase.csv_api.dataset.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
airbase.csv\_api.dataset module
===============================

.. automodule:: airbase.csv_api.dataset
:members:
:undoc-members:
:show-inheritance:
42 changes: 42 additions & 0 deletions docs/source/api/airbase.csv_api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
airbase.csv\_api package
========================

.. automodule:: airbase.csv_api
:members:
:undoc-members:
:show-inheritance:

Submodules
----------

airbase.csv\_api.client module
------------------------------

.. automodule:: airbase.csv_api.client
:members:
:undoc-members:
:show-inheritance:

airbase.csv\_api.dataset module
-------------------------------

.. automodule:: airbase.csv_api.dataset
:members:
:undoc-members:
:show-inheritance:

airbase.csv\_api.session module
-------------------------------

.. automodule:: airbase.csv_api.session
:members:
:undoc-members:
:show-inheritance:

airbase.csv\_api.types module
-----------------------------

.. automodule:: airbase.csv_api.types
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/airbase.csv_api.session.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
airbase.csv\_api.session module
===============================

.. automodule:: airbase.csv_api.session
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/airbase.csv_api.types.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
airbase.csv\_api.types module
=============================

.. automodule:: airbase.csv_api.types
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/airbase.parquet_api.client.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
airbase.parquet\_api.client module
==================================

.. automodule:: airbase.parquet_api.client
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/airbase.parquet_api.dataset.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
airbase.parquet\_api.dataset module
===================================

.. automodule:: airbase.parquet_api.dataset
:members:
:undoc-members:
:show-inheritance:
42 changes: 42 additions & 0 deletions docs/source/api/airbase.parquet_api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
airbase.parquet\_api package
============================

.. automodule:: airbase.parquet_api
:members:
:undoc-members:
:show-inheritance:

Submodules
----------

airbase.parquet\_api.client module
----------------------------------

.. automodule:: airbase.parquet_api.client
:members:
:undoc-members:
:show-inheritance:

airbase.parquet\_api.dataset module
-----------------------------------

.. automodule:: airbase.parquet_api.dataset
:members:
:undoc-members:
:show-inheritance:

airbase.parquet\_api.session module
-----------------------------------

.. automodule:: airbase.parquet_api.session
:members:
:undoc-members:
:show-inheritance:

airbase.parquet\_api.types module
---------------------------------

.. automodule:: airbase.parquet_api.types
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/airbase.parquet_api.session.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
airbase.parquet\_api.session module
===================================

.. automodule:: airbase.parquet_api.session
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/airbase.parquet_api.types.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
airbase.parquet\_api.types module
=================================

.. automodule:: airbase.parquet_api.types
:members:
:undoc-members:
:show-inheritance:
36 changes: 36 additions & 0 deletions docs/source/api/airbase.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
airbase package
===============

.. automodule:: airbase
:members:
:undoc-members:
:show-inheritance:

Subpackages
-----------

.. toctree::
:maxdepth: 2

airbase.csv_api
airbase.parquet_api
airbase.summary

Submodules
----------

airbase.airbase module
----------------------

.. automodule:: airbase.airbase
:members:
:undoc-members:
:show-inheritance:

airbase.cli module
------------------

.. automodule:: airbase.cli
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/airbase.summary.db.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
airbase.summary.db module
=========================

.. automodule:: airbase.summary.db
:members:
:undoc-members:
:show-inheritance:
18 changes: 18 additions & 0 deletions docs/source/api/airbase.summary.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
airbase.summary package
=======================

.. automodule:: airbase.summary
:members:
:undoc-members:
:show-inheritance:

Submodules
----------

airbase.summary.db module
-------------------------

.. automodule:: airbase.summary.db
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/modules.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
airbase
=======

.. toctree::
:maxdepth: 2

airbase
8 changes: 4 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@

# -- Project information -----------------------------------------------------

today = date.today()
today = date.today().isoformat()

project = "AirBase"
copyright = f"2019-{today.year}, John Paton"
copyright = f"2019-{date.today().year}, John Paton"
author = "John Paton"

# The full version, including alpha/beta/rc tags
Expand Down Expand Up @@ -74,7 +74,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = "en"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down Expand Up @@ -117,7 +117,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
# html_static_path = ["_static"]

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
Expand Down
Loading

0 comments on commit 4262da7

Please sign in to comment.