feat/OPS-61: add basic documentation

It currently works only for haiku.py for some reason
This commit is contained in:
Joscha Dierks 2025-03-14 16:53:44 +01:00
parent eb9aa864ab
commit 39369a65d6
13 changed files with 145 additions and 2 deletions

20
docs/Makefile Normal file
View file

@ -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
docs/make.bat Normal file
View file

@ -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

View file

@ -1,29 +0,0 @@
# senju
## ideen
- daily sprachcontent (wort haiku kanji satz), static site generator
- fantasynamegenerators.com aber schlechter (aber gut)
- fakenews generator
- ki metapromptengine
- erstelle deine pizzasorte
- gib mir zutaten -> generiere rezept
- dutch master dnd
- news aggregator
- chatraum
- minecraft skin generator
## Fragen
- [ ] ist ein static site generator ok?
- [ ] wie KI einbinden? LLM api ok? Wie siehts mit cash money aus?
## senji - Haikus
- Tägliches Wort
- Hauku (vor)generiert aus dem täglichen Wort
- Haikus generieren aus Prompt
- Haikus generieren aus Bild
- Bild zu Haiku generieren
- Haikus vorlesen

View file

@ -0,0 +1,7 @@
haiku module
============
.. automodule:: haiku
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
main module
===========
.. automodule:: main
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,9 @@
senju
=====
.. toctree::
:maxdepth: 4
haiku
main
store_manager

View file

@ -0,0 +1,7 @@
store\_manager module
=====================
.. automodule:: store_manager
:members:
:undoc-members:
:show-inheritance:

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

35
docs/source/conf.py Normal file
View file

@ -0,0 +1,35 @@
# 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
import os
import sys
from pathlib import Path
sys.path.insert(0, os.path.abspath("../../senju"))
project = 'senju'
copyright = '2025, senju hashirama'
author = 'senju hashirama'
release = 'before the light'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = ['sphinx.ext.autodoc',
'sphinx.ext.napoleon']
templates_path = ['_templates']
exclude_patterns = []
autodoc_typehints = 'both'
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'nature'
html_static_path = ['_static']
html_favicon = '_static/kanji.png'
html_logo = '_static/kanji.png'

19
docs/source/index.rst Normal file
View file

@ -0,0 +1,19 @@
.. senju documentation master file, created by
sphinx-quickstart on Fri Mar 14 15:18:32 2025.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome senju documentation
===================
Add your content using ``reStructuredText`` syntax. See the
`reStructuredText <https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html>`_
documentation for details.
.. toctree::
:maxdepth: 2
:caption: Contents:
usage
_modules/modules

4
docs/source/usage.rst Normal file
View file

@ -0,0 +1,4 @@
Installation
============
Its a docker - it just works