Skip to content

Commit

Permalink
Create .readthedocs.yaml and update ruamel.yaml usage (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Mar 12, 2024
1 parent 0b24bd6 commit 3658885
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Read the Docs configuration file for https://hdmf-schema-language.readthedocs.io/
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.12"

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

# Optionally set the version of Python and requirements required to build your docs
python:
install:
- requirements: requirements-doc.txt
3 changes: 2 additions & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

with open('namespace_map.yml', 'r') as f:
namespace_map = yaml.safe_load(f)
yaml_obj = yaml.YAML(typ='safe', pure=True)
namespace_map = yaml_obj.load(f)


def rstjinja(app, docname, source):
Expand Down

0 comments on commit 3658885

Please sign in to comment.