-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from adfinis/new-docs
docs: Generate documentation with sphinx
- Loading branch information
Showing
20 changed files
with
1,267 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Code Reference | ||
============== | ||
|
||
The following code reference is extracted from the source code and mainly used for debugging/development. | ||
Users of `pyaptly` can ignore this. | ||
|
||
Main | ||
---- | ||
.. automodule:: pyaptly.main | ||
:members: | ||
|
||
Mirror | ||
------ | ||
.. automodule:: pyaptly.mirror | ||
:members: | ||
|
||
Repo | ||
---- | ||
.. automodule:: pyaptly.repo | ||
:members: | ||
|
||
Snapshot | ||
-------- | ||
.. automodule:: pyaptly.snapshot | ||
:members: | ||
|
||
Publish | ||
------- | ||
.. automodule:: pyaptly.publish | ||
:members: | ||
|
||
State Reader | ||
------------ | ||
.. automodule:: pyaptly.state_reader | ||
:members: | ||
|
||
Util | ||
---- | ||
.. automodule:: pyaptly.util | ||
:members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = . | ||
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../README.md |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# 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 = 'Pyaptly' | ||
copyright = 'Adfinis AG' | ||
author = 'Adfinis AG' | ||
release = '2.0' | ||
|
||
# -- General configuration --------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration | ||
|
||
extensions = [ | ||
'myst_parser', | ||
'sphinx.ext.autosectionlabel', | ||
'sphinx.ext.autodoc', | ||
] | ||
myst_enable_extensions = [ | ||
"linkify", | ||
"replacements", | ||
"smartquotes", | ||
] | ||
|
||
# For autodoc | ||
import sys | ||
from pathlib import Path | ||
sys.path.insert(0, str(Path('..').resolve())) | ||
|
||
autosectionlabel_prefix_document = True | ||
|
||
templates_path = ['_templates'] | ||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'sphinx-template'] | ||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | ||
|
||
html_theme = 'adsy' | ||
html_theme_path = ['sphinx-template/html'] | ||
html_title = project | ||
html_static_path = ['sphinx-template/html/adsy/static/'] | ||
|
||
# Output file base name for HTML help builder. | ||
#htmlhelp_basename = 'test1234' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.. Pyaptly documentation master file, created by | ||
sphinx-quickstart on Thu Nov 7 16:17:24 2024. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
.. include:: README.md | ||
:parser: myst_parser.sphinx_ | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
:caption: Contents: | ||
|
||
README.md | ||
Getting_Started.md | ||
Config_Reference.md | ||
Command_Line_Reference.md | ||
Code_Reference.rst | ||
|
||
.. automodule:: pyaptly | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
+++ ./a ./b 2024-11-08 13:56:06.904479048 +0000 | ||
@@ -49,12 +49,12 @@ | ||
parent = helpdct.get("parent", "") or '' | ||
options = { | ||
opt.name: { | ||
- "usage": '\n'.join(opt.opts), | ||
- "prompt": opt.prompt, | ||
- "required": opt.required, | ||
- "default": opt.default, | ||
- "help": opt.help, | ||
- "type": str(opt.type) | ||
+ "usage": '\n'.join(opt.opts), | ||
+ "prompt": getattr(opt, "prompt", None), | ||
+ "required": getattr(opt, "required", None), | ||
+ "default": getattr(opt, "default", None), | ||
+ "help": getattr(opt, "help", None), | ||
+ "type": str(getattr(opt, "type", None)) | ||
} | ||
for opt in helpdct.get('params', []) | ||
} |
Oops, something went wrong.