Add ReadTheDocs configuration/site in repo root directory step #3a
[nonrtric/plt/ranpm.git] / .readthedocs.yaml
index 531085c..fa3b4d7 100644 (file)
 #
 
 ---
+# .readthedocs.yml
+# Read the Docs configuration file
+# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
+
 version: 2
 
 formats:
   - htmlzip
 
 build:
-  image: latest
+  os: ubuntu-22.04
+  tools:
+    python: "3.7"
+  jobs:
+    pre_build:
+    - mkdir --parents _readthedocs/html/
+    - mkdir --parents _readthedocs/tmp/doctrees
+    - sphinx-build -W -b html --keep-going -n -d _readthedocs/tmp/doctrees  ./docs/ _readthedocs/html/
+    - sphinx-build -W -b html --keep-going -n -d _readthedocs/tmp/doctrees  ./datafilecollector/docs/ _readthedocs/html/datafilecollector
+    - sphinx-build -W -b html --keep-going -n -d _readthedocs/tmp/doctrees  ./influxlogger/docs/ _readthedocs/html/influxlogger
+    - sphinx-build -W -b html --keep-going -n -d _readthedocs/tmp/doctrees  _readthedocs/html/pmproducer
 
 python:
-  version: 3.7
   install:
     - requirements: docs/requirements-docs.txt
+    - requirements: datafilecollector/docs/requirements-docs.txt
+    - requirements: influxlogger/docs/requirements-docs.txt
+    - requirements: pmproducer/docs/requirements-docs.txt
 
 sphinx:
   configuration: docs/conf.py