Skip to content

Commit 86c57e9

Browse files
committed
docs: enable markdown docs
Signed-off-by: Eike Waldt <waldt@b1-systems.de> On-behalf-of: SAP <eike.waldt@sap.com>
1 parent 73a16ad commit 86c57e9

9 files changed

Lines changed: 42 additions & 90 deletions

File tree

docs/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ BUILDDIR = _build
1212
help:
1313
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1414

15-
.PHONY: help Makefile
15+
.PHONY: help markdown Makefile
16+
17+
# Explicit markdown target: build Markdown output via sphinx-markdown-builder
18+
markdown:
19+
@$(SPHINXBUILD) -M markdown "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1620

1721
# Catch-all target: route all unknown targets to Sphinx using the new
1822
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).

docs/api.rst

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,34 @@
1-
API Reference
2-
=============
1+
Python Library - API Reference
2+
==============================
33

4-
This section provides detailed documentation for all Python modules and classes in python-gardenlinux-lib.
4+
Detailed documentation for all Python modules and classes in the Garden Linux Python Library
55

6-
.. automodule:: gardenlinux
7-
:members:
6+
gardenlinux.apt
7+
~~~~~~~~~~~~~~~
88

99
.. automodule:: gardenlinux.apt
1010
:members:
1111

12+
gardenlinux.features
13+
~~~~~~~~~~~~~~~~~~~~
14+
1215
.. automodule:: gardenlinux.features
1316
:members:
1417

18+
gardenlinux.flavors
19+
~~~~~~~~~~~~~~~~~~~
20+
1521
.. automodule:: gardenlinux.flavors
1622
:members:
1723

24+
gardenlinux.git
25+
~~~~~~~~~~~~~~~
26+
1827
.. automodule:: gardenlinux.git
1928
:members:
2029

30+
gardenlinux.oci
31+
~~~~~~~~~~~~~~~
32+
2133
.. automodule:: gardenlinux.oci
2234
:members:

docs/cli.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Command-Line Interface
2-
======================
1+
Python Library - Command-Line Interface
2+
=======================================
33

4-
This page documents all available command-line tools provided by python-gardenlinux-lib.
4+
Available command-line tools provided by the Garden Linux Python Library
55

66
Features Commands
77
-----------------

docs/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,15 @@
2222
"sphinx.ext.napoleon",
2323
"sphinx_click",
2424
"sphinxcontrib.autoprogram",
25+
"sphinx_markdown_builder",
2526
]
2627

28+
# Markdown builder configuration (GitHub-Flavored Markdown for VitePress)
29+
# We can enable this after https://github.com/liran-funaro/sphinx-markdown-builder/pull/53 is merged
30+
# markdown_flavor = "github"
31+
markdown_anchor_sections = True
32+
markdown_anchor_signatures = True
33+
2734
templates_path = ["_templates"]
2835
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
2936
autodoc_mock_imports = ["networkx"]

docs/how-to/release.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Release Process - Python Library
2+
title: Python Library - Release Process
33
description: Release a new version of the Garden Linux Python Library
44
related_topics:
5-
- /reference/supporting_tools/python-gardenlinux-lib.md
6-
- /reference/python-gardenlinux-lib-cli.md
7-
- /how-to/python-gardenlinux-lib-release.md
5+
- /reference/supporting_tools/python-gardenlinux-lib
6+
- /reference/python-gardenlinux-lib-cli
7+
- /how-to/python-gardenlinux-lib-release
88
migration_status: "new"
99
migration_source: ""
1010
migration_issue: ""

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Garden Linux Python Library Documentation
1+
Garden Linux Python Library
22
==========================================
33

4-
Welcome to the Garden Linux Python Library documentation. This library provides
4+
The Garden linux Python Library provides
55
Python tools and utilities for working with Garden Linux features, flavors,
66
OCI artifacts, S3 buckets, and GitHub releases.
77

docs/overview/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: "Python Library"
33
description: An overview of the Garden Linux Python Library
44
related_topics:
5-
- /reference/supporting_tools/python-gardenlinux-lib.md
6-
- /reference/python-gardenlinux-lib-cli.md
7-
- /how-to/python-gardenlinux-lib-release.md
5+
- /reference/supporting_tools/python-gardenlinux-lib
6+
- /reference/python-gardenlinux-lib-cli
7+
- /how-to/python-gardenlinux-lib-release
88
migration_status: "new"
99
migration_source: ""
1010
migration_issue: ""

docs/reference/cli.md

Lines changed: 0 additions & 72 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ boto3-stubs = { extras = ["s3"], version = "^1.42.30" }
4242
sphinx-rtd-theme = "^3.0.2"
4343
sphinx-click = "^4.4.0"
4444
sphinxcontrib-autoprogram = "^0.1.8"
45+
sphinx-markdown-builder = "^0.6.10"
4546

4647
[tool.poetry.scripts]
4748
gl-cname = "gardenlinux.features.cname_main:main"

0 commit comments

Comments
 (0)