Skip to content

Commit

Permalink
Fix docs config
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Jul 20, 2023
1 parent 969e39b commit 94c470b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import configparser
from datetime import date
import os
import shutil

import toml

import audeer

import audb


config = configparser.ConfigParser()
config.read(os.path.join('..', 'setup.cfg'))
config = toml.load(audeer.path('..', 'pyproject.toml'))


# Project -----------------------------------------------------------------
author = config['metadata']['author']
project = config['project']['name']
copyright = f'2020-{date.today().year} audEERING GmbH'
project = config['metadata']['name']
author = ', '.join(author['name'] for author in config['project']['authors'])
version = audeer.git_repo_version()
title = 'Documentation'

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 >=3.5.4
sphinx-audeering-theme >=1.2.1
sphinx-autodoc-typehints
sphinx-copybutton
toml

0 comments on commit 94c470b

Please sign in to comment.