Skip to content

Commit

Permalink
Merge pull request #35 from OSOceanAcoustics/rtd_migrate
Browse files Browse the repository at this point in the history
Add config to migrate to readthedocs
  • Loading branch information
lsetiawan authored May 23, 2023
2 parents ac04fa7 + 4c1df59 commit 316c4ae
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 47 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/pr.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,6 @@ dmypy.json
# Jupyter Book
_build/
converted_ek60

# Sphinx
notebooks/conf.py
28 changes: 28 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

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

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: notebooks/conf.py

# Optionally build your docs in additional formats such as PDF and ePub
formats: []

# Optionally set the version of Python and requirements required to build your docs
python:
install:
- requirements: notebooks/requirements.txt
2 changes: 2 additions & 0 deletions notebooks/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Dependecies for building the jupyter book
jupyter-book

0 comments on commit 316c4ae

Please sign in to comment.