diff --git a/src/index.html b/src/index.html index 621271d..33900b9 100644 --- a/src/index.html +++ b/src/index.html @@ -5685,6 +5685,7 @@

Artstr Studio docs

+
@@ -12126,8 +12127,9 @@ { slug: 'zaps', title: 'Zaps (NIP-57)', group: 'Publishing & payments', file: 'help/zaps.md' }, { slug: 'nwc', title: 'NWC wallet setup', group: 'Publishing & payments', file: 'help/nwc.md' }, ]; - const _docsCache = new Map(); // slug → rendered HTML + const _docsCache = new Map(); // slug → { html, md } let _docsActiveSlug = 'index'; + let _docsActiveMd = ''; function _renderDocsSidebar() { const aside = document.getElementById('docsSidebar'); @@ -12172,12 +12174,15 @@ try { history.replaceState(null, '', `#/help/${topic.slug}`); } catch {} } if (_docsCache.has(topic.slug)) { - content.innerHTML = _docsCache.get(topic.slug); + const cached = _docsCache.get(topic.slug); + content.innerHTML = cached.html; + _docsActiveMd = cached.md; _wireDocsInternalLinks(content); content.scrollTop = 0; return; } content.innerHTML = '

Loading…

'; + _docsActiveMd = ''; try { const md = await _fetchDocsMarkdown(topic.file); let html; @@ -12188,7 +12193,8 @@ } // Safety scrub: strip