Skip to content

Conversation

@thaJeztah
Copy link
Member

The API docs are generated dynamically, which prevents them from being crawled / indexed. Provide a link to the swagger / OpenAPI spec that's used to generate the page, so that that content can be used as alternative.

Description

Related issues or tickets

Reviews

  • Technical review
  • Editorial review
  • Product review

@netlify
Copy link

netlify bot commented Jan 8, 2026

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 67c1e98
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/695fcef498cf180008b8b121
😎 Deploy Preview https://deploy-preview-23944--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the hugo Updates related to hugo label Jan 8, 2026
@thaJeztah thaJeztah force-pushed the api_crawlable branch 3 times, most recently from 9562004 to 82679eb Compare January 8, 2026 14:55
@thaJeztah thaJeztah marked this pull request as ready for review January 8, 2026 14:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the crawlability and accessibility of the API documentation pages by adding an alternate link to the raw Swagger/OpenAPI specification file. The dynamically-rendered JavaScript-based API docs are not easily crawlable, so this provides search engines and users without JavaScript access to the underlying YAML specification.

  • Moved the $specURL variable declaration to make it available in the document head
  • Added a <link rel="alternate"> element in the head pointing to the OpenAPI YAML specification
  • Added a <noscript> fallback with a direct download link for users without JavaScript

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@dvdksn dvdksn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@thaJeztah
Copy link
Member Author

Thx! Let me make CoPilot happier if it also works inside the head tag 😅

The API docs are generated dynamically, which prevents them from being
crawled / indexed. Provide a link to the swagger / OpenAPI spec that's
used to generate the page, so that that content can be used as alternative.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@thaJeztah thaJeztah merged commit a5d29ea into docker:main Jan 8, 2026
21 checks passed
@thaJeztah thaJeztah deleted the api_crawlable branch January 8, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hugo Updates related to hugo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants