From 6ad7d9d82493ab48ab73a67f0b7f0b284f3d160d Mon Sep 17 00:00:00 2001
From: Niels Bantilan <niels.bantilan@gmail.com>
Date: Mon, 8 Jan 2024 12:06:47 -0500
Subject: [PATCH] switch readthedocs config to monodocs build

Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
---
 .readthedocs.yml | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/.readthedocs.yml b/.readthedocs.yml
index b63d11acfc..1dd699bf9b 100644
--- a/.readthedocs.yml
+++ b/.readthedocs.yml
@@ -7,13 +7,17 @@ version: 2
 build:
   os: "ubuntu-22.04"
   tools:
-    python: "3.11"
+    python: "mambaforge-22.9"
+  jobs:
+    post_install:
+      - conda-lock install --name $READTHEDOCS_VERSION monodocs-environment.lock.yaml
+      - conda info
+      - conda env list
+      - conda list
 
 # Build documentation in the docs/ directory with Sphinx
 sphinx:
-  configuration: rsts/conf.py
+  configuration: docs/conf.py
 
-# Optionally set the version of Python and requirements required to build your docs
-python:
-  install:
-    - requirements: doc-requirements.in
+conda:
+  environment: docs/build-environment.yaml