Skip to content

Commit

Permalink
Update doc configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
vegama committed May 21, 2024
1 parent 349648e commit 96addda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
8 changes: 0 additions & 8 deletions docs/__init__.py

This file was deleted.

11 changes: 9 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from . import __version__
import toml

# Configuration file for the Sphinx documentation builder.
#
Expand All @@ -8,10 +8,17 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

# Read version from pyproject.toml

with open("pyproject.toml") as f:
config = toml.load(f)

version = config["project"]["version"]

project = "NetcdfData Microservice"
copyright = "2024, IHCantabria"
author = "IHCantabria"
release = __version__
release = version

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down

0 comments on commit 96addda

Please sign in to comment.