Update docs config and pre-commit version
This commit is contained in:
parent
1047b67c97
commit
41516d60bf
2 changed files with 12 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: reuse
|
- id: reuse
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.4.0
|
rev: v5.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
|
|
||||||
13
docs/conf.py
13
docs/conf.py
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import datetime
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath(".."))
|
sys.path.insert(0, os.path.abspath(".."))
|
||||||
|
|
||||||
|
|
@ -16,13 +17,14 @@ sys.path.insert(0, os.path.abspath(".."))
|
||||||
# ones.
|
# ones.
|
||||||
extensions = [
|
extensions = [
|
||||||
"sphinx.ext.autodoc",
|
"sphinx.ext.autodoc",
|
||||||
|
"sphinxcontrib.jquery",
|
||||||
"sphinx.ext.intersphinx",
|
"sphinx.ext.intersphinx",
|
||||||
"sphinx.ext.napoleon",
|
"sphinx.ext.napoleon",
|
||||||
"sphinx.ext.todo",
|
"sphinx.ext.todo",
|
||||||
]
|
]
|
||||||
|
|
||||||
intersphinx_mapping = {
|
intersphinx_mapping = {
|
||||||
"python": ("https://docs.python.org/3.4", None),
|
"python": ("https://docs.python.org/3", None),
|
||||||
"CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None),
|
"CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -36,7 +38,14 @@ master_doc = "index"
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = "Adafruit Shell Library"
|
project = "Adafruit Shell Library"
|
||||||
copyright = "2020 Melissa LeBlanc-Williams"
|
creation_year = "2020"
|
||||||
|
current_year = str(datetime.datetime.now().year)
|
||||||
|
year_duration = (
|
||||||
|
current_year
|
||||||
|
if current_year == creation_year
|
||||||
|
else creation_year + " - " + current_year
|
||||||
|
)
|
||||||
|
copyright = year_duration + " Melissa LeBlanc-Williams"
|
||||||
author = "Melissa LeBlanc-Williams"
|
author = "Melissa LeBlanc-Williams"
|
||||||
|
|
||||||
# The version info for the project you're documenting, acts as replacement for
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue