mirror of
https://github.com/senju1337/senju.git
synced 2025-12-23 23:39:27 +00:00
feat/OPS-61: add basic documentation
It currently works only for haiku.py for some reason
This commit is contained in:
parent
eb9aa864ab
commit
39369a65d6
13 changed files with 145 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ coverage.xml
|
||||||
*.log
|
*.log
|
||||||
|
|
||||||
# Sphinx documentation
|
# Sphinx documentation
|
||||||
docs/_build/
|
requirements/_build/
|
||||||
|
|
||||||
# PyBuilder
|
# PyBuilder
|
||||||
target/
|
target/
|
||||||
|
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -69,7 +69,7 @@ instance/
|
||||||
.scrapy
|
.scrapy
|
||||||
|
|
||||||
# Sphinx documentation
|
# Sphinx documentation
|
||||||
docs/_build/
|
requirements/_build/
|
||||||
|
|
||||||
# PyBuilder
|
# PyBuilder
|
||||||
.pybuilder/
|
.pybuilder/
|
||||||
|
|
|
||||||
20
docs/Makefile
Normal file
20
docs/Makefile
Normal 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
35
docs/make.bat
Normal 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
|
||||||
7
docs/source/_modules/haiku.rst
Normal file
7
docs/source/_modules/haiku.rst
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
haiku module
|
||||||
|
============
|
||||||
|
|
||||||
|
.. automodule:: haiku
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
7
docs/source/_modules/main.rst
Normal file
7
docs/source/_modules/main.rst
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
main module
|
||||||
|
===========
|
||||||
|
|
||||||
|
.. automodule:: main
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
9
docs/source/_modules/modules.rst
Normal file
9
docs/source/_modules/modules.rst
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
senju
|
||||||
|
=====
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 4
|
||||||
|
|
||||||
|
haiku
|
||||||
|
main
|
||||||
|
store_manager
|
||||||
7
docs/source/_modules/store_manager.rst
Normal file
7
docs/source/_modules/store_manager.rst
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
store\_manager module
|
||||||
|
=====================
|
||||||
|
|
||||||
|
.. automodule:: store_manager
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
BIN
docs/source/_static/kanji.png
Normal file
BIN
docs/source/_static/kanji.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
35
docs/source/conf.py
Normal file
35
docs/source/conf.py
Normal 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
19
docs/source/index.rst
Normal 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
4
docs/source/usage.rst
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
Installation
|
||||||
|
============
|
||||||
|
|
||||||
|
Its a docker - it just works
|
||||||
Loading…
Add table
Add a link
Reference in a new issue