MCPcopy Create free account
hub / github.com/dashscope/dashscope-sdk-java / on_pre_page_macros

Function on_pre_page_macros

docs/main.py:98–104  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

96
97
98def on_pre_page_macros(env):
99 # Only release-notes.md uses {{ release_notes }}; don't hit the network
100 # for other pages. i18n folder structure prefixes zh pages with "zh/".
101 src = env.page.file.src_uri
102 if src.endswith("release-notes.md"):
103 lang = "zh" if src.startswith("zh/") else "en"
104 env.variables["release_notes"] = _render_release_notes(lang)

Callers

nothing calls this directly

Calls 1

_render_release_notesFunction · 0.85

Tested by

no test coverage detected