diff --git a/docs/conf.py b/docs/conf.py index dd0ab73..9ec9bae 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,12 +13,13 @@ # import os # import sys # sys.path.insert(0, os.path.abspath('..')) +from datetime import date # -- Project information ----------------------------------------------------- project = 'Quicktex' -copyright = '2021, Andrew Cassidy' +copyright = f'{date.today().year}, Andrew Cassidy' author = 'Andrew Cassidy' # -- General configuration --------------------------------------------------- @@ -28,11 +29,14 @@ author = 'Andrew Cassidy' # ones. extensions = [ 'myst_parser', + 'sphinx_click', 'sphinx_rtd_theme', 'sphinx.ext.autodoc', 'sphinx.ext.intersphinx', ] +myst_heading_anchors = 2 + # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/pyproject.toml b/pyproject.toml index 372f313..3c53b75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,12 @@ dynamic = ["version"] [project.optional-dependencies] tests = ["parameterized"] -docs = ["sphinx", "myst-parser", "sphinx-rtd-theme"] +docs = [ + "Sphinx >= 3.5", + "sphinx-click >= 2.7", + "sphinx-rtd-theme", + "myst-parser >= 0.14", +] stubs = ["pybind11-stubgen"] [project.urls]