Skip to content

Commit

Permalink
Fix pre-commit ci and update RTD config for jupyter-book (#934)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsetiawan authored Jan 18, 2023
1 parent f3fa356 commit e73fa14
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ repos:
hooks:
- id: flake8

- repo: https://github.com/executablebooks/jupyter-book
rev: v0.12.3
hooks:
- id: jb-to-sphinx
args: ["docs/source"]

- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
Expand Down
11 changes: 10 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.8"
jobs:
pre_build:
# Generate the Sphinx configuration for this Jupyter Book so it builds.
- "jupyter-book config sphinx docs/source"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
Expand All @@ -18,7 +28,6 @@ formats: []

# Optionally set the version of Python and requirements required to build your docs
python:
version: "3.8"
install:
- requirements: docs/requirements.txt
- method: pip
Expand Down

0 comments on commit e73fa14

Please sign in to comment.