Skip to content

Commit

Permalink
Merge pull request #723 from NatLibFi/rtd-update
Browse files Browse the repository at this point in the history
Updates for ReadTheDocs documentation
  • Loading branch information
juhoinkinen authored Aug 8, 2023
2 parents 2c5ee1f + 0d7ecd9 commit e9031bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -27,10 +27,9 @@ python:
- nn
- omikuji
- fasttext
- stwfsa
- yake
- pycld3
- spacy
- requirements: docs/requirements.txt
- method: pip
path: .
system_packages: true
11 changes: 8 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,26 @@
import os
import re
import sys
from datetime import date

sys.path.insert(0, os.path.abspath(".."))


# -- 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 ---------------------------------------------------

Expand Down

0 comments on commit e9031bb

Please sign in to comment.