-
Notifications
You must be signed in to change notification settings - Fork 2
copy as markdown , /{endpoint}.md , open in chat platform #16
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
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
462fae5
feat: serve every page as Markdown at its own URL + .md
aquaticcalf 8073156
feat: add Copy Markdown and Open page actions
aquaticcalf 77d8cc5
feat: structural MDX-to-markdown with URL/label surfacing
aquaticcalf 76ccba4
feat: render page title above copy/open actions
aquaticcalf 8822a65
fix: use prompt param for ChatGPT share link
aquaticcalf 874e6c0
refactor: consolidate AI tool links into a data registry
aquaticcalf f036dc5
feat: add Google (AI Overview) link to AI tools
aquaticcalf 17d21c4
feat: rename AI tool labels to Ask <tool>
aquaticcalf 3df94e2
feat: two-column AI menu, Google/openCode tools, mobile overflow fix
aquaticcalf c5546f5
feat: copy terminal commands for OpenCode/Claude Code, fix menu layout
aquaticcalf 0743019
feat: copy icon + clearer labels for command tools
aquaticcalf 018db8a
feat: shorten command tool labels
aquaticcalf 2e3f973
fix: give left AI menu column matching gutter off the divider
aquaticcalf a277e11
feat: add Codex and Antigravity CLI command tools
aquaticcalf bfba505
feat: monochrome brand icons for AI tools, VS Code MCP fix, icon wiggle
aquaticcalf 62c540b
feat: confetti on copy + copied-state polish
aquaticcalf 070c50d
refactor: code review cleanup
aquaticcalf bce023c
chore: gitignore log files (dev server output)
aquaticcalf ce35f12
refactor: dedupe glyphs/clipboard helpers, tokenize confetti colors
aquaticcalf 0ac38eb
fix: cap mobile Open menu width to 80vw
aquaticcalf a65a28a
fix(security): patch 4 advisories in the lockfile (3 high, 1 moderate)
CharanMN7 5c18b2d
fix(security): bump archived templates to next 16.2.12 (54 Dependabot…
CharanMN7 2143b95
docs(archive): record why archived templates don't build, and why the…
CharanMN7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,7 @@ public/_pagefind/ | |
| # misc | ||
| .DS_Store | ||
| *.pem | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| # Archived templates | ||
|
|
||
| The six themes here — `aurora`, `base`, `cedar`, `fern`, `galley`, `mono` — | ||
| are the pre-0.4.0 template set, kept as a historical reference. They were | ||
| archived in `8245b0a`. The templates the CLI actually scaffolds from live in | ||
| `../templates` (`canopy`, `galley`, `shadcn`). | ||
|
|
||
| ## These do not build as-is | ||
|
|
||
| Each of the six depends on `@inkform/framework: ^0.3.0`. On a 0.x version a | ||
| caret range cannot cross the minor, so `^0.3.0` resolves to the published | ||
| `0.3.0` — while the source in these directories was written against the | ||
| newer API that shipped in `0.4.0`. A standalone `npm install && npm run | ||
| build` in any of them fails at module resolution: | ||
|
|
||
| Module not found: Can't resolve '@inkform/framework/ai' | ||
| Module not found: Can't resolve '@inkform/framework/openapi-render' | ||
| Module not found: Can't resolve '@inkform/framework/openapi-engine/nav' | ||
| Module not found: Can't resolve '@inkform/framework/openapi-engine/parse' | ||
|
|
||
| `tsc --noEmit` fails for the same reason, plus two API-shape mismatches: the | ||
| templates pass a `contentType` prop to `DocsShell` and read `apiReference` | ||
| off `DocsTab`, neither of which exists in 0.3.0. | ||
|
|
||
| This is expected for archived code and is **not** a regression. It is | ||
| recorded here so the next person to open this directory doesn't spend time | ||
| diagnosing it, and so a current-looking dependency version isn't mistaken | ||
| for a maintained template. | ||
|
|
||
| Reviving one of these means re-pointing it at `@inkform/framework: ^0.4.0` | ||
| and reconciling the template source with the 0.4.0 API — see | ||
| [`../MIGRATION.md`](../MIGRATION.md) and the 0.4.0 entry in | ||
| [`../CHANGELOG.md`](../CHANGELOG.md). | ||
|
|
||
| ## Why dependency versions here still get bumped | ||
|
|
||
| `archive/templates/*` is outside the root `package.json`'s `workspaces` | ||
| array, so nothing here is installed, typechecked, or built by `npm ci` or by | ||
| CI. But Dependabot reads every `package.json` in the repo regardless, so | ||
| these six manifests still raise alerts and still need patching — as of the | ||
| Next.js 16.2.12 bump they accounted for 54 of the repo's 60 open alerts. | ||
|
|
||
| Bumping a version string here is therefore an alert-hygiene change with no | ||
| effect on any build. It does not imply the template was retested; the | ||
| breakage described above applies before and after. |
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import { createMarkdownHandler } from '@inkform/framework/markdown'; | ||
| import { apiBasePath, loadDocsConfig } from '@/lib/route'; | ||
|
|
||
| export const runtime = 'nodejs'; | ||
|
|
||
| /** | ||
| * GET <slug>.md — any page as Markdown, served at the page's own URL plus a | ||
| * `.md` extension (e.g. /getting-started/quickstart.md). Index = /index.md. | ||
| * API operations resolve as /<apiBase>/operations/<operationId>.md; blog and | ||
| * changelog entries as /blog/<slug>.md and /changelog/<slug>.md. Unknown | ||
| * pages 404. | ||
| */ | ||
| const config = loadDocsConfig(); | ||
| const apiBase = config && apiBasePath(config); | ||
|
|
||
| export const GET = createMarkdownHandler({ apiBasePath: apiBase ?? undefined }); |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import { createMarkdownHandler } from '@inkform/framework/markdown'; | ||
| import { apiBasePath, loadDocsConfig } from '@/lib/route'; | ||
|
|
||
| export const runtime = 'nodejs'; | ||
|
|
||
| /** | ||
| * GET <slug>.md — any page as Markdown, served at the page's own URL plus a | ||
| * `.md` extension (e.g. /quickstart.md, /concepts/pagination.md). Index = | ||
| * /index.md. API operations resolve as | ||
| * /<apiBase>/operations/<operationId>.md; blog and changelog entries as | ||
| * /blog/<slug>.md and /changelog/<slug>.md. Unknown pages 404. | ||
| */ | ||
| const config = loadDocsConfig(); | ||
| const apiBase = config && apiBasePath(config); | ||
|
|
||
| export const GET = createMarkdownHandler({ apiBasePath: apiBase ?? undefined }); |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import { createMarkdownHandler } from '@inkform/framework/markdown'; | ||
| import { apiBasePath, loadDocsConfig } from '@/lib/route'; | ||
|
|
||
| export const runtime = 'nodejs'; | ||
|
|
||
| /** | ||
| * GET <slug>.md — any page as Markdown, served at the page's own URL plus a | ||
| * `.md` extension (e.g. /quickstart.md, /concepts/pagination.md). Index = | ||
| * /index.md. API operations resolve as | ||
| * /<apiBase>/operations/<operationId>.md; blog and changelog entries as | ||
| * /blog/<slug>.md and /changelog/<slug>.md. Unknown pages 404. | ||
| */ | ||
| const config = loadDocsConfig(); | ||
| const apiBase = config && apiBasePath(config); | ||
|
|
||
| export const GET = createMarkdownHandler({ apiBasePath: apiBase ?? undefined }); |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.