Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for ReadTheDocs documentation #723

Merged
merged 8 commits into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading