Skip to content

Commit def673f

Browse files
committed
Enable Markdown support and fix file paths for Read the Docs
1 parent 6b66906 commit def673f

File tree

3 files changed

+128
-45
lines changed

3 files changed

+128
-45
lines changed

.readthedocs.yaml

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,23 @@
1-
# .readthedocs.yaml
21
# Read the Docs configuration file
32
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
43

4+
# Required
55
version: 2
66

7-
# Set the version of Python and other tools you might need
7+
# Set the OS, Python version, and other tools you might need
88
build:
9-
os: ubuntu-22.04
9+
os: ubuntu-24.04
1010
tools:
1111
python: "3.13"
1212

1313
# Build documentation in the "docs/" directory with Sphinx
1414
sphinx:
15-
configuration: docs/conf.py
16-
builder: html
15+
configuration: docs/conf.py
1716

18-
# Optionally declare the Python requirements required to build your documentation
19-
# e.g:
20-
# build:
21-
# apt_packages:
22-
# - graphviz
23-
# os: ubuntu-22.04
24-
# tools:
25-
# python: "3.13"
26-
# jobs:
27-
# - requirements: docs/requirements.txt
28-
# name: Python 3.13
29-
30-
# Optionally set the version of Python and requirements required to build your documentation
31-
# build:
32-
# os: ubuntu-22.04
33-
# tools:
34-
# python: "3.13"
35-
# jobs:
36-
# - requirements: docs/requirements.txt
37-
# name: Python 3.13
17+
# Optionally, but recommended,
18+
# declare the Python requirements required to build your documentation
19+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
20+
# python:
21+
# install:
22+
# - requirements: docs/requirements.txt
23+

docs/conf.py

Lines changed: 98 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,104 @@
1313
# -- General configuration ---------------------------------------------------
1414
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
1515

16-
extensions = []
16+
import recommonmark
17+
from recommonmark.transform import AutoStructify
18+
19+
extensions = [
20+
'recommonmark',
21+
]
22+
# Configuration file for the Sphinx documentation builder.
23+
#
24+
# For the full list of built-in configuration values, see the documentation:
25+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
26+
27+
# -- Project information -----------------------------------------------------
28+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
29+
30+
project = 'learning-python'
31+
copyright = '2025, v.skolan'
32+
author = 'v.skolan'
33+
34+
# -- General configuration ---------------------------------------------------
35+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
36+
37+
extensions = [
38+
'recommonmark',
39+
]
40+
html_theme = 'sphinx_rtd_theme'
41+
html_theme_path = ["_themes"]
42+
# Configuration file for the Sphinx documentation builder.
43+
#
44+
# For the full list of built-in configuration values, see the documentation:
45+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
46+
47+
# -- Project information -----------------------------------------------------
48+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
49+
50+
project = 'learning-python'
51+
copyright = '2025, v.skolan'
52+
author = 'v.skolan'
53+
54+
# -- General configuration ---------------------------------------------------
55+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
56+
57+
extensions = [
58+
'recommonmark',
59+
'sphinx_rtd_theme',
60+
]
61+
html_theme = 'sphinx_rtd_theme'
62+
html_theme_path = ["_themes"]
63+
# Configuration file for the Sphinx documentation builder.
64+
#
65+
# For the full list of built-in configuration values, see the documentation:
66+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
67+
68+
# -- Project information -----------------------------------------------------
69+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
70+
71+
project = 'learning-python'
72+
copyright = '2025, v.skolan'
73+
author = 'v.skolan'
74+
75+
# -- General configuration ---------------------------------------------------
76+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
77+
78+
extensions = [
79+
'recommonmark',
80+
'sphinx_rtd_theme',
81+
]
82+
html_theme = 'sphinx_rtd_theme'
83+
html_theme_path = ["_themes"]
84+
source_suffix = ['.rst', '.md']
85+
# Configuration file for the Sphinx documentation builder.
86+
#
87+
# For the full list of built-in configuration values, see the documentation:
88+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
89+
90+
# -- Project information -----------------------------------------------------
91+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
92+
93+
project = 'learning-python'
94+
copyright = '2025, v.skolan'
95+
author = 'v.skolan'
96+
97+
# -- General configuration ---------------------------------------------------
98+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
99+
100+
extensions = [
101+
'recommonmark',
102+
'sphinx_rtd_theme',
103+
]
104+
html_theme = 'sphinx_rtd_theme'
105+
html_theme_path = ["_themes"]
106+
source_suffix = ['.rst', '.md']
107+
108+
def setup(app):
109+
app.add_config_value('recommonmark_config', {
110+
'enable_eval_rst': True,
111+
'auto_toc_tree_depth': 2,
112+
}, True)
113+
app.add_transform(AutoStructify)
17114

18115
templates_path = ['_templates']
19116
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

docs/index.rst

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ Willkommen bei learning-python's Dokumentation!
1010
:maxdepth: 2
1111
:caption: Inhaltsverzeichnis:
1212

13-
Anleitungen/00_anleitung
14-
Anleitungen/01_Kommentare
15-
Anleitungen/02_Algorithmen
16-
Anleitungen/03_python_interpreter
17-
Anleitungen/04_variablen_und_Datentypen
18-
Anleitungen/05_string_operationen
19-
Anleitungen/06_lernweg
20-
Anleitungen/07_bedingungen
13+
Anleitungen/00_anleitung.md
14+
Anleitungen/01_Kommentare.md
15+
Anleitungen/02_Algorithmen.md
16+
Anleitungen/03_python_interpreter.md
17+
Anleitungen/04_variablen_und_Datentypen.md
18+
Anleitungen/05_string_operationen.md
19+
Anleitungen/06_lernweg.md
20+
Anleitungen/07_bedingungen.md
2121

22-
Aufgaben/Kapitel_0/Anfang_Lese_Mich
23-
Aufgaben/Kapitel_1/Grundlagen
24-
Aufgaben/Kapitel_1/Strings
25-
Aufgaben/Kapitel_2/Bedingungen_und_Dictionaries
26-
Aufgaben/Kapitel_3/Turtle_Grafik
27-
Aufgaben/Kapitel_4/Spiele
28-
Aufgaben/Kapitel_5/Kompliment_Generator
29-
Aufgaben/Kapitel_6/Funktionen
30-
Aufgaben/Kapitel_7/Module_und_Builtin_Funktionen
31-
Aufgaben/Kapitel_8/Funktionsdesign
32-
Aufgaben/Kapitel_9/Pygame_Ghost_Game
22+
Aufgaben/Kapitel_0/Anfang_Lese_Mich.md
23+
Aufgaben/Kapitel_1/Grundlagen.md
24+
Aufgaben/Kapitel_1/Strings.md
25+
Aufgaben/Kapitel_2/Bedingungen_und_Dictionaries.md
26+
Aufgaben/Kapitel_3/Turtle_Grafik.md
27+
Aufgaben/Kapitel_4/Spiele.md
28+
Aufgaben/Kapitel_5/Kompliment_Generator.md
29+
Aufgaben/Kapitel_6/Funktionen.md
30+
Aufgaben/Kapitel_7/Module_und_Builtin_Funktionen.md
31+
Aufgaben/Kapitel_8/Funktionsdesign.md
32+
Aufgaben/Kapitel_9/Pygame_Ghost_Game.md
3333

3434
Indices and tables
3535
==================

0 commit comments

Comments
 (0)