-
Notifications
You must be signed in to change notification settings - Fork 197
/
.readthedocs.yml
53 lines (47 loc) · 1.37 KB
/
.readthedocs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# SPDX-FileCopyrightText: Contributors to the Fedora Project
#
# SPDX-License-Identifier: MIT
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.10"
apt_packages:
- graphviz
- libkrb5-dev
- python3-pydot
- python3-rpm
- python3-librepo
jobs:
post_install:
- pip install sqlalchemy-schemadisplay rpm
- dpkg -L python3-librepo
- ln -s /usr/lib/python3/dist-packages/librepo $READTHEDOCS_VIRTUALENV_PATH/lib/python3.10/site-packages/librepo
- cp devel/development.ini.example bodhi-server/development.ini
- python -c "import bodhi.server.models"
pre_build:
- mkdir -p docs/generated
- python docs/generate_db_schema
- python docs/generate_json_schema
# commands:
# - ./devel/ci/bodhi-ci docs -r pip
# - mv test_results/pip-docs/html/ $READTHEDOCS_OUTPUT/
python:
install:
- method: pip
path: ./bodhi-client
- method: pip
path: ./bodhi-messages
- method: pip
path: ./bodhi-server
# Optionally build your docs in additional formats such as PDF and ePub
formats:
- htmlzip