Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ trim_trailing_whitespace = true
[*.py]
indent_size = 4

[Makefile]
indent_style = tab

[*.md]
max_line_length = off
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# Force the following filetypes to have unix eols, so Windows does not break them
*.* text eol=lf

*.bat text eol=crlf

# Denote all files that are truly binary and should not be modified.
*.7z binary
*.bak binary
Expand Down
7 changes: 7 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ tasks:
cmds:
- uv run pytest --durations 10

build-docs:
desc: Build HTML documentation
dir: docs
cmds:
- uv run sphinx-apidoc -o source/api ../src/tasktronaut
- uv run make html

# https://docs.astral.sh/uv/guides/package/#updating-your-version
bump-version:
desc: Bump Python package minor version
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# 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)
35 changes: 35 additions & 0 deletions docs/make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.https://www.sphinx-doc.org/
exit /b 1
)

if "%1" == "" goto help

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%

:end
popd
Empty file added docs/source/_static/.keep
Empty file.
Empty file added docs/source/_templates/.keep
Empty file.
3 changes: 3 additions & 0 deletions docs/source/advanced.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Advanced Use Cases
==================

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 @@
API Documentation
=================

.. toctree::
:maxdepth: 4

tasktronaut
21 changes: 21 additions & 0 deletions docs/source/api/tasktronaut.backends.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
tasktronaut.backends package
============================

Submodules
----------

tasktronaut.backends.rq module
------------------------------

.. automodule:: tasktronaut.backends.rq
:members:
:show-inheritance:
:undoc-members:

Module contents
---------------

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

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

.. toctree::
:maxdepth: 4

tasktronaut.backends

Submodules
----------

tasktronaut.backend module
--------------------------

.. automodule:: tasktronaut.backend
:members:
:show-inheritance:
:undoc-members:

tasktronaut.builder module
--------------------------

.. automodule:: tasktronaut.builder
:members:
:show-inheritance:
:undoc-members:

tasktronaut.context module
--------------------------

.. automodule:: tasktronaut.context
:members:
:show-inheritance:
:undoc-members:

tasktronaut.decorators module
-----------------------------

.. automodule:: tasktronaut.decorators
:members:
:show-inheritance:
:undoc-members:

tasktronaut.errors module
-------------------------

.. automodule:: tasktronaut.errors
:members:
:show-inheritance:
:undoc-members:

tasktronaut.process module
--------------------------

.. automodule:: tasktronaut.process
:members:
:show-inheritance:
:undoc-members:

tasktronaut.steps module
------------------------

.. automodule:: tasktronaut.steps
:members:
:show-inheritance:
:undoc-members:

tasktronaut.types module
------------------------

.. automodule:: tasktronaut.types
:members:
:show-inheritance:
:undoc-members:

tasktronaut.utils module
------------------------

.. automodule:: tasktronaut.utils
:members:
:show-inheritance:
:undoc-members:

Module contents
---------------

.. automodule:: tasktronaut
:members:
:show-inheritance:
:undoc-members:
31 changes: 31 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = "tasktronaut"
author = "Chris Stefano"
copyright = f"2025, {author}" # pylint: disable=redefined-builtin

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
"sphinx.ext.autodoc", # Auto-generate docs from docstrings
"sphinx_autodoc_typehints", # Include type hints in docs
"sphinx_rtd_theme", # Use Read the Docs theme
]

templates_path = ["_templates"]
exclude_patterns = []


# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "sphinx_rtd_theme"
html_static_path = ["_static"]
html_title = "tasktronaut Documentation"
22 changes: 22 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.. tasktronaut documentation master file, created by
sphinx-quickstart on Fri Nov 7 14:55:45 2025.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

``tasktronaut`` Documentation
=============================

.. toctree::
:maxdepth: 1
:caption: Contents:

user_guide
advanced
api/modules

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
2 changes: 2 additions & 0 deletions docs/source/user_guide.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User Guide
==========
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ build = [
]
docs = [
"sphinx>=5.0",
"sphinx-autodoc-typehints>=3.0.1",
"sphinx-rtd-theme>=1.0",
]

Expand Down
34 changes: 34 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.