diff --git a/.readthedocs.yml b/.readthedocs.yml index 24c88d8ab..fc039f256 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -6,9 +6,9 @@ version: 2 build: - os: "ubuntu-20.04" + os: "ubuntu-22.04" tools: - python: "3.9" + python: "3.10" # Build documentation in the docs/ directory with Sphinx sphinx: @@ -27,10 +27,9 @@ python: - nn - omikuji - fasttext + - stwfsa - yake - - pycld3 - spacy - requirements: docs/requirements.txt - method: pip path: . - system_packages: true diff --git a/docs/conf.py b/docs/conf.py index 17183ac12..ca5480876 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,6 +13,7 @@ import os import re import sys +from datetime import date sys.path.insert(0, os.path.abspath("..")) @@ -20,14 +21,18 @@ # -- Project information ----------------------------------------------------- project = "annif" -copyright = "2017, University Of Helsinki (The National Library Of Finland)" -author = "Osma Suominen" +copyright = ( + f"2017-{date.today().year}, University Of Helsinki " + + "(The National Library Of Finland)" +) + +author = "National Library Of Finland" # Get version number from GitHub tag release = re.sub("^v", "", os.popen("git describe --tags").read().strip()) # The short X.Y version. version = release - +html_title = project + " " + release # -- General configuration ---------------------------------------------------