diff --git a/public/js/docs-app.js b/public/js/docs-app.js index 89af846d..8da5f9bb 100644 --- a/public/js/docs-app.js +++ b/public/js/docs-app.js @@ -506,14 +506,6 @@ function renderDocLink(doc, isHighlighted = false) { if (doc.download_formats && doc.download_formats.pdf) { pdfPath = doc.download_formats.pdf; hasPDF = true; - } else if (!doc.slug.includes('api-reference-complete') && - !doc.slug.includes('openapi-specification') && - !doc.slug.includes('api-javascript-examples') && - !doc.slug.includes('api-python-examples') && - !doc.slug.includes('technical-architecture-diagram')) { - // Fallback to default /downloads/ path for documents that typically have PDFs - pdfPath = `/downloads/${doc.slug}.pdf`; - hasPDF = true; } // Add download button styling @@ -963,13 +955,6 @@ async function loadDocument(slug, lang = null) { if (currentDocument.download_formats && currentDocument.download_formats.pdf) { pdfPath = currentDocument.download_formats.pdf; hasPDF = true; - } else if (!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')) { - pdfPath = `/downloads/${currentDocument.slug}.pdf`; - hasPDF = true; } let headerHTML = `