1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-25 22:02:05 +01:00

Add .readthedocs.yaml

This commit is contained in:
Paul Schaub 2022-07-07 00:44:28 +02:00
parent c916cec042
commit 556496dc87
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
3 changed files with 34 additions and 0 deletions

30
.readthedocs.yaml Normal file
View file

@ -0,0 +1,30 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
tools:
python: "3.9"
# You can also specify other tool versions:
nodejs: "16"
# rust: "1.55"
# golang: "1.17"
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
# If using Sphinx, optionally build your docs in additional formats such as PDF
formats:
- pdf
- epub
# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt

2
docs/requirements.txt Normal file
View file

@ -0,0 +1,2 @@
myst-parser>=0.17
sphinxcontrib-mermaid>=0.7.1

View file

@ -7,6 +7,8 @@ project = 'PGPainless'
copyright = '2022, Paul Schaub'
author = 'Paul Schaub'
master_doc = 'index'
# https://protips.readthedocs.io/git-tag-version.html
latest_tag = os.popen('git describe --abbrev=0').read().strip()
release = latest_tag