-
Notifications
You must be signed in to change notification settings - Fork 2.3k
markdown export from URL #5830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
markdown export from URL #5830
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
|
dianed-square
approved these changes
Nov 20, 2025
blackgirlbytes
approved these changes
Nov 21, 2025
Contributor
|
Stellar job! As discussed, Emma will add a dropdown button that says view as markdown or something so that users will know this feature exists. |
michaelneale
added a commit
that referenced
this pull request
Nov 24, 2025
* main: (48 commits) [fix] generic check for gemini compat (#5842) Add scheduler to diagnostics (#5849) Cors and token (#5850) fix sessions coming back with empty messages (#5841) markdown export from URL (#5830) Next camp refactor live (#5706) Add out of context compaction test via error proxy (#5805) fix: Add backward compatibility for conversationCompacted message type (#5819) Add /agent/stop endpoint, make max active agents configurable (#5826) Handle 404s (#5791) Persist provider name and model config in the session (#5419) Comment out the flaky mcp callers (#5827) Slash commands (#5718) fix: remove setx calls to not permanently edit the windows shell PATH (#5821) fix: Parse maas models for gcp vertex provider (#5816) fix: support Gemini 3's thought signatures (#5806) chore: Add Adrian Cole to Maintainers (#5815) [MCP-UI] Proxy and Better Message Handling (#5487) Release 1.15.0 Document New Window menu in macOS dock (#5811) ...
kskarthik
pushed a commit
to kskarthik/goose
that referenced
this pull request
Nov 25, 2025
* Add Markdown export of any doc page by appending `.md` to the URL * New "View as Markdown" dropdown menu from the "copy page" button
kskarthik
pushed a commit
to kskarthik/goose
that referenced
this pull request
Nov 26, 2025
* Add Markdown export of any doc page by appending `.md` to the URL * New "View as Markdown" dropdown menu from the "copy page" button Signed-off-by: Sai Karthik <[email protected]>
BlairAllan
pushed a commit
to BlairAllan/goose
that referenced
this pull request
Nov 29, 2025
* Add Markdown export of any doc page by appending `.md` to the URL * New "View as Markdown" dropdown menu from the "copy page" button Signed-off-by: Blair Allan <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a new feature that allows AI agents and CLI tools to access goose documentation pages as markdown by appending
.mdto the URL of any documentation page.Key Features
Markdown Export Functionality
Markdown Export Plugin:
markdown-export.cjs) to process source documentation files.importstatements, and cleans.mdxcontent to generate.mdfiles..mdfiles alongside HTML during build.File URL Structure:
https://block.github.io/goose/docs/quickstarthttps://block.github.io/goose/docs/quickstart.mdExample Usage:
curl https://block.github.io/goose/docs/quickstart.mdcurl -s https://block.github.io/goose/docs/quickstart.md | glow -pLocal Development & Testing Enhancements
Static File Server:
serve-static.js, a simple HTTP server to test local builds./goose/base URL to align with production deployment./to/goose/to avoid confusion.New npm Script for Testing:
"serve-static": "node scripts/serve-static.js"topackage.jsonfor a smoother developer experience.http://localhost:3001/goose/docs/quickstart.mdConfig Updates:
docusaurus.config.ts.onBrokenMarkdownLinksto the propermarkdown.hooksnamespace.Changes Made
New Files
plugins/markdown-export.cjs:.mdfiles during the Docusaurus build process.scripts/serve-static.js:/goose/path handling.Modified Files
docusaurus.config.ts:onBrokenMarkdownLinksconfiguration.package.json:serve-staticnpm script.Type of Change
AI Assistance
Testing
Testing Locally with the Static File Server:
Access URLs:
Homepage: http://localhost:3001/goose/
Regular page: http://localhost:3001/goose/docs/getting-started/installation/
Markdown page: http://localhost:3001/goose/docs/guides/recipes/recipe-reference.md