summaryrefslogtreecommitdiff
path: root/docs/management
diff options
context:
space:
mode:
authorCharles Roelli <charles@aurox.ch>2026-05-15 13:15:04 +0000
committerCharles Roelli <charles@aurox.ch>2026-05-15 13:15:04 +0000
commit431a34f195c6dff10c57c468694800c68d8399a5 (patch)
treea0fd8eebbff5221d2f72c3f841a956a95642ce13 /docs/management
parentc7c0a47954663d1d8661f085b25c658817b5122d (diff)
Use the database for docs renderingissue-1630
Co-authored-by: Paolo Melchiorre <pmelchiorre@rippling.com>
Diffstat (limited to 'docs/management')
-rw-r--r--docs/management/commands/update_docs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/management/commands/update_docs.py b/docs/management/commands/update_docs.py
index b5b01131..649c8e0a 100644
--- a/docs/management/commands/update_docs.py
+++ b/docs/management/commands/update_docs.py
@@ -278,6 +278,9 @@ class Command(BaseCommand):
json_built_dir = parent_build_dir / "_built" / "json"
documents = gen_decoded_documents(json_built_dir)
+ with open(json_built_dir / "globalcontext.json") as context:
+ release.global_context = json.load(context)
+ release.save(update_fields=["global_context"])
release.sync_to_db(documents)
def update_git(self, url, destdir, changed_dir="."):