Skip to content

Commit

Permalink
DOC: use pyproject.toml as truth for config (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw authored Jul 25, 2023
1 parent b50f6f0 commit efebea9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import os
import shutil

import toml

import audeer


config = toml.load(audeer.path('..', 'pyproject.toml'))


# Project -----------------------------------------------------------------
project = 'audmath'
author = 'Hagen Wierstorf'
project = config['project']['name']
author = ', '.join(author['name'] for author in config['project']['authors'])
version = audeer.git_repo_version()
title = '{} Documentation'.format(project)

Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ sphinx-audeering-theme >=1.1.2
sphinx_autodoc_typehints
sphinx-copybutton
sphinxcontrib-katex >=0.9.3
toml

0 comments on commit efebea9

Please sign in to comment.