Skip to content

Commit

Permalink
start RTD integration (#293)
Browse files Browse the repository at this point in the history
* start RTD integration

* sphinx_markdown_tables

* typo

* allow crappy rst because rst is crappy

* reconmark

* declare recommonmark as an extension
  • Loading branch information
hobu committed Jan 14, 2023
1 parent 0cdd044 commit 414c288
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

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

jobs:
post_checkout:
# Cancel building pull requests when there aren't changed in the docs directory or YAML file.
# You can add any other files or directories that you'd like here as well,
# like your docs requirements file, or other files that will change your docs build.
#
# If there are no changes (git diff exits with 0) we force the command to return with 183.
# This is a special exit code on Read the Docs that will cancel the build immediately.
- |
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- doc/ .readthedocs.yaml;
then
exit 183;
fi
- (git --no-pager log --pretty="tformat:%s -- %b" -1 | grep -viq "skip ci") || exit 183

apt_packages:
- graphviz

formats:
- pdf
- epub

conda:
environment: doc/environment.yml

sphinx:
builder: html
configuration: doc/source/conf.py
17 changes: 17 additions & 0 deletions doc/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: entwine
channels:
- conda-forge
dependencies:
- compilers
- cmake
- ninja
- pip
- pip:
- breathe
- pybtex
- sphinx-rtd-theme
- sphinxcontrib-bibtex
- sphinxcontrib-spelling
- sphinx_markdown_tables
- recommonmark
- sphinxcontrib-spelling!=7.4.0
1 change: 1 addition & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
'sphinx.ext.intersphinx',
'sphinx.ext.mathjax',
'sphinx_markdown_tables',
'recommonmark',
'sphinxcontrib.spelling'
]

Expand Down

0 comments on commit 414c288

Please sign in to comment.