Add ReadTheDocs configuration/site in repo root directory step #3c
[nonrtric/plt/ranpm.git] / .readthedocs.yaml
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
3 #  ========================================================================
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15 #  ============LICENSE_END=================================================
16 #
17
18 ---
19 # .readthedocs.yml
20 # Read the Docs configuration file
21 # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
22
23 version: 2
24
25 formats:
26   - htmlzip
27
28 build:
29   os: ubuntu-22.04
30   tools:
31     python: "3.7"
32   jobs:
33     pre_build:
34     - mkdir --parents _readthedocs/html/
35     - mkdir --parents _readthedocs/tmp/doctrees
36     - sphinx-build -W -b html --keep-going -n -d _readthedocs/tmp/doctrees  ./docs/ _readthedocs/html/
37     - sphinx-build -W -b html --keep-going -n -d _readthedocs/tmp/doctrees  ./datafilecollector/docs/ _readthedocs/html/datafilecollector
38     - sphinx-build -W -b html --keep-going -n -d _readthedocs/tmp/doctrees  ./influxlogger/docs/ _readthedocs/html/influxlogger
39     - sphinx-build -W -b html --keep-going -n -d _readthedocs/tmp/doctrees  ./pmproducer/docs/ _readthedocs/html/pmproducer
40
41 python:
42   install:
43     - requirements: docs/requirements-docs.txt
44     - requirements: datafilecollector/docs/requirements-docs.txt
45     - requirements: influxlogger/docs/requirements-docs.txt
46     - requirements: pmproducer/docs/requirements-docs.txt
47
48 sphinx:
49   configuration: docs/conf.py