Skip to content

Commit

Permalink
Merge branch 'main' into pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Oct 8, 2024
2 parents 18d8cd1 + f47d929 commit 8a7bd8e
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 57 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
python-version: 3.x
- run: pip install --upgrade pip
- run: pip install -r docs/requirements.txt
- run: pip install myst-parser sphinx-autoapi sphinx-pyproject
- uses: actions/configure-pages@v5
- run: sphinx-build docs docs/_build/html
- uses: actions/upload-pages-artifact@v3
Expand All @@ -41,6 +41,7 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
if: github.event_name != 'pull_request'
needs: build_docs
runs-on: ubuntu-latest
steps:
Expand Down
Empty file added _static/git_placeholder
Empty file.
55 changes: 2 additions & 53 deletions docs/conf.py
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
3 changes: 0 additions & 3 deletions docs/requirements.txt

This file was deleted.

7 changes: 7 additions & 0 deletions index.md
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
```
53 changes: 53 additions & 0 deletions pyproject.toml
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"

0 comments on commit 8a7bd8e

Please sign in to comment.