Skip to content

Commit

Permalink
Update RTD configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
aphearin committed Sep 26, 2023
1 parent 77550c5 commit f84c038
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 10 deletions.
10 changes: 8 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ version: 2
sphinx:
configuration: docs/source/conf.py

build:
os: "ubuntu-22.04"
tools:
python: "mambaforge-22.9"

conda:
environment: docs/source/rtd_environment.yaml

python:
version: 3
install:
- method: pip
path: .
- requirements: docs/source/requirements.txt
13 changes: 9 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
"""
"""
from pkg_resources import DistributionNotFound, get_distribution

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
try:
__version__ = get_distribution("diffstar").version
except DistributionNotFound:
__version__ = "unknown version"

project = "diffmah"
copyright = "2022, Andrew Hearin"
author = "Andrew Hearin"
release = "0.4.1"
version = __version__
release = __version__

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
4 changes: 0 additions & 4 deletions docs/source/requirements.txt

This file was deleted.

18 changes: 18 additions & 0 deletions docs/source/rtd_environment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: rtd311
channels:
- conda-forge
- defaults
dependencies:
- python=3.10
- pip
- pandoc>=3.1,<4.0
- nbsphinx
- jupyter
- matplotlib
- sphinx=7.2.4
- sphinx-copybutton
- numpy
- jax
- jaxlib
- diffmah
- h5py

0 comments on commit f84c038

Please sign in to comment.