Skip to content

Commit

Permalink
Update RTD build
Browse files Browse the repository at this point in the history
  • Loading branch information
plettich committed Sep 3, 2023
1 parent 646eb27 commit 480993f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ version: 2

build:
os: ubuntu-22.04
apt_packages:
- plantuml
tools:
python: "3.10"

Expand All @@ -22,6 +24,8 @@ sphinx:
python:
install:
- requirements: doc/requirements.txt
- method: pip
path: .

# This is not currently needed, it is included so documentation will not break, if functionality is moved into
# submodules.
Expand Down
16 changes: 13 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,26 @@
# http://stackoverflow.com/questions/28366818/preserve-default-arguments-of-wrapped-decorated-python-function-in-sphinx-docume
import functools

from pallets_sphinx_themes import get_version, ProjectLink

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '3.9dev1'
#version = '3.9dev1'
# The full version, including alpha/beta/rc tags.
#release = '2.16dev5'
release = version

#release = version
release, version = get_version("privacyIDEA")

html_context = {
"project_links": [
ProjectLink("PyPI Releases", "https://pypi.org/project/privacyIDEA/"),
ProjectLink("Source Code", "https://github.com/privacyidea/privacyidea/"),
ProjectLink("Issue Tracker", "https://github.com/privacyidea/privacyidea/issues/"),
]
}

def no_op_wraps(func, assigned=None, updated=None):
"""Replaces functools.wraps in order to undo wrapping.
Expand Down

0 comments on commit 480993f

Please sign in to comment.