Skip to content

Commit

Permalink
docs: add HTML context
Browse files Browse the repository at this point in the history
  • Loading branch information
StijnCaerts committed Sep 9, 2024
1 parent dcaa13b commit b18f09e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import os
import sys
from json import loads
from pathlib import Path

# Configuration file for the Sphinx documentation builder.
#
Expand Down Expand Up @@ -63,3 +65,9 @@
},
],
}

html_context = {}

ctx = Path(__file__).resolve().parent / "context.json"
if ctx.is_file():
html_context.update(loads(ctx.open("r").read()))

0 comments on commit b18f09e

Please sign in to comment.