diff --git a/public/docs.html b/public/docs.html index a5bb0a87..25792fbf 100644 --- a/public/docs.html +++ b/public/docs.html @@ -442,7 +442,7 @@ - + @@ -662,7 +662,7 @@
  • - Audience: Filter for Researcher, Implementer, Advocate/Leader, Technical, or General audience + Audience: Filter for Researcher, Implementer, Leader, Technical, or General audience
  • diff --git a/public/js/components/navbar.js b/public/js/components/navbar.js index f9ef32a6..84d6a13c 100644 --- a/public/js/components/navbar.js +++ b/public/js/components/navbar.js @@ -6,7 +6,6 @@ class TractatusNavbar { constructor() { this.mobileMenuOpen = false; - this.audiencesDropdownOpen = false; this.init(); } @@ -30,32 +29,9 @@ class TractatusNavbar { - - - - +
    - - - - - - + ${hasPDF ? ` + + + + + + ` : ''}
    `; } @@ -211,8 +230,8 @@ async function loadDocuments() { // Render documents in category docs.forEach(doc => { - // Highlight the first document in Introduction category - const isHighlighted = categoryId === 'introduction' && doc.order === 1; + // Highlight the first document in Getting Started category + const isHighlighted = categoryId === 'getting-started' && doc.order === 1; html += renderDocLink(doc, isHighlighted); }); @@ -290,15 +309,15 @@ async function loadDocuments() { } }); - // Auto-load first document in "Introduction" category (order: 1) - const introductionDocs = grouped['introduction'] || []; - if (introductionDocs.length > 0) { + // Auto-load first document in "Getting Started" category (order: 1) + const gettingStartedDocs = grouped['getting-started'] || []; + if (gettingStartedDocs.length > 0) { // Load the first document (order: 1) if available - const firstDoc = introductionDocs.find(d => d.order === 1); + const firstDoc = gettingStartedDocs.find(d => d.order === 1); if (firstDoc) { loadDocument(firstDoc.slug); } else { - loadDocument(introductionDocs[0].slug); + loadDocument(gettingStartedDocs[0].slug); } } else if (documents.length > 0) { // Fallback to first available document in any category @@ -361,6 +380,13 @@ async function loadDocument(slug) { // Fallback to traditional view with header const hasToC = currentDocument.toc && currentDocument.toc.length > 0; + // Check if PDF is available (same logic as sidebar) + const hasPDF = !currentDocument.slug.includes('api-reference-complete') && + !currentDocument.slug.includes('openapi-specification') && + !currentDocument.slug.includes('api-javascript-examples') && + !currentDocument.slug.includes('api-python-examples') && + !currentDocument.slug.includes('technical-architecture-diagram'); + let headerHTML = `

    ${currentDocument.title}

    @@ -375,16 +401,18 @@ async function loadDocument(slug) { ` : ''} - - - - - + ${hasPDF ? ` + + + + + + ` : ''}
    `;