Skip to main content

stacks-docs

Use when building or configuring documentation for a Stacks project - BunPress setup, doc generation, navigation, sidebar structure, or documentation meta/SEO. Covers @stacksjs/docs and config/docs.ts.

소스 정보

저장소
stacksjs/stacks
최근 소스 활동
2026년 9월 6일 16:59
감지된 SKILL.md 언어
영어
스타
631
포크
20

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
stacks-docs
description
Use when building or configuring documentation for a Stacks project - BunPress setup, doc generation, navigation, sidebar structure, or documentation meta/SEO. Covers @stacksjs/docs and config/docs.ts.
license
MIT
compatibility
Bun >= 1.3.0, TypeScript
allowed-tools
Read Edit Write Bash Grep Glob
# Stacks Documentation ## Key Paths - Core package: `storage/framework/core/docs/src/` - Doc content: `docs/` - Config: `config/docs.ts` - Output: `storage/framework/docs/dist/` - Package: `@stacksjs/docs` ## Source Files ``` docs/src/ ├── index.ts # frameworkDefaults + merged docsConfig └── meta.ts # CDN URLs, social links, PWA patterns ``` ## API ```typescript import { frameworkDefaults, docsConfig } from '@stacksjs/docs' // Framework defaults const frameworkDefaults: BunPressOptions = { docsDir: path.projectPath('docs'), outDir: path.frameworkPath('docs/dist'), } // Merged config (framework defaults + user config from config/docs.ts) const docsConfig: BunPressOptions = { ...frameworkDefaults, ...userConfig } ``` ## Meta Exports ```typescript import { googleapis, gstatic, font, ogUrl, ogImage, github, releases, contributing, discord, twitter, pwaFontsRegex, pwaFontStylesRegex } from '@stacksjs/docs' ``` Social and CDN constants used in documentation templates and PWA configuration. ## Configuration (config/docs.ts) ```typescript import type { BunPressOptions } from '@stacksjs/docs' export default { // Navigation nav: [ { text: 'Changelog', link: 'https://github.com/stacksjs/stacks/blob/main/CHANGELOG.md' }, { text: 'Blog', link: 'https://updates.stacksjs.com' }, ], // Markdown settings markdown: { title: 'Stacks.js', syntaxHighlighting: { theme: 'material-theme-palenight' }, toc: { depth: 2 }, }, // Sidebar structure sidebar: { '/prologue/': [/* ... */], '/get-started/': [/* ... */], '/basics/': [/* ... */], '/digging-deeper/': [/* ... */], '/cloud/': [/* ... */], '/cli/': [/* ... */], '/packages/': [/* ... */], '/testing/': [/* ... */], '/project/': [/* ... */], }, // Theme theme: { logo: '/images/logos/logo-transparent.svg', footer: { message: 'Released under the MIT License.', copyright: 'Copyright © 2025' }, socialLinks: [ { icon: 'twitter', link: 'https://twitter.com/stacksjs' }, { icon: 'github', link: 'https://github.com/stacksjs/stacks' }, { icon: 'discord', link: 'https://stacksjs.com/discord' }, ], }, // SEO sitemap: { hostname: 'https://stacksjs.com/docs' }, robotsTxt: { enabled: true }, } satisfies BunPressOptions ``` ## CLI Commands ```bash buddy dev:docs # Start docs dev server buddy build:docs # Build documentation site ``` ## Gotchas - **BunPress, not VitePress** — the docs engine is BunPress (Stacks' own documentation tool) - **Config merging** — `docsConfig` merges framework defaults with user config from `config/docs.ts` - **Sidebar is section-based** — organized by URL prefix (prologue, get-started, basics, etc.) - **SEO built-in** — sitemap and robots.txt generation enabled by default - **Output goes to `storage/framework/docs/dist/`** — not the `docs/` source directory
GitHub에서 보기