Skip to content

Commit 83679dc

Browse files
committed
Add MyST parser; use Sphinx Book Theme
1 parent 6c36d97 commit 83679dc

6 files changed

Lines changed: 43 additions & 16 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SPDX-FileContributor: David Pape
66

77
# Software CaRD Policies
88

9-
This repository contains the `software_card_policies` Python library as well as the associated command line program
9+
This repository contains the `sc_validate` Python library as well as the associated command line program
1010
`sc-validate` and example policies.
1111
The software was written as part of the [Software CaRD](https://helmholtz-metadaten.de/en/inf-projects/softwarecard)
1212
project.

docs/conf.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,24 @@
2222
# -- General configuration ---------------------------------------------------
2323
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
2424

25-
extensions = ["copy_files"]
25+
extensions = [
26+
"sphinx.ext.todo",
27+
# custom:
28+
"copy_files",
29+
# third-party:
30+
"myst_parser",
31+
]
2632

2733
templates_path = ["_templates"]
2834
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
29-
35+
source_suffix = {
36+
".rst": "restructuredtext",
37+
".md": "markdown",
38+
}
39+
todo_include_todos = True
3040

3141
# -- Options for HTML output -------------------------------------------------
3242
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
3343

34-
html_theme = "alabaster"
44+
html_theme = "sphinx_book_theme"
3545
html_static_path = ["_static"]

docs/index.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,21 @@ Welcome to the *Software CaRD Policies* documentation.
1212
This page is a work in progress.
1313
Some things will be missing or simply not work.
1414

15+
.. toctree::
16+
:maxdepth: 1
17+
:caption: Specification
18+
19+
specification/introduction
20+
1521
.. toctree::
1622
:hidden:
1723
:maxdepth: 2
24+
:caption: Other
1825

19-
specification/index
2026
example-policies/index
2127
validator/index
2228
library/index
29+
30+
.. todo::
31+
32+
Rename "Other" section.

docs/specification/index.rst

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

docs/specification/introduction.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2025 Helmholtz-Zentrum Dresden - Rossendorf (HZDR), Forschungszentrum Jülich (FZJ)
3+
SPDX-License-Identifier: CC-BY-4.0
4+
SPDX-FileContributor: David Pape
5+
SPDX-FileContributor: Oliver Bertuch
6+
-->
7+
8+
# Introduction
9+
10+
```{todo}
11+
Add the content.
12+
```

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ classifiers = [
2929
]
3030

3131
[project.optional-dependencies]
32-
docs = ["sphinx>=8.0.0", "taskipy>=1.14.1"]
32+
docs = [
33+
"sphinx>=8.0.0",
34+
"myst-parser>=4.0.0",
35+
"sphinx-book-theme>=1.1.4",
36+
"taskipy>=1.14.1"
37+
]
3338

3439
[project.scripts]
3540
sc-validate = "sc_validate.__main__:main"

0 commit comments

Comments
 (0)