mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-12 15:03:55 +09:00
- Per-source explainer strip (SOURCE_GUIDES): the selected source card renders what it does, what to have ready, and the 2-3 next steps. - Extract the hardcoded SERVICE_TEMPLATES into frontend/src/data/deployTemplates.js; the Templates tab gains a 'Deploy templates' section (badged 'Example' for the demo) with a 'Use template' deep-link (/services/new?template=<id>) that preselects it in the wizard. One list, two entry points; Template Library button now targets #deploy-templates. - New docsLinks.js map + <DocsLink> (book icon, opens serverkit.ai docs in a new tab, hidden under White Label — the single place that rule lives). Wired into the New Service source pane (deploy-sources / manifest) and the Marketplace manual-install modal (extensions/installing). Lint 0 errors; build clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
22 lines
799 B
JavaScript
22 lines
799 B
JavaScript
// Single map of panel surface -> serverkit.ai docs URL. Keeping every external
|
|
// docs link in one place means the White Label "hide external links" rule lives
|
|
// in exactly one component (DocsLink), and URLs don't drift page to page.
|
|
|
|
const DOCS_BASE = 'https://serverkit.ai/docs';
|
|
|
|
export const DOCS_LINKS = {
|
|
deploySources: `${DOCS_BASE}/deploy-sources`,
|
|
manifest: `${DOCS_BASE}/manifest`,
|
|
extensions: `${DOCS_BASE}/extensions`,
|
|
extensionsInstalling: `${DOCS_BASE}/extensions/installing`,
|
|
extensionsBuilding: `${DOCS_BASE}/extensions/building`,
|
|
extensionsPublishing: `${DOCS_BASE}/extensions/publishing`,
|
|
extensionsSecurity: `${DOCS_BASE}/extensions/security`,
|
|
};
|
|
|
|
export function docsUrl(key) {
|
|
return DOCS_LINKS[key] || DOCS_BASE;
|
|
}
|
|
|
|
export default DOCS_LINKS;
|