-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pre-commit for sphinx-build (#113)
* Fix pre-commit * Fix pre-commit * Fix pre-commit * Fix pre-commit
- Loading branch information
Showing
7 changed files
with
65 additions
and
58 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
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 |
---|---|---|
@@ -1,54 +1,3 @@ | ||
# 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 | ||
from sphinx_pyproject import SphinxConfig | ||
|
||
# -- Project information ----------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | ||
|
||
project = "Ten lines or less" | ||
version = "0.0.1" | ||
copyright = "2024, Claussoft International" | ||
author = "Christian Clauss and contributors" | ||
|
||
# -- General configuration --------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration | ||
|
||
exclude_patterns = [ | ||
"_build", | ||
"Thumbs.db", | ||
".DS_Store", | ||
] | ||
extensions = [ | ||
"myst_parser", | ||
"sphinxcontrib.mermaid", | ||
] | ||
myst_enable_extensions = [ | ||
"amsmath", | ||
"attrs_inline", | ||
"colon_fence", | ||
"deflist", | ||
"dollarmath", | ||
"fieldlist", | ||
"html_admonition", | ||
"html_image", | ||
# "linkify", | ||
"replacements", | ||
"smartquotes", | ||
"strikethrough", | ||
"substitution", | ||
"tasklist", | ||
] | ||
source_suffix = { | ||
".rst": "restructuredtext", | ||
".txt": "markdown", | ||
".md": "markdown", | ||
} | ||
suppress_warnings = ["epub.unknown_project_files"] | ||
templates_path = ["_templates"] | ||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | ||
|
||
html_static_path = ["_static"] | ||
html_theme = "alabaster" | ||
project = SphinxConfig("../pyproject.toml", globalns=globals()).name |
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
# Open Metadata Exchange documentation | ||
```{toctree} | ||
:maxdepth: 2 | ||
:caption: index.md | ||
README.md | ||
``` |
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,53 @@ | ||
[project] | ||
name = "ten-lines-or-less" | ||
version = "0.1.0" | ||
description = "Ten lines or less of Python code" | ||
authors = [ { name = "Christian Clauss" } ] | ||
requires-python = ">=3.13" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.13", | ||
] | ||
optional-dependencies.docs = [ | ||
"myst-parser", | ||
"sphinx-autoapi", | ||
"sphinx-pyproject", | ||
] | ||
|
||
[tool.sphinx-pyproject] | ||
copyright = "2014, Christian Clauss" | ||
autoapi_dirs = [ "." ] | ||
exclude_patterns = [ | ||
".*/*", | ||
"docs/conf.py", | ||
] | ||
extensions = [ | ||
"autoapi.extension", | ||
"myst_parser", | ||
] | ||
html_static_path = [ "_static" ] | ||
html_theme = "alabaster" | ||
myst_enable_extensions = [ | ||
"amsmath", | ||
"attrs_inline", | ||
"colon_fence", | ||
"deflist", | ||
"dollarmath", | ||
"fieldlist", | ||
"html_admonition", | ||
"html_image", | ||
# "linkify", | ||
"replacements", | ||
"smartquotes", | ||
"strikethrough", | ||
"substitution", | ||
"tasklist", | ||
] | ||
myst_fence_as_directive = [ | ||
"include", | ||
] | ||
templates_path = [ "_templates" ] | ||
[tool.sphinx-pyproject.source_suffix] | ||
".rst" = "restructuredtext" | ||
".txt" = "markdown" | ||
".md" = "markdown" |