From 3bdc4f8926d50f9a0310b8706b78919f392b1f6a Mon Sep 17 00:00:00 2001 From: Charlie Hoy Date: Tue, 5 Mar 2024 10:54:46 +0000 Subject: [PATCH] switch to readthedocs --- .github/workflows/pages.yml | 43 ------------------------------------- .readthedocs.yml | 21 ++++++++++++++++++ 2 files changed, 21 insertions(+), 43 deletions(-) delete mode 100644 .github/workflows/pages.yml create mode 100644 .readthedocs.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml deleted file mode 100644 index 561440a..0000000 --- a/.github/workflows/pages.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: GitHub Pages - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - deploy: - runs-on: ubuntu-20.04 - concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - steps: - - uses: actions/checkout@v2 - - - name: Setup Python - uses: actions/setup-python@v2 - with: - python-version: "3.10" - - - uses: s-weigand/setup-conda@v1 - with: - update-conda: true - python-version: "3.10" - conda-channels: anaconda, conda-forge - - - name: Install dependencies - run: | - conda install python=3.10 numpy schwimmbad gcc_linux-64 gxx_linux-64 gsl lapack=3.6.1 Cython - python -m pip install . - python -m pip install --force-reinstall "git+https://git.ligo.org/charlie.hoy/bilby.git@ifo_plugin" "git+https://git.ligo.org/charlie.hoy/bilby_pipe.git@input_plus_det_plugin" "git+https://git.ligo.org/charlie.hoy/parallel_bilby.git@input_plus_parser" "git+https://github.com/mikekatz04/BBHx.git" - - - name: Build documentation - run: | - cd docs - make clean - make html - touch _build/html/.nojekyll - cd ../ - mv docs/_build/html docs diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 0000000..1f132e9 --- /dev/null +++ b/.readthedocs.yml @@ -0,0 +1,21 @@ +# .readthedocs.yml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +version: 2 + +build: + os: "ubuntu-20.04" + tools: + python: "mambaforge-latest" + +sphinx: + configuration: docs/conf.py + +python: + install: + - method: pip + path: . + extra_requirements: + - docs + - requirements: requirements.txt