Skip to content

Commit

Permalink
Fix 'readthedocs' build failure (ufs-community#861)
Browse files Browse the repository at this point in the history
Add a new .readthedocs.yaml file, which is now required by ReadTheDocs.

Remove references to "sphinxconfig.bibtex", which is not currently used by our documentation.

Fixes ufs-community#860.
  • Loading branch information
GeorgeGayno-NOAA authored Oct 18, 2023
1 parent 773fe3c commit b31385f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
tools:
python: "3.9"

sphinx:
configuration: docs/source/conf.py
1 change: 0 additions & 1 deletion docs/requirements.txt

This file was deleted.

5 changes: 2 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
'sphinx.ext.githubpages',
'sphinx.ext.napoleon',
'sphinxcontrib.bibtex'
'sphinx.ext.napoleon'
]

bibtex_bibfiles = ['references.bib']
#bibtex_bibfiles = ['references.bib']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down

0 comments on commit b31385f

Please sign in to comment.