@shirokuma-library/shirokuma-docs 0.1.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @shirokuma-library/shirokuma-docs might be problematic. Click here for more details.
- package/LICENSE +21 -0
- package/README.en.md +308 -0
- package/README.md +308 -0
- package/THIRD_PARTY_NOTICES.md +18 -0
- package/bin/shirokuma-docs +2 -0
- package/dist/analyzers/details-test-analysis.d.ts +31 -0
- package/dist/analyzers/details-test-analysis.d.ts.map +1 -0
- package/dist/analyzers/details-test-analysis.js +172 -0
- package/dist/analyzers/details-test-analysis.js.map +1 -0
- package/dist/analyzers/feature-map-builder.d.ts +20 -0
- package/dist/analyzers/feature-map-builder.d.ts.map +1 -0
- package/dist/analyzers/feature-map-builder.js +154 -0
- package/dist/analyzers/feature-map-builder.js.map +1 -0
- package/dist/analyzers/feature-map-references.d.ts +34 -0
- package/dist/analyzers/feature-map-references.d.ts.map +1 -0
- package/dist/analyzers/feature-map-references.js +249 -0
- package/dist/analyzers/feature-map-references.js.map +1 -0
- package/dist/analyzers/reference-analyzer.d.ts +95 -0
- package/dist/analyzers/reference-analyzer.d.ts.map +1 -0
- package/dist/analyzers/reference-analyzer.js +372 -0
- package/dist/analyzers/reference-analyzer.js.map +1 -0
- package/dist/commands/adr.d.ts +26 -0
- package/dist/commands/adr.d.ts.map +1 -0
- package/dist/commands/adr.js +129 -0
- package/dist/commands/adr.js.map +1 -0
- package/dist/commands/api-tools.d.ts +83 -0
- package/dist/commands/api-tools.d.ts.map +1 -0
- package/dist/commands/api-tools.js +775 -0
- package/dist/commands/api-tools.js.map +1 -0
- package/dist/commands/coverage.d.ts +139 -0
- package/dist/commands/coverage.d.ts.map +1 -0
- package/dist/commands/coverage.js +481 -0
- package/dist/commands/coverage.js.map +1 -0
- package/dist/commands/deps.d.ts +24 -0
- package/dist/commands/deps.d.ts.map +1 -0
- package/dist/commands/deps.js +211 -0
- package/dist/commands/deps.js.map +1 -0
- package/dist/commands/details-context.d.ts +38 -0
- package/dist/commands/details-context.d.ts.map +1 -0
- package/dist/commands/details-context.js +193 -0
- package/dist/commands/details-context.js.map +1 -0
- package/dist/commands/details-types.d.ts +315 -0
- package/dist/commands/details-types.d.ts.map +1 -0
- package/dist/commands/details-types.js +7 -0
- package/dist/commands/details-types.js.map +1 -0
- package/dist/commands/details.d.ts +24 -0
- package/dist/commands/details.d.ts.map +1 -0
- package/dist/commands/details.js +299 -0
- package/dist/commands/details.js.map +1 -0
- package/dist/commands/discussion-templates.d.ts +26 -0
- package/dist/commands/discussion-templates.d.ts.map +1 -0
- package/dist/commands/discussion-templates.js +270 -0
- package/dist/commands/discussion-templates.js.map +1 -0
- package/dist/commands/discussions.d.ts +31 -0
- package/dist/commands/discussions.d.ts.map +1 -0
- package/dist/commands/discussions.js +743 -0
- package/dist/commands/discussions.js.map +1 -0
- package/dist/commands/feature-map-types.d.ts +294 -0
- package/dist/commands/feature-map-types.d.ts.map +1 -0
- package/dist/commands/feature-map-types.js +8 -0
- package/dist/commands/feature-map-types.js.map +1 -0
- package/dist/commands/feature-map.d.ts +30 -0
- package/dist/commands/feature-map.d.ts.map +1 -0
- package/dist/commands/feature-map.js +137 -0
- package/dist/commands/feature-map.js.map +1 -0
- package/dist/commands/generate.d.ts +16 -0
- package/dist/commands/generate.d.ts.map +1 -0
- package/dist/commands/generate.js +88 -0
- package/dist/commands/generate.js.map +1 -0
- package/dist/commands/gh-discussions.d.ts +31 -0
- package/dist/commands/gh-discussions.d.ts.map +1 -0
- package/dist/commands/gh-discussions.js +743 -0
- package/dist/commands/gh-discussions.js.map +1 -0
- package/dist/commands/gh-issues-pr.d.ts +74 -0
- package/dist/commands/gh-issues-pr.d.ts.map +1 -0
- package/dist/commands/gh-issues-pr.js +417 -0
- package/dist/commands/gh-issues-pr.js.map +1 -0
- package/dist/commands/gh-issues.d.ts +90 -0
- package/dist/commands/gh-issues.d.ts.map +1 -0
- package/dist/commands/gh-issues.js +1297 -0
- package/dist/commands/gh-issues.js.map +1 -0
- package/dist/commands/gh-projects.d.ts +54 -0
- package/dist/commands/gh-projects.d.ts.map +1 -0
- package/dist/commands/gh-projects.js +966 -0
- package/dist/commands/gh-projects.js.map +1 -0
- package/dist/commands/gh-repo.d.ts +18 -0
- package/dist/commands/gh-repo.d.ts.map +1 -0
- package/dist/commands/gh-repo.js +253 -0
- package/dist/commands/gh-repo.js.map +1 -0
- package/dist/commands/github-data.d.ts +67 -0
- package/dist/commands/github-data.d.ts.map +1 -0
- package/dist/commands/github-data.js +361 -0
- package/dist/commands/github-data.js.map +1 -0
- package/dist/commands/i18n.d.ts +102 -0
- package/dist/commands/i18n.d.ts.map +1 -0
- package/dist/commands/i18n.js +829 -0
- package/dist/commands/i18n.js.map +1 -0
- package/dist/commands/impact.d.ts +14 -0
- package/dist/commands/impact.d.ts.map +1 -0
- package/dist/commands/impact.js +263 -0
- package/dist/commands/impact.js.map +1 -0
- package/dist/commands/init.d.ts +53 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +429 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/issues-pr.d.ts +74 -0
- package/dist/commands/issues-pr.d.ts.map +1 -0
- package/dist/commands/issues-pr.js +417 -0
- package/dist/commands/issues-pr.js.map +1 -0
- package/dist/commands/issues.d.ts +76 -0
- package/dist/commands/issues.d.ts.map +1 -0
- package/dist/commands/issues.js +1285 -0
- package/dist/commands/issues.js.map +1 -0
- package/dist/commands/link-docs.d.ts +21 -0
- package/dist/commands/link-docs.d.ts.map +1 -0
- package/dist/commands/link-docs.js +990 -0
- package/dist/commands/link-docs.js.map +1 -0
- package/dist/commands/lint-annotations.d.ts +28 -0
- package/dist/commands/lint-annotations.d.ts.map +1 -0
- package/dist/commands/lint-annotations.js +511 -0
- package/dist/commands/lint-annotations.js.map +1 -0
- package/dist/commands/lint-code.d.ts +26 -0
- package/dist/commands/lint-code.d.ts.map +1 -0
- package/dist/commands/lint-code.js +428 -0
- package/dist/commands/lint-code.js.map +1 -0
- package/dist/commands/lint-coverage.d.ts +33 -0
- package/dist/commands/lint-coverage.d.ts.map +1 -0
- package/dist/commands/lint-coverage.js +379 -0
- package/dist/commands/lint-coverage.js.map +1 -0
- package/dist/commands/lint-docs.d.ts +23 -0
- package/dist/commands/lint-docs.d.ts.map +1 -0
- package/dist/commands/lint-docs.js +338 -0
- package/dist/commands/lint-docs.js.map +1 -0
- package/dist/commands/lint-structure.d.ts +38 -0
- package/dist/commands/lint-structure.d.ts.map +1 -0
- package/dist/commands/lint-structure.js +350 -0
- package/dist/commands/lint-structure.js.map +1 -0
- package/dist/commands/lint-tests.d.ts +25 -0
- package/dist/commands/lint-tests.d.ts.map +1 -0
- package/dist/commands/lint-tests.js +105 -0
- package/dist/commands/lint-tests.js.map +1 -0
- package/dist/commands/lint-workflow.d.ts +36 -0
- package/dist/commands/lint-workflow.d.ts.map +1 -0
- package/dist/commands/lint-workflow.js +255 -0
- package/dist/commands/lint-workflow.js.map +1 -0
- package/dist/commands/overview.d.ts +21 -0
- package/dist/commands/overview.d.ts.map +1 -0
- package/dist/commands/overview.js +1300 -0
- package/dist/commands/overview.js.map +1 -0
- package/dist/commands/packages.d.ts +107 -0
- package/dist/commands/packages.d.ts.map +1 -0
- package/dist/commands/packages.js +308 -0
- package/dist/commands/packages.js.map +1 -0
- package/dist/commands/portal-nextjs.d.ts +23 -0
- package/dist/commands/portal-nextjs.d.ts.map +1 -0
- package/dist/commands/portal-nextjs.js +336 -0
- package/dist/commands/portal-nextjs.js.map +1 -0
- package/dist/commands/portal.d.ts +24 -0
- package/dist/commands/portal.d.ts.map +1 -0
- package/dist/commands/portal.js +16 -0
- package/dist/commands/portal.js.map +1 -0
- package/dist/commands/projects.d.ts +54 -0
- package/dist/commands/projects.d.ts.map +1 -0
- package/dist/commands/projects.js +969 -0
- package/dist/commands/projects.js.map +1 -0
- package/dist/commands/repo-pairs.d.ts +19 -0
- package/dist/commands/repo-pairs.d.ts.map +1 -0
- package/dist/commands/repo-pairs.js +529 -0
- package/dist/commands/repo-pairs.js.map +1 -0
- package/dist/commands/repo.d.ts +18 -0
- package/dist/commands/repo.d.ts.map +1 -0
- package/dist/commands/repo.js +253 -0
- package/dist/commands/repo.js.map +1 -0
- package/dist/commands/schema.d.ts +49 -0
- package/dist/commands/schema.d.ts.map +1 -0
- package/dist/commands/schema.js +830 -0
- package/dist/commands/schema.js.map +1 -0
- package/dist/commands/screenshots.d.ts +203 -0
- package/dist/commands/screenshots.d.ts.map +1 -0
- package/dist/commands/screenshots.js +1234 -0
- package/dist/commands/screenshots.js.map +1 -0
- package/dist/commands/search-index.d.ts +83 -0
- package/dist/commands/search-index.d.ts.map +1 -0
- package/dist/commands/search-index.js +389 -0
- package/dist/commands/search-index.js.map +1 -0
- package/dist/commands/session.d.ts +153 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +1243 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/commands/test-cases-types.d.ts +154 -0
- package/dist/commands/test-cases-types.d.ts.map +1 -0
- package/dist/commands/test-cases-types.js +7 -0
- package/dist/commands/test-cases-types.js.map +1 -0
- package/dist/commands/test-cases.d.ts +28 -0
- package/dist/commands/test-cases.d.ts.map +1 -0
- package/dist/commands/test-cases.js +192 -0
- package/dist/commands/test-cases.js.map +1 -0
- package/dist/commands/typedoc.d.ts +21 -0
- package/dist/commands/typedoc.d.ts.map +1 -0
- package/dist/commands/typedoc.js +192 -0
- package/dist/commands/typedoc.js.map +1 -0
- package/dist/commands/update-skills.d.ts +56 -0
- package/dist/commands/update-skills.d.ts.map +1 -0
- package/dist/commands/update-skills.js +620 -0
- package/dist/commands/update-skills.js.map +1 -0
- package/dist/generators/details-entity-pages.d.ts +40 -0
- package/dist/generators/details-entity-pages.d.ts.map +1 -0
- package/dist/generators/details-entity-pages.js +301 -0
- package/dist/generators/details-entity-pages.js.map +1 -0
- package/dist/generators/details-html.d.ts +23 -0
- package/dist/generators/details-html.d.ts.map +1 -0
- package/dist/generators/details-html.js +324 -0
- package/dist/generators/details-html.js.map +1 -0
- package/dist/generators/details-module-page.d.ts +33 -0
- package/dist/generators/details-module-page.d.ts.map +1 -0
- package/dist/generators/details-module-page.js +408 -0
- package/dist/generators/details-module-page.js.map +1 -0
- package/dist/generators/details-styles.d.ts +39 -0
- package/dist/generators/details-styles.d.ts.map +1 -0
- package/dist/generators/details-styles.js +409 -0
- package/dist/generators/details-styles.js.map +1 -0
- package/dist/generators/feature-map-html.d.ts +66 -0
- package/dist/generators/feature-map-html.d.ts.map +1 -0
- package/dist/generators/feature-map-html.js +569 -0
- package/dist/generators/feature-map-html.js.map +1 -0
- package/dist/generators/feature-map-styles.d.ts +39 -0
- package/dist/generators/feature-map-styles.d.ts.map +1 -0
- package/dist/generators/feature-map-styles.js +449 -0
- package/dist/generators/feature-map-styles.js.map +1 -0
- package/dist/generators/test-cases-hierarchy.d.ts +21 -0
- package/dist/generators/test-cases-hierarchy.d.ts.map +1 -0
- package/dist/generators/test-cases-hierarchy.js +336 -0
- package/dist/generators/test-cases-hierarchy.js.map +1 -0
- package/dist/generators/test-cases-main.d.ts +20 -0
- package/dist/generators/test-cases-main.d.ts.map +1 -0
- package/dist/generators/test-cases-main.js +439 -0
- package/dist/generators/test-cases-main.js.map +1 -0
- package/dist/generators/test-cases-styles.d.ts +64 -0
- package/dist/generators/test-cases-styles.d.ts.map +1 -0
- package/dist/generators/test-cases-styles.js +1277 -0
- package/dist/generators/test-cases-styles.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +517 -0
- package/dist/index.js.map +1 -0
- package/dist/lint/annotation-lint.d.ts +198 -0
- package/dist/lint/annotation-lint.d.ts.map +1 -0
- package/dist/lint/annotation-lint.js +510 -0
- package/dist/lint/annotation-lint.js.map +1 -0
- package/dist/lint/annotation-types.d.ts +161 -0
- package/dist/lint/annotation-types.d.ts.map +1 -0
- package/dist/lint/annotation-types.js +31 -0
- package/dist/lint/annotation-types.js.map +1 -0
- package/dist/lint/code-types.d.ts +135 -0
- package/dist/lint/code-types.d.ts.map +1 -0
- package/dist/lint/code-types.js +25 -0
- package/dist/lint/code-types.js.map +1 -0
- package/dist/lint/coverage-types.d.ts +128 -0
- package/dist/lint/coverage-types.d.ts.map +1 -0
- package/dist/lint/coverage-types.js +24 -0
- package/dist/lint/coverage-types.js.map +1 -0
- package/dist/lint/docs-types.d.ts +214 -0
- package/dist/lint/docs-types.d.ts.map +1 -0
- package/dist/lint/docs-types.js +18 -0
- package/dist/lint/docs-types.js.map +1 -0
- package/dist/lint/formatters/index.d.ts +14 -0
- package/dist/lint/formatters/index.d.ts.map +1 -0
- package/dist/lint/formatters/index.js +28 -0
- package/dist/lint/formatters/index.js.map +1 -0
- package/dist/lint/formatters/json.d.ts +11 -0
- package/dist/lint/formatters/json.d.ts.map +1 -0
- package/dist/lint/formatters/json.js +12 -0
- package/dist/lint/formatters/json.js.map +1 -0
- package/dist/lint/formatters/summary.d.ts +11 -0
- package/dist/lint/formatters/summary.d.ts.map +1 -0
- package/dist/lint/formatters/summary.js +37 -0
- package/dist/lint/formatters/summary.js.map +1 -0
- package/dist/lint/formatters/terminal.d.ts +11 -0
- package/dist/lint/formatters/terminal.d.ts.map +1 -0
- package/dist/lint/formatters/terminal.js +99 -0
- package/dist/lint/formatters/terminal.js.map +1 -0
- package/dist/lint/index.d.ts +18 -0
- package/dist/lint/index.d.ts.map +1 -0
- package/dist/lint/index.js +103 -0
- package/dist/lint/index.js.map +1 -0
- package/dist/lint/rules/annotation-required.d.ts +35 -0
- package/dist/lint/rules/annotation-required.d.ts.map +1 -0
- package/dist/lint/rules/annotation-required.js +127 -0
- package/dist/lint/rules/annotation-required.js.map +1 -0
- package/dist/lint/rules/code-rules.d.ts +12 -0
- package/dist/lint/rules/code-rules.d.ts.map +1 -0
- package/dist/lint/rules/code-rules.js +11 -0
- package/dist/lint/rules/code-rules.js.map +1 -0
- package/dist/lint/rules/describe-coverage.d.ts +8 -0
- package/dist/lint/rules/describe-coverage.d.ts.map +1 -0
- package/dist/lint/rules/describe-coverage.js +43 -0
- package/dist/lint/rules/describe-coverage.js.map +1 -0
- package/dist/lint/rules/duplicate-testdoc.d.ts +8 -0
- package/dist/lint/rules/duplicate-testdoc.d.ts.map +1 -0
- package/dist/lint/rules/duplicate-testdoc.js +38 -0
- package/dist/lint/rules/duplicate-testdoc.js.map +1 -0
- package/dist/lint/rules/index.d.ts +29 -0
- package/dist/lint/rules/index.d.ts.map +1 -0
- package/dist/lint/rules/index.js +55 -0
- package/dist/lint/rules/index.js.map +1 -0
- package/dist/lint/rules/server-action-structure.d.ts +37 -0
- package/dist/lint/rules/server-action-structure.d.ts.map +1 -0
- package/dist/lint/rules/server-action-structure.js +151 -0
- package/dist/lint/rules/server-action-structure.js.map +1 -0
- package/dist/lint/rules/skipped-test-report.d.ts +11 -0
- package/dist/lint/rules/skipped-test-report.d.ts.map +1 -0
- package/dist/lint/rules/skipped-test-report.js +31 -0
- package/dist/lint/rules/skipped-test-report.js.map +1 -0
- package/dist/lint/rules/structure-rules.d.ts +67 -0
- package/dist/lint/rules/structure-rules.d.ts.map +1 -0
- package/dist/lint/rules/structure-rules.js +615 -0
- package/dist/lint/rules/structure-rules.js.map +1 -0
- package/dist/lint/rules/testdoc-japanese.d.ts +8 -0
- package/dist/lint/rules/testdoc-japanese.d.ts.map +1 -0
- package/dist/lint/rules/testdoc-japanese.js +31 -0
- package/dist/lint/rules/testdoc-japanese.js.map +1 -0
- package/dist/lint/rules/testdoc-min-length.d.ts +8 -0
- package/dist/lint/rules/testdoc-min-length.d.ts.map +1 -0
- package/dist/lint/rules/testdoc-min-length.js +31 -0
- package/dist/lint/rules/testdoc-min-length.js.map +1 -0
- package/dist/lint/rules/testdoc-required.d.ts +8 -0
- package/dist/lint/rules/testdoc-required.d.ts.map +1 -0
- package/dist/lint/rules/testdoc-required.js +27 -0
- package/dist/lint/rules/testdoc-required.js.map +1 -0
- package/dist/lint/rules/workflow-branch-naming.d.ts +20 -0
- package/dist/lint/rules/workflow-branch-naming.d.ts.map +1 -0
- package/dist/lint/rules/workflow-branch-naming.js +85 -0
- package/dist/lint/rules/workflow-branch-naming.js.map +1 -0
- package/dist/lint/rules/workflow-commit-format.d.ts +27 -0
- package/dist/lint/rules/workflow-commit-format.d.ts.map +1 -0
- package/dist/lint/rules/workflow-commit-format.js +92 -0
- package/dist/lint/rules/workflow-commit-format.js.map +1 -0
- package/dist/lint/rules/workflow-issue-fields.d.ts +24 -0
- package/dist/lint/rules/workflow-issue-fields.d.ts.map +1 -0
- package/dist/lint/rules/workflow-issue-fields.js +89 -0
- package/dist/lint/rules/workflow-issue-fields.js.map +1 -0
- package/dist/lint/rules/workflow-main-protection.d.ts +32 -0
- package/dist/lint/rules/workflow-main-protection.d.ts.map +1 -0
- package/dist/lint/rules/workflow-main-protection.js +114 -0
- package/dist/lint/rules/workflow-main-protection.js.map +1 -0
- package/dist/lint/structure-types.d.ts +216 -0
- package/dist/lint/structure-types.d.ts.map +1 -0
- package/dist/lint/structure-types.js +96 -0
- package/dist/lint/structure-types.js.map +1 -0
- package/dist/lint/types.d.ts +154 -0
- package/dist/lint/types.d.ts.map +1 -0
- package/dist/lint/types.js +21 -0
- package/dist/lint/types.js.map +1 -0
- package/dist/lint/workflow-types.d.ts +90 -0
- package/dist/lint/workflow-types.d.ts.map +1 -0
- package/dist/lint/workflow-types.js +7 -0
- package/dist/lint/workflow-types.js.map +1 -0
- package/dist/md/analyzer/index.d.ts +46 -0
- package/dist/md/analyzer/index.d.ts.map +1 -0
- package/dist/md/analyzer/index.js +288 -0
- package/dist/md/analyzer/index.js.map +1 -0
- package/dist/md/builder/index.d.ts +91 -0
- package/dist/md/builder/index.d.ts.map +1 -0
- package/dist/md/builder/index.js +446 -0
- package/dist/md/builder/index.js.map +1 -0
- package/dist/md/cli/analyze.d.ts +11 -0
- package/dist/md/cli/analyze.d.ts.map +1 -0
- package/dist/md/cli/analyze.js +118 -0
- package/dist/md/cli/analyze.js.map +1 -0
- package/dist/md/cli/build.d.ts +11 -0
- package/dist/md/cli/build.d.ts.map +1 -0
- package/dist/md/cli/build.js +74 -0
- package/dist/md/cli/build.js.map +1 -0
- package/dist/md/cli/extract.d.ts +25 -0
- package/dist/md/cli/extract.d.ts.map +1 -0
- package/dist/md/cli/extract.js +230 -0
- package/dist/md/cli/extract.js.map +1 -0
- package/dist/md/cli/index.d.ts +3 -0
- package/dist/md/cli/index.d.ts.map +1 -0
- package/dist/md/cli/index.js +99 -0
- package/dist/md/cli/index.js.map +1 -0
- package/dist/md/cli/lint.d.ts +11 -0
- package/dist/md/cli/lint.d.ts.map +1 -0
- package/dist/md/cli/lint.js +165 -0
- package/dist/md/cli/lint.js.map +1 -0
- package/dist/md/cli/list.d.ts +16 -0
- package/dist/md/cli/list.d.ts.map +1 -0
- package/dist/md/cli/list.js +85 -0
- package/dist/md/cli/list.js.map +1 -0
- package/dist/md/cli/program.d.ts +11 -0
- package/dist/md/cli/program.d.ts.map +1 -0
- package/dist/md/cli/program.js +104 -0
- package/dist/md/cli/program.js.map +1 -0
- package/dist/md/cli/validate.d.ts +8 -0
- package/dist/md/cli/validate.d.ts.map +1 -0
- package/dist/md/cli/validate.js +82 -0
- package/dist/md/cli/validate.js.map +1 -0
- package/dist/md/constants.d.ts +69 -0
- package/dist/md/constants.d.ts.map +1 -0
- package/dist/md/constants.js +69 -0
- package/dist/md/constants.js.map +1 -0
- package/dist/md/extractor/index.d.ts +57 -0
- package/dist/md/extractor/index.d.ts.map +1 -0
- package/dist/md/extractor/index.js +359 -0
- package/dist/md/extractor/index.js.map +1 -0
- package/dist/md/index.d.ts +26 -0
- package/dist/md/index.d.ts.map +1 -0
- package/dist/md/index.js +30 -0
- package/dist/md/index.js.map +1 -0
- package/dist/md/linter/index.d.ts +20 -0
- package/dist/md/linter/index.d.ts.map +1 -0
- package/dist/md/linter/index.js +412 -0
- package/dist/md/linter/index.js.map +1 -0
- package/dist/md/linter/token-optimizer.d.ts +66 -0
- package/dist/md/linter/token-optimizer.d.ts.map +1 -0
- package/dist/md/linter/token-optimizer.js +292 -0
- package/dist/md/linter/token-optimizer.js.map +1 -0
- package/dist/md/lister/index.d.ts +42 -0
- package/dist/md/lister/index.d.ts.map +1 -0
- package/dist/md/lister/index.js +317 -0
- package/dist/md/lister/index.js.map +1 -0
- package/dist/md/parser/heading-numbers.d.ts +43 -0
- package/dist/md/parser/heading-numbers.d.ts.map +1 -0
- package/dist/md/parser/heading-numbers.js +97 -0
- package/dist/md/parser/heading-numbers.js.map +1 -0
- package/dist/md/parser/section-meta.d.ts +50 -0
- package/dist/md/parser/section-meta.d.ts.map +1 -0
- package/dist/md/parser/section-meta.js +212 -0
- package/dist/md/parser/section-meta.js.map +1 -0
- package/dist/md/parser/template.d.ts +56 -0
- package/dist/md/parser/template.d.ts.map +1 -0
- package/dist/md/parser/template.js +122 -0
- package/dist/md/parser/template.js.map +1 -0
- package/dist/md/plugins/loader.d.ts +15 -0
- package/dist/md/plugins/loader.d.ts.map +1 -0
- package/dist/md/plugins/loader.js +80 -0
- package/dist/md/plugins/loader.js.map +1 -0
- package/dist/md/plugins/normalize-headings.d.ts +43 -0
- package/dist/md/plugins/normalize-headings.d.ts.map +1 -0
- package/dist/md/plugins/normalize-headings.js +51 -0
- package/dist/md/plugins/normalize-headings.js.map +1 -0
- package/dist/md/plugins/normalize-whitespace.d.ts +46 -0
- package/dist/md/plugins/normalize-whitespace.d.ts.map +1 -0
- package/dist/md/plugins/normalize-whitespace.js +86 -0
- package/dist/md/plugins/normalize-whitespace.js.map +1 -0
- package/dist/md/plugins/remove-badges.d.ts +36 -0
- package/dist/md/plugins/remove-badges.d.ts.map +1 -0
- package/dist/md/plugins/remove-badges.js +59 -0
- package/dist/md/plugins/remove-badges.js.map +1 -0
- package/dist/md/plugins/remove-comments.d.ts +27 -0
- package/dist/md/plugins/remove-comments.d.ts.map +1 -0
- package/dist/md/plugins/remove-comments.js +40 -0
- package/dist/md/plugins/remove-comments.js.map +1 -0
- package/dist/md/plugins/remove-duplicates.d.ts +40 -0
- package/dist/md/plugins/remove-duplicates.d.ts.map +1 -0
- package/dist/md/plugins/remove-duplicates.js +72 -0
- package/dist/md/plugins/remove-duplicates.js.map +1 -0
- package/dist/md/plugins/remove-internal-links.d.ts +38 -0
- package/dist/md/plugins/remove-internal-links.d.ts.map +1 -0
- package/dist/md/plugins/remove-internal-links.js +66 -0
- package/dist/md/plugins/remove-internal-links.js.map +1 -0
- package/dist/md/plugins/strip-heading-numbers.d.ts +35 -0
- package/dist/md/plugins/strip-heading-numbers.d.ts.map +1 -0
- package/dist/md/plugins/strip-heading-numbers.js +59 -0
- package/dist/md/plugins/strip-heading-numbers.js.map +1 -0
- package/dist/md/plugins/strip-section-meta.d.ts +37 -0
- package/dist/md/plugins/strip-section-meta.d.ts.map +1 -0
- package/dist/md/plugins/strip-section-meta.js +62 -0
- package/dist/md/plugins/strip-section-meta.js.map +1 -0
- package/dist/md/types/config.d.ts +260 -0
- package/dist/md/types/config.d.ts.map +1 -0
- package/dist/md/types/config.js +156 -0
- package/dist/md/types/config.js.map +1 -0
- package/dist/md/types/document.d.ts +37 -0
- package/dist/md/types/document.d.ts.map +1 -0
- package/dist/md/types/document.js +2 -0
- package/dist/md/types/document.js.map +1 -0
- package/dist/md/types/validation.d.ts +107 -0
- package/dist/md/types/validation.d.ts.map +1 -0
- package/dist/md/types/validation.js +2 -0
- package/dist/md/types/validation.js.map +1 -0
- package/dist/md/utils/code-blocks.d.ts +136 -0
- package/dist/md/utils/code-blocks.d.ts.map +1 -0
- package/dist/md/utils/code-blocks.js +178 -0
- package/dist/md/utils/code-blocks.js.map +1 -0
- package/dist/md/utils/config.d.ts +10 -0
- package/dist/md/utils/config.d.ts.map +1 -0
- package/dist/md/utils/config.js +99 -0
- package/dist/md/utils/config.js.map +1 -0
- package/dist/md/utils/file-collector.d.ts +78 -0
- package/dist/md/utils/file-collector.d.ts.map +1 -0
- package/dist/md/utils/file-collector.js +100 -0
- package/dist/md/utils/file-collector.js.map +1 -0
- package/dist/md/utils/markdown.d.ts +18 -0
- package/dist/md/utils/markdown.d.ts.map +1 -0
- package/dist/md/utils/markdown.js +93 -0
- package/dist/md/utils/markdown.js.map +1 -0
- package/dist/md/utils/remark.d.ts +91 -0
- package/dist/md/utils/remark.d.ts.map +1 -0
- package/dist/md/utils/remark.js +125 -0
- package/dist/md/utils/remark.js.map +1 -0
- package/dist/md/utils/tokens.d.ts +9 -0
- package/dist/md/utils/tokens.d.ts.map +1 -0
- package/dist/md/utils/tokens.js +31 -0
- package/dist/md/utils/tokens.js.map +1 -0
- package/dist/md/validator/index.d.ts +40 -0
- package/dist/md/validator/index.d.ts.map +1 -0
- package/dist/md/validator/index.js +289 -0
- package/dist/md/validator/index.js.map +1 -0
- package/dist/parsers/details-jsdoc.d.ts +46 -0
- package/dist/parsers/details-jsdoc.d.ts.map +1 -0
- package/dist/parsers/details-jsdoc.js +262 -0
- package/dist/parsers/details-jsdoc.js.map +1 -0
- package/dist/parsers/details-zod.d.ts +22 -0
- package/dist/parsers/details-zod.d.ts.map +1 -0
- package/dist/parsers/details-zod.js +145 -0
- package/dist/parsers/details-zod.js.map +1 -0
- package/dist/parsers/drizzle-schema.d.ts +92 -0
- package/dist/parsers/drizzle-schema.d.ts.map +1 -0
- package/dist/parsers/drizzle-schema.js +376 -0
- package/dist/parsers/drizzle-schema.js.map +1 -0
- package/dist/parsers/feature-map-tags.d.ts +45 -0
- package/dist/parsers/feature-map-tags.d.ts.map +1 -0
- package/dist/parsers/feature-map-tags.js +292 -0
- package/dist/parsers/feature-map-tags.js.map +1 -0
- package/dist/parsers/feature-map-type-extraction.d.ts +62 -0
- package/dist/parsers/feature-map-type-extraction.d.ts.map +1 -0
- package/dist/parsers/feature-map-type-extraction.js +347 -0
- package/dist/parsers/feature-map-type-extraction.js.map +1 -0
- package/dist/parsers/feature-map-utils.d.ts +34 -0
- package/dist/parsers/feature-map-utils.d.ts.map +1 -0
- package/dist/parsers/feature-map-utils.js +101 -0
- package/dist/parsers/feature-map-utils.js.map +1 -0
- package/dist/parsers/jsdoc-common.d.ts +209 -0
- package/dist/parsers/jsdoc-common.d.ts.map +1 -0
- package/dist/parsers/jsdoc-common.js +655 -0
- package/dist/parsers/jsdoc-common.js.map +1 -0
- package/dist/parsers/jsdoc.d.ts +76 -0
- package/dist/parsers/jsdoc.d.ts.map +1 -0
- package/dist/parsers/jsdoc.js +238 -0
- package/dist/parsers/jsdoc.js.map +1 -0
- package/dist/parsers/screenshot-annotations.d.ts +96 -0
- package/dist/parsers/screenshot-annotations.d.ts.map +1 -0
- package/dist/parsers/screenshot-annotations.js +227 -0
- package/dist/parsers/screenshot-annotations.js.map +1 -0
- package/dist/parsers/test-annotations.d.ts +46 -0
- package/dist/parsers/test-annotations.d.ts.map +1 -0
- package/dist/parsers/test-annotations.js +393 -0
- package/dist/parsers/test-annotations.js.map +1 -0
- package/dist/parsers/test-categorization.d.ts +42 -0
- package/dist/parsers/test-categorization.d.ts.map +1 -0
- package/dist/parsers/test-categorization.js +182 -0
- package/dist/parsers/test-categorization.js.map +1 -0
- package/dist/parsers/zod-schema.d.ts +105 -0
- package/dist/parsers/zod-schema.d.ts.map +1 -0
- package/dist/parsers/zod-schema.js +270 -0
- package/dist/parsers/zod-schema.js.map +1 -0
- package/dist/utils/action-inference.d.ts +23 -0
- package/dist/utils/action-inference.d.ts.map +1 -0
- package/dist/utils/action-inference.js +36 -0
- package/dist/utils/action-inference.js.map +1 -0
- package/dist/utils/app-inference.d.ts +31 -0
- package/dist/utils/app-inference.d.ts.map +1 -0
- package/dist/utils/app-inference.js +41 -0
- package/dist/utils/app-inference.js.map +1 -0
- package/dist/utils/auto-infer.d.ts +93 -0
- package/dist/utils/auto-infer.d.ts.map +1 -0
- package/dist/utils/auto-infer.js +184 -0
- package/dist/utils/auto-infer.js.map +1 -0
- package/dist/utils/config.d.ts +709 -0
- package/dist/utils/config.d.ts.map +1 -0
- package/dist/utils/config.js +504 -0
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/file.d.ts +46 -0
- package/dist/utils/file.d.ts.map +1 -0
- package/dist/utils/file.js +103 -0
- package/dist/utils/file.js.map +1 -0
- package/dist/utils/formatters.d.ts +111 -0
- package/dist/utils/formatters.d.ts.map +1 -0
- package/dist/utils/formatters.js +164 -0
- package/dist/utils/formatters.js.map +1 -0
- package/dist/utils/gh-config.d.ts +99 -0
- package/dist/utils/gh-config.d.ts.map +1 -0
- package/dist/utils/gh-config.js +247 -0
- package/dist/utils/gh-config.js.map +1 -0
- package/dist/utils/github.d.ts +98 -0
- package/dist/utils/github.d.ts.map +1 -0
- package/dist/utils/github.js +295 -0
- package/dist/utils/github.js.map +1 -0
- package/dist/utils/html.d.ts +107 -0
- package/dist/utils/html.d.ts.map +1 -0
- package/dist/utils/html.js +376 -0
- package/dist/utils/html.js.map +1 -0
- package/dist/utils/i18n.d.ts +40 -0
- package/dist/utils/i18n.d.ts.map +1 -0
- package/dist/utils/i18n.js +148 -0
- package/dist/utils/i18n.js.map +1 -0
- package/dist/utils/logger.d.ts +20 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +49 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/project-fields.d.ts +71 -0
- package/dist/utils/project-fields.d.ts.map +1 -0
- package/dist/utils/project-fields.js +318 -0
- package/dist/utils/project-fields.js.map +1 -0
- package/dist/utils/repo-pairs.d.ts +94 -0
- package/dist/utils/repo-pairs.d.ts.map +1 -0
- package/dist/utils/repo-pairs.js +196 -0
- package/dist/utils/repo-pairs.js.map +1 -0
- package/dist/utils/route-inference.d.ts +81 -0
- package/dist/utils/route-inference.d.ts.map +1 -0
- package/dist/utils/route-inference.js +137 -0
- package/dist/utils/route-inference.js.map +1 -0
- package/dist/utils/setup-check.d.ts +34 -0
- package/dist/utils/setup-check.d.ts.map +1 -0
- package/dist/utils/setup-check.js +136 -0
- package/dist/utils/setup-check.js.map +1 -0
- package/dist/utils/shirokumaignore.d.ts +55 -0
- package/dist/utils/shirokumaignore.d.ts.map +1 -0
- package/dist/utils/shirokumaignore.js +94 -0
- package/dist/utils/shirokumaignore.js.map +1 -0
- package/dist/utils/skills-repo.d.ts +353 -0
- package/dist/utils/skills-repo.d.ts.map +1 -0
- package/dist/utils/skills-repo.js +793 -0
- package/dist/utils/skills-repo.js.map +1 -0
- package/dist/utils/status-workflow.d.ts +54 -0
- package/dist/utils/status-workflow.d.ts.map +1 -0
- package/dist/utils/status-workflow.js +103 -0
- package/dist/utils/status-workflow.js.map +1 -0
- package/dist/validators/frontmatter.d.ts +41 -0
- package/dist/validators/frontmatter.d.ts.map +1 -0
- package/dist/validators/frontmatter.js +117 -0
- package/dist/validators/frontmatter.js.map +1 -0
- package/dist/validators/link-checker.d.ts +48 -0
- package/dist/validators/link-checker.d.ts.map +1 -0
- package/dist/validators/link-checker.js +108 -0
- package/dist/validators/link-checker.js.map +1 -0
- package/dist/validators/markdown-structure.d.ts +50 -0
- package/dist/validators/markdown-structure.d.ts.map +1 -0
- package/dist/validators/markdown-structure.js +253 -0
- package/dist/validators/markdown-structure.js.map +1 -0
- package/i18n/cli/en.json +155 -0
- package/i18n/cli/ja.json +155 -0
- package/i18n/discussion/en.json +191 -0
- package/i18n/discussion/ja.json +191 -0
- package/package.json +113 -0
- package/portal/app/api-tools/api-tools-client.tsx +411 -0
- package/portal/app/api-tools/api-tools-document.tsx +240 -0
- package/portal/app/api-tools/page.tsx +56 -0
- package/portal/app/api-tools/swagger-view.tsx +114 -0
- package/portal/app/apps/[appId]/[type]/[module]/[item]/item-tabs-client.tsx +71 -0
- package/portal/app/apps/[appId]/[type]/[module]/[item]/page.tsx +1422 -0
- package/portal/app/apps/[appId]/[type]/[module]/page.tsx +373 -0
- package/portal/app/apps/[appId]/feature-map/feature-map-app-document.tsx +298 -0
- package/portal/app/apps/[appId]/feature-map/page.tsx +224 -0
- package/portal/app/apps/[appId]/i18n/page.tsx +139 -0
- package/portal/app/apps/[appId]/test-cases/page.tsx +840 -0
- package/portal/app/apps/[appId]/tools/[tool]/page.tsx +351 -0
- package/portal/app/apps/[appId]/tools/api-tools-client.tsx +429 -0
- package/portal/app/apps/[appId]/tools/page.tsx +119 -0
- package/portal/app/db-schema/[db]/[table]/page.tsx +235 -0
- package/portal/app/db-schema/[db]/diagram/page.tsx +81 -0
- package/portal/app/db-schema/[db]/page.tsx +148 -0
- package/portal/app/db-schema/db-schema-document.tsx +100 -0
- package/portal/app/db-schema/diagram/client.tsx +211 -0
- package/portal/app/db-schema/diagram/page.tsx +20 -0
- package/portal/app/db-schema/page.tsx +145 -0
- package/portal/app/db-schema/table-detail-document.tsx +710 -0
- package/portal/app/db-schema/table-detail.tsx +747 -0
- package/portal/app/db-schema/table-list-document.tsx +224 -0
- package/portal/app/db-schema/table-list.tsx +247 -0
- package/portal/app/details/[type]/[module]/[item]/item-tabs-client.tsx +71 -0
- package/portal/app/details/[type]/[module]/[item]/page.tsx +1286 -0
- package/portal/app/details/[type]/[module]/page.tsx +884 -0
- package/portal/app/feature-map/feature-map-client.tsx +681 -0
- package/portal/app/feature-map/feature-map-document.tsx +313 -0
- package/portal/app/feature-map/page.tsx +438 -0
- package/portal/app/globals.css +205 -0
- package/portal/app/i18n/[...namespace]/page.tsx +190 -0
- package/portal/app/i18n/i18n-client.tsx +369 -0
- package/portal/app/i18n/page.tsx +339 -0
- package/portal/app/layout.tsx +37 -0
- package/portal/app/overview/page.tsx +65 -0
- package/portal/app/packages/[packageId]/page.tsx +201 -0
- package/portal/app/packages/page.tsx +148 -0
- package/portal/app/page.tsx +568 -0
- package/portal/app/test-cases/[file]/[line]/page.tsx +455 -0
- package/portal/app/test-cases/[file]/[line]/test-detail-document.tsx +335 -0
- package/portal/app/test-cases/[file]/page.tsx +323 -0
- package/portal/app/test-cases/[file]/test-file-document.tsx +335 -0
- package/portal/app/test-cases/page.tsx +546 -0
- package/portal/app/test-cases/test-cases-document.tsx +384 -0
- package/portal/components/code-block.tsx +57 -0
- package/portal/components/document/doc-params-table.tsx +71 -0
- package/portal/components/document/doc-section.tsx +133 -0
- package/portal/components/document/doc-table.tsx +119 -0
- package/portal/components/document/index.ts +9 -0
- package/portal/components/drawflow-er-diagram.tsx +607 -0
- package/portal/components/interactive-er-diagram.tsx +228 -0
- package/portal/components/layout/app-sidebar.tsx +490 -0
- package/portal/components/layout/er-sidebar.tsx +116 -0
- package/portal/components/layout/global-header.tsx +117 -0
- package/portal/components/layout/layout-content.tsx +48 -0
- package/portal/components/markdown-content.tsx +120 -0
- package/portal/components/mermaid-diagram.tsx +83 -0
- package/portal/components/reactflow-er-diagram.tsx +475 -0
- package/portal/components/search-dialog.tsx +268 -0
- package/portal/components/shared/coverage-score-bar.tsx +144 -0
- package/portal/components/swagger/endpoint-accordion.tsx +117 -0
- package/portal/components/swagger/index.ts +7 -0
- package/portal/components/swagger/method-badge.tsx +55 -0
- package/portal/components/swagger/params-table.tsx +78 -0
- package/portal/components/tabs-with-hash.tsx +43 -0
- package/portal/components/test/index.ts +2 -0
- package/portal/components/test/test-bdd-card.tsx +192 -0
- package/portal/components/test/test-matrix.tsx +242 -0
- package/portal/components/ui/accordion.tsx +66 -0
- package/portal/components/ui/badge.tsx +46 -0
- package/portal/components/ui/breadcrumb.tsx +109 -0
- package/portal/components/ui/button.tsx +62 -0
- package/portal/components/ui/card.tsx +92 -0
- package/portal/components/ui/collapsible.tsx +33 -0
- package/portal/components/ui/dialog.tsx +118 -0
- package/portal/components/ui/progress.tsx +28 -0
- package/portal/components/ui/scroll-area.tsx +58 -0
- package/portal/components/ui/sheet.tsx +139 -0
- package/portal/components/ui/table.tsx +116 -0
- package/portal/components/ui/tabs.tsx +66 -0
- package/portal/components.json +21 -0
- package/portal/lib/constants/test-categories.ts +186 -0
- package/portal/lib/data-loader.ts +1181 -0
- package/portal/lib/db-schema-utils.ts +182 -0
- package/portal/lib/format.ts +43 -0
- package/portal/lib/hooks/use-hash-tab.ts +144 -0
- package/portal/lib/path-utils.ts +25 -0
- package/portal/lib/search-index-generator.ts +214 -0
- package/portal/lib/search.ts +126 -0
- package/portal/lib/sidebar-context.tsx +111 -0
- package/portal/lib/types.ts +740 -0
- package/portal/lib/utils.ts +6 -0
- package/portal/next.config.ts +21 -0
- package/portal/package.json +45 -0
- package/portal/postcss.config.mjs +8 -0
- package/portal/tsconfig.json +41 -0
- package/portal/types/drawflow.d.ts +80 -0
- package/templates/README.md +73 -0
- package/templates/coverage.html +367 -0
- package/templates/dark-theme.css +443 -0
- package/templates/discussion/adr.yml.hbs +65 -0
- package/templates/discussion/handovers.yml.hbs +57 -0
- package/templates/discussion/knowledge.yml.hbs +60 -0
- package/templates/discussion/reports.yml.hbs +68 -0
- package/templates/discussion/research.yml.hbs +61 -0
|
@@ -0,0 +1,1300 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* overview コマンド - プロジェクト概要ページ生成
|
|
3
|
+
*
|
|
4
|
+
* config とオプションの OVERVIEW.md から、プロジェクトのトップレベル
|
|
5
|
+
* ドキュメントページを生成する
|
|
6
|
+
*/
|
|
7
|
+
import { resolve } from "node:path";
|
|
8
|
+
import { loadConfig, getOutputPath, resolvePath } from "../utils/config.js";
|
|
9
|
+
import { ensureDir, writeFile, readFile } from "../utils/file.js";
|
|
10
|
+
import { createLogger } from "../utils/logger.js";
|
|
11
|
+
import { wrapHtmlDocument, escapeHtml, icons } from "../utils/html.js";
|
|
12
|
+
/**
|
|
13
|
+
* overview コマンドハンドラ
|
|
14
|
+
*/
|
|
15
|
+
export async function overviewCommand(options) {
|
|
16
|
+
const logger = createLogger(options.verbose);
|
|
17
|
+
const projectPath = resolve(options.project);
|
|
18
|
+
logger.info("プロジェクト概要ページを生成中");
|
|
19
|
+
// 設定読み込み
|
|
20
|
+
const config = loadConfig(projectPath, options.config);
|
|
21
|
+
const overviewConfig = config.overview;
|
|
22
|
+
if (overviewConfig?.enabled === false) {
|
|
23
|
+
logger.info("overview は無効化されています");
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
// 出力ディレクトリ
|
|
27
|
+
const portalDir = options.output
|
|
28
|
+
? resolve(options.output)
|
|
29
|
+
: getOutputPath(config, projectPath, "portal");
|
|
30
|
+
ensureDir(portalDir);
|
|
31
|
+
// 追加情報を収集
|
|
32
|
+
const packageInfo = loadPackageJson(projectPath);
|
|
33
|
+
const featureMapStats = loadFeatureMapStats(portalDir);
|
|
34
|
+
const overviewMarkdown = loadOverviewMarkdown(projectPath, overviewConfig?.file);
|
|
35
|
+
// HTML 生成
|
|
36
|
+
const htmlPath = resolve(portalDir, "overview.html");
|
|
37
|
+
const htmlContent = generateOverviewHtml(config, packageInfo, featureMapStats, overviewMarkdown);
|
|
38
|
+
writeFile(htmlPath, htmlContent);
|
|
39
|
+
logger.success(`Overview: ${htmlPath}`);
|
|
40
|
+
logger.success("プロジェクト概要ページ生成完了");
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* package.json を読み込む
|
|
44
|
+
*/
|
|
45
|
+
function loadPackageJson(projectPath) {
|
|
46
|
+
const packageJsonPath = resolve(projectPath, "package.json");
|
|
47
|
+
const content = readFile(packageJsonPath);
|
|
48
|
+
if (!content) {
|
|
49
|
+
return {};
|
|
50
|
+
}
|
|
51
|
+
try {
|
|
52
|
+
return JSON.parse(content);
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
return {};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* feature-map.json から統計を読み込む
|
|
60
|
+
*/
|
|
61
|
+
function loadFeatureMapStats(portalDir) {
|
|
62
|
+
const featureMapPath = resolve(portalDir, "feature-map.json");
|
|
63
|
+
const content = readFile(featureMapPath);
|
|
64
|
+
if (!content) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
try {
|
|
68
|
+
const data = JSON.parse(content);
|
|
69
|
+
const features = data.features || {};
|
|
70
|
+
const uncategorized = data.uncategorized || {};
|
|
71
|
+
let screenCount = uncategorized.screens?.length || 0;
|
|
72
|
+
let componentCount = uncategorized.components?.length || 0;
|
|
73
|
+
let actionCount = uncategorized.actions?.length || 0;
|
|
74
|
+
let tableCount = uncategorized.tables?.length || 0;
|
|
75
|
+
for (const group of Object.values(features)) {
|
|
76
|
+
screenCount += group.screens?.length || 0;
|
|
77
|
+
componentCount += group.components?.length || 0;
|
|
78
|
+
actionCount += group.actions?.length || 0;
|
|
79
|
+
tableCount += group.tables?.length || 0;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
featureCount: Object.keys(features).length,
|
|
83
|
+
screenCount,
|
|
84
|
+
componentCount,
|
|
85
|
+
actionCount,
|
|
86
|
+
tableCount,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* OVERVIEW.md を読み込む
|
|
95
|
+
*/
|
|
96
|
+
function loadOverviewMarkdown(projectPath, overviewFile) {
|
|
97
|
+
if (!overviewFile) {
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
const overviewPath = resolvePath(projectPath, overviewFile);
|
|
101
|
+
return readFile(overviewPath);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* 技術スタックを package.json から自動検出
|
|
105
|
+
*/
|
|
106
|
+
function autoDetectTechStack(packageInfo) {
|
|
107
|
+
const deps = { ...packageInfo.dependencies, ...packageInfo.devDependencies };
|
|
108
|
+
const stack = [];
|
|
109
|
+
// Frontend
|
|
110
|
+
const frontend = [];
|
|
111
|
+
if (deps["next"])
|
|
112
|
+
frontend.push(`Next.js ${extractVersion(deps["next"])}`);
|
|
113
|
+
if (deps["react"])
|
|
114
|
+
frontend.push(`React ${extractVersion(deps["react"])}`);
|
|
115
|
+
if (deps["typescript"])
|
|
116
|
+
frontend.push(`TypeScript ${extractVersion(deps["typescript"])}`);
|
|
117
|
+
if (frontend.length > 0)
|
|
118
|
+
stack.push({ category: "Frontend", items: frontend });
|
|
119
|
+
// Backend
|
|
120
|
+
const backend = [];
|
|
121
|
+
if (deps["better-auth"])
|
|
122
|
+
backend.push(`Better Auth ${extractVersion(deps["better-auth"])}`);
|
|
123
|
+
if (deps["drizzle-orm"])
|
|
124
|
+
backend.push(`Drizzle ORM ${extractVersion(deps["drizzle-orm"])}`);
|
|
125
|
+
if (deps["zod"])
|
|
126
|
+
backend.push(`Zod ${extractVersion(deps["zod"])}`);
|
|
127
|
+
if (backend.length > 0)
|
|
128
|
+
stack.push({ category: "Backend", items: backend });
|
|
129
|
+
// Database
|
|
130
|
+
const database = [];
|
|
131
|
+
if (deps["postgres"] || deps["pg"])
|
|
132
|
+
database.push("PostgreSQL");
|
|
133
|
+
if (deps["redis"] || deps["ioredis"])
|
|
134
|
+
database.push("Redis");
|
|
135
|
+
if (database.length > 0)
|
|
136
|
+
stack.push({ category: "Database", items: database });
|
|
137
|
+
// Testing
|
|
138
|
+
const testing = [];
|
|
139
|
+
if (deps["jest"])
|
|
140
|
+
testing.push(`Jest ${extractVersion(deps["jest"])}`);
|
|
141
|
+
if (deps["@playwright/test"])
|
|
142
|
+
testing.push(`Playwright ${extractVersion(deps["@playwright/test"])}`);
|
|
143
|
+
if (deps["vitest"])
|
|
144
|
+
testing.push(`Vitest ${extractVersion(deps["vitest"])}`);
|
|
145
|
+
if (testing.length > 0)
|
|
146
|
+
stack.push({ category: "Testing", items: testing });
|
|
147
|
+
// Styling
|
|
148
|
+
const styling = [];
|
|
149
|
+
if (deps["tailwindcss"])
|
|
150
|
+
styling.push(`Tailwind CSS ${extractVersion(deps["tailwindcss"])}`);
|
|
151
|
+
if (deps["@radix-ui/react-slot"])
|
|
152
|
+
styling.push("Radix UI");
|
|
153
|
+
if (styling.length > 0)
|
|
154
|
+
stack.push({ category: "Styling", items: styling });
|
|
155
|
+
// i18n
|
|
156
|
+
const i18n = [];
|
|
157
|
+
if (deps["next-intl"])
|
|
158
|
+
i18n.push(`next-intl ${extractVersion(deps["next-intl"])}`);
|
|
159
|
+
if (i18n.length > 0)
|
|
160
|
+
stack.push({ category: "i18n", items: i18n });
|
|
161
|
+
return stack;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* バージョン文字列を抽出
|
|
165
|
+
*/
|
|
166
|
+
function extractVersion(version) {
|
|
167
|
+
if (!version)
|
|
168
|
+
return "";
|
|
169
|
+
return version.replace(/[\^~>=<]/g, "").split(".").slice(0, 2).join(".");
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Overview HTML を生成
|
|
173
|
+
*/
|
|
174
|
+
function generateOverviewHtml(config, packageInfo, stats, overviewMarkdown) {
|
|
175
|
+
const projectName = config.project.name;
|
|
176
|
+
const projectDesc = config.project.description || packageInfo.description || "";
|
|
177
|
+
const projectVersion = config.project.version || packageInfo.version || "0.0.0";
|
|
178
|
+
const projectRepo = config.project.repository || "";
|
|
179
|
+
const overviewConfig = config.overview || {};
|
|
180
|
+
// 技術スタック (設定優先、なければ自動検出)
|
|
181
|
+
const techStack = overviewConfig.techStack && overviewConfig.techStack.length > 0
|
|
182
|
+
? overviewConfig.techStack
|
|
183
|
+
: autoDetectTechStack(packageInfo);
|
|
184
|
+
// HTML 生成
|
|
185
|
+
const content = `
|
|
186
|
+
<div class="main-container">
|
|
187
|
+
<aside class="sidebar">
|
|
188
|
+
<div class="sidebar-header">
|
|
189
|
+
<div class="sidebar-title">目次</div>
|
|
190
|
+
</div>
|
|
191
|
+
<nav id="toc" class="toc-nav">
|
|
192
|
+
<!-- JavaScriptで生成 -->
|
|
193
|
+
</nav>
|
|
194
|
+
</aside>
|
|
195
|
+
<div class="content">
|
|
196
|
+
${generateHeader(projectName, projectVersion, projectDesc, projectRepo)}
|
|
197
|
+
${generateArchitectureSection(overviewConfig.layers || [])}
|
|
198
|
+
${generateFeaturesSection(overviewConfig.features || [])}
|
|
199
|
+
${generateTechStackSection(techStack)}
|
|
200
|
+
${generateQuickLinksSection(overviewConfig.quickLinks || [])}
|
|
201
|
+
${generateStatsSection(stats)}
|
|
202
|
+
${generateMarkdownSection(overviewMarkdown)}
|
|
203
|
+
${generateFooter(projectName)}
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
`;
|
|
207
|
+
const styles = getStyles();
|
|
208
|
+
const scripts = getScripts();
|
|
209
|
+
return wrapHtmlDocument({
|
|
210
|
+
title: `${projectName} - プロジェクト概要`,
|
|
211
|
+
content,
|
|
212
|
+
styles,
|
|
213
|
+
scripts,
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* ヘッダーセクション生成
|
|
218
|
+
*/
|
|
219
|
+
function generateHeader(name, version, description, repository) {
|
|
220
|
+
const repoLink = repository
|
|
221
|
+
? `<a href="${escapeHtml(repository)}" class="repo-link" target="_blank">
|
|
222
|
+
${icons.external}
|
|
223
|
+
GitHub
|
|
224
|
+
</a>`
|
|
225
|
+
: "";
|
|
226
|
+
return `
|
|
227
|
+
<header class="hero">
|
|
228
|
+
<div class="hero-content">
|
|
229
|
+
<h1>${escapeHtml(name)}</h1>
|
|
230
|
+
<span class="version-badge">v${escapeHtml(version)}</span>
|
|
231
|
+
</div>
|
|
232
|
+
<p class="description">${escapeHtml(description)}</p>
|
|
233
|
+
<div class="hero-links">
|
|
234
|
+
${repoLink}
|
|
235
|
+
<a href="./index.html" class="portal-link">
|
|
236
|
+
${icons.grid}
|
|
237
|
+
ドキュメントポータル
|
|
238
|
+
</a>
|
|
239
|
+
<a href="./feature-map.html" class="feature-link">
|
|
240
|
+
${icons.feature}
|
|
241
|
+
機能マップ
|
|
242
|
+
</a>
|
|
243
|
+
<a href="./test-cases.html" class="test-link">
|
|
244
|
+
${icons.check}
|
|
245
|
+
テストケース
|
|
246
|
+
</a>
|
|
247
|
+
</div>
|
|
248
|
+
</header>
|
|
249
|
+
`;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* アーキテクチャセクション生成
|
|
253
|
+
*/
|
|
254
|
+
function generateArchitectureSection(layers) {
|
|
255
|
+
if (layers.length === 0) {
|
|
256
|
+
return "";
|
|
257
|
+
}
|
|
258
|
+
const layersHtml = layers.map((layer, index) => {
|
|
259
|
+
const colorClass = layer.color || "blue";
|
|
260
|
+
const icon = getLayerIcon(layer.icon || "layers");
|
|
261
|
+
const isLast = index === layers.length - 1;
|
|
262
|
+
return `
|
|
263
|
+
<div class="layer layer-${colorClass}">
|
|
264
|
+
<div class="layer-icon">${icon}</div>
|
|
265
|
+
<div class="layer-content">
|
|
266
|
+
<div class="layer-name">${escapeHtml(layer.name)}</div>
|
|
267
|
+
<div class="layer-desc">${escapeHtml(layer.description)}</div>
|
|
268
|
+
</div>
|
|
269
|
+
</div>
|
|
270
|
+
${!isLast ? '<div class="layer-arrow"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M19 12l-7 7-7-7"/></svg></div>' : ""}
|
|
271
|
+
`;
|
|
272
|
+
}).join("\n");
|
|
273
|
+
return `
|
|
274
|
+
<section class="architecture">
|
|
275
|
+
<h2 class="section-title">
|
|
276
|
+
${icons.layers}
|
|
277
|
+
アーキテクチャ
|
|
278
|
+
</h2>
|
|
279
|
+
<div class="layers-container">
|
|
280
|
+
${layersHtml}
|
|
281
|
+
</div>
|
|
282
|
+
</section>
|
|
283
|
+
`;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* 機能セクション生成
|
|
287
|
+
*/
|
|
288
|
+
function generateFeaturesSection(features) {
|
|
289
|
+
if (features.length === 0) {
|
|
290
|
+
return "";
|
|
291
|
+
}
|
|
292
|
+
const featuresHtml = features.map((feature) => {
|
|
293
|
+
const statusClass = feature.status || "stable";
|
|
294
|
+
const statusLabel = getStatusLabel(statusClass);
|
|
295
|
+
const priorityBadge = feature.priority === "core"
|
|
296
|
+
? '<span class="priority-badge core">Core</span>'
|
|
297
|
+
: "";
|
|
298
|
+
return `
|
|
299
|
+
<a href="./feature-map.html#feature-${escapeHtml(feature.name)}" class="feature-card">
|
|
300
|
+
<div class="feature-header">
|
|
301
|
+
<h3>${escapeHtml(feature.name)}</h3>
|
|
302
|
+
<div class="feature-badges">
|
|
303
|
+
${priorityBadge}
|
|
304
|
+
<span class="status-badge ${statusClass}">${statusLabel}</span>
|
|
305
|
+
</div>
|
|
306
|
+
</div>
|
|
307
|
+
<p>${escapeHtml(feature.description)}</p>
|
|
308
|
+
</a>
|
|
309
|
+
`;
|
|
310
|
+
}).join("\n");
|
|
311
|
+
return `
|
|
312
|
+
<section class="features">
|
|
313
|
+
<h2 class="section-title">
|
|
314
|
+
${icons.feature}
|
|
315
|
+
機能一覧
|
|
316
|
+
</h2>
|
|
317
|
+
<div class="feature-grid">
|
|
318
|
+
${featuresHtml}
|
|
319
|
+
</div>
|
|
320
|
+
</section>
|
|
321
|
+
`;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* 技術スタックセクション生成
|
|
325
|
+
*/
|
|
326
|
+
function generateTechStackSection(techStack) {
|
|
327
|
+
if (techStack.length === 0) {
|
|
328
|
+
return "";
|
|
329
|
+
}
|
|
330
|
+
const stackHtml = techStack.map((stack) => {
|
|
331
|
+
const itemsHtml = stack.items.map((item) => `<li>${escapeHtml(item)}</li>`).join("\n");
|
|
332
|
+
return `
|
|
333
|
+
<div class="stack-category">
|
|
334
|
+
<h4>${escapeHtml(stack.category)}</h4>
|
|
335
|
+
<ul>
|
|
336
|
+
${itemsHtml}
|
|
337
|
+
</ul>
|
|
338
|
+
</div>
|
|
339
|
+
`;
|
|
340
|
+
}).join("\n");
|
|
341
|
+
return `
|
|
342
|
+
<section class="tech-stack">
|
|
343
|
+
<h2 class="section-title">
|
|
344
|
+
${icons.code}
|
|
345
|
+
技術スタック
|
|
346
|
+
</h2>
|
|
347
|
+
<div class="stack-grid">
|
|
348
|
+
${stackHtml}
|
|
349
|
+
</div>
|
|
350
|
+
</section>
|
|
351
|
+
`;
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* クイックリンクセクション生成
|
|
355
|
+
*/
|
|
356
|
+
function generateQuickLinksSection(quickLinks) {
|
|
357
|
+
if (quickLinks.length === 0) {
|
|
358
|
+
return "";
|
|
359
|
+
}
|
|
360
|
+
const linksHtml = quickLinks.map((link) => `
|
|
361
|
+
<div class="command-item">
|
|
362
|
+
<span class="command-label">${escapeHtml(link.text)}</span>
|
|
363
|
+
<code class="command-code">${escapeHtml(link.command)}</code>
|
|
364
|
+
<button class="copy-btn" onclick="copyCommand('${escapeHtml(link.command)}')" title="コピー">
|
|
365
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
|
|
366
|
+
</button>
|
|
367
|
+
</div>
|
|
368
|
+
`).join("\n");
|
|
369
|
+
return `
|
|
370
|
+
<section class="quick-links">
|
|
371
|
+
<h2 class="section-title">
|
|
372
|
+
${icons.settings}
|
|
373
|
+
クイックスタート
|
|
374
|
+
</h2>
|
|
375
|
+
<div class="commands-container">
|
|
376
|
+
${linksHtml}
|
|
377
|
+
</div>
|
|
378
|
+
</section>
|
|
379
|
+
`;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* 統計セクション生成
|
|
383
|
+
*/
|
|
384
|
+
function generateStatsSection(stats) {
|
|
385
|
+
if (!stats) {
|
|
386
|
+
return "";
|
|
387
|
+
}
|
|
388
|
+
return `
|
|
389
|
+
<section class="stats">
|
|
390
|
+
<h2 class="section-title">
|
|
391
|
+
${icons.grid}
|
|
392
|
+
統計
|
|
393
|
+
</h2>
|
|
394
|
+
<div class="stats-grid">
|
|
395
|
+
<div class="stat-item stat-features">
|
|
396
|
+
<span class="stat-number">${stats.featureCount}</span>
|
|
397
|
+
<span class="stat-label">Features</span>
|
|
398
|
+
</div>
|
|
399
|
+
<div class="stat-item stat-screens">
|
|
400
|
+
<span class="stat-number">${stats.screenCount}</span>
|
|
401
|
+
<span class="stat-label">Screens</span>
|
|
402
|
+
</div>
|
|
403
|
+
<div class="stat-item stat-components">
|
|
404
|
+
<span class="stat-number">${stats.componentCount}</span>
|
|
405
|
+
<span class="stat-label">Components</span>
|
|
406
|
+
</div>
|
|
407
|
+
<div class="stat-item stat-actions">
|
|
408
|
+
<span class="stat-number">${stats.actionCount}</span>
|
|
409
|
+
<span class="stat-label">Actions</span>
|
|
410
|
+
</div>
|
|
411
|
+
<div class="stat-item stat-tables">
|
|
412
|
+
<span class="stat-number">${stats.tableCount}</span>
|
|
413
|
+
<span class="stat-label">Tables</span>
|
|
414
|
+
</div>
|
|
415
|
+
</div>
|
|
416
|
+
</section>
|
|
417
|
+
`;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Markdown コンテンツセクション生成
|
|
421
|
+
*/
|
|
422
|
+
function generateMarkdownSection(markdown) {
|
|
423
|
+
if (!markdown) {
|
|
424
|
+
return "";
|
|
425
|
+
}
|
|
426
|
+
return `
|
|
427
|
+
<section class="overview-content">
|
|
428
|
+
<div id="markdownContent" class="markdown-body"></div>
|
|
429
|
+
</section>
|
|
430
|
+
<script type="text/plain" id="markdownSource">${escapeHtml(markdown)}</script>
|
|
431
|
+
`;
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* フッター生成
|
|
435
|
+
*/
|
|
436
|
+
function generateFooter(projectName) {
|
|
437
|
+
return `
|
|
438
|
+
<footer>
|
|
439
|
+
<p>${escapeHtml(projectName)} · Generated by shirokuma-docs</p>
|
|
440
|
+
</footer>
|
|
441
|
+
`;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* レイヤーアイコンを取得
|
|
445
|
+
*/
|
|
446
|
+
function getLayerIcon(iconName) {
|
|
447
|
+
const iconMap = {
|
|
448
|
+
monitor: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>`,
|
|
449
|
+
lightning: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/></svg>`,
|
|
450
|
+
database: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/></svg>`,
|
|
451
|
+
layers: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>`,
|
|
452
|
+
code: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>`,
|
|
453
|
+
server: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="2" width="20" height="8" rx="2" ry="2"/><rect x="2" y="14" width="20" height="8" rx="2" ry="2"/><line x1="6" y1="6" x2="6.01" y2="6"/><line x1="6" y1="18" x2="6.01" y2="18"/></svg>`,
|
|
454
|
+
globe: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>`,
|
|
455
|
+
};
|
|
456
|
+
return iconMap[iconName] || iconMap.layers;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* ステータスラベルを取得
|
|
460
|
+
*/
|
|
461
|
+
function getStatusLabel(status) {
|
|
462
|
+
const labels = {
|
|
463
|
+
stable: "Stable",
|
|
464
|
+
beta: "Beta",
|
|
465
|
+
planned: "Planned",
|
|
466
|
+
};
|
|
467
|
+
return labels[status] || "Stable";
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* スタイル
|
|
471
|
+
*/
|
|
472
|
+
function getStyles() {
|
|
473
|
+
return `
|
|
474
|
+
/* Layout with Sidebar */
|
|
475
|
+
.main-container {
|
|
476
|
+
display: flex;
|
|
477
|
+
min-height: 100vh;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.sidebar {
|
|
481
|
+
width: 300px;
|
|
482
|
+
background: var(--card-bg);
|
|
483
|
+
border-right: 1px solid var(--border-color);
|
|
484
|
+
position: sticky;
|
|
485
|
+
top: 0;
|
|
486
|
+
height: 100vh;
|
|
487
|
+
overflow-y: auto;
|
|
488
|
+
flex-shrink: 0;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.sidebar-header {
|
|
492
|
+
padding: 1rem;
|
|
493
|
+
border-bottom: 1px solid var(--border-color);
|
|
494
|
+
position: sticky;
|
|
495
|
+
top: 0;
|
|
496
|
+
background: var(--card-bg);
|
|
497
|
+
z-index: 10;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.sidebar-title {
|
|
501
|
+
font-size: 0.75rem;
|
|
502
|
+
font-weight: 600;
|
|
503
|
+
text-transform: uppercase;
|
|
504
|
+
letter-spacing: 0.05em;
|
|
505
|
+
color: var(--text-secondary);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.toc-nav {
|
|
509
|
+
padding: 0.5rem 0;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.toc-section {
|
|
513
|
+
margin-bottom: 0.25rem;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.toc-link {
|
|
517
|
+
display: block;
|
|
518
|
+
padding: 0.5rem 1rem;
|
|
519
|
+
color: var(--text-secondary);
|
|
520
|
+
text-decoration: none;
|
|
521
|
+
font-size: 0.85rem;
|
|
522
|
+
transition: all 0.15s ease;
|
|
523
|
+
border-left: 2px solid transparent;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.toc-link:hover {
|
|
527
|
+
background: var(--border-color);
|
|
528
|
+
color: var(--text-primary);
|
|
529
|
+
text-decoration: none;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.toc-link.active {
|
|
533
|
+
background: var(--border-color);
|
|
534
|
+
color: var(--accent-blue);
|
|
535
|
+
border-left-color: var(--accent-blue);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.toc-link.level-2 {
|
|
539
|
+
padding-left: 1rem;
|
|
540
|
+
font-weight: 600;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.toc-link.level-3 {
|
|
544
|
+
padding-left: 2rem;
|
|
545
|
+
font-size: 0.8rem;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.content {
|
|
549
|
+
flex: 1;
|
|
550
|
+
padding: 2rem;
|
|
551
|
+
max-width: 1000px;
|
|
552
|
+
margin: 0 auto;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
@media (max-width: 768px) {
|
|
556
|
+
.main-container {
|
|
557
|
+
flex-direction: column;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.sidebar {
|
|
561
|
+
position: static;
|
|
562
|
+
width: 100%;
|
|
563
|
+
height: auto;
|
|
564
|
+
border-right: none;
|
|
565
|
+
border-bottom: 1px solid var(--border-color);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/* Hero Section */
|
|
570
|
+
.hero {
|
|
571
|
+
text-align: center;
|
|
572
|
+
padding: 3rem 0;
|
|
573
|
+
margin-bottom: 3rem;
|
|
574
|
+
border-bottom: 1px solid var(--border-color);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.hero-content {
|
|
578
|
+
display: flex;
|
|
579
|
+
align-items: center;
|
|
580
|
+
justify-content: center;
|
|
581
|
+
gap: 1rem;
|
|
582
|
+
margin-bottom: 1rem;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.hero h1 {
|
|
586
|
+
font-size: 3rem;
|
|
587
|
+
font-weight: 800;
|
|
588
|
+
background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
|
|
589
|
+
-webkit-background-clip: text;
|
|
590
|
+
-webkit-text-fill-color: transparent;
|
|
591
|
+
background-clip: text;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.version-badge {
|
|
595
|
+
background: var(--card-bg);
|
|
596
|
+
border: 1px solid var(--border-color);
|
|
597
|
+
padding: 0.25rem 0.75rem;
|
|
598
|
+
border-radius: 9999px;
|
|
599
|
+
font-size: 0.875rem;
|
|
600
|
+
font-weight: 500;
|
|
601
|
+
color: var(--text-secondary);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.description {
|
|
605
|
+
font-size: 1.25rem;
|
|
606
|
+
color: var(--text-secondary);
|
|
607
|
+
max-width: 600px;
|
|
608
|
+
margin: 0 auto 1.5rem;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.hero-links {
|
|
612
|
+
display: flex;
|
|
613
|
+
justify-content: center;
|
|
614
|
+
gap: 1rem;
|
|
615
|
+
flex-wrap: wrap;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.hero-links a {
|
|
619
|
+
display: inline-flex;
|
|
620
|
+
align-items: center;
|
|
621
|
+
gap: 0.5rem;
|
|
622
|
+
padding: 0.75rem 1.5rem;
|
|
623
|
+
border-radius: 8px;
|
|
624
|
+
font-weight: 500;
|
|
625
|
+
transition: all 0.2s;
|
|
626
|
+
text-decoration: none;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.repo-link {
|
|
630
|
+
background: var(--card-bg);
|
|
631
|
+
border: 1px solid var(--border-color);
|
|
632
|
+
color: var(--text-primary);
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
.repo-link:hover {
|
|
636
|
+
background: var(--border-color);
|
|
637
|
+
text-decoration: none;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.portal-link {
|
|
641
|
+
background: rgba(59, 130, 246, 0.2);
|
|
642
|
+
color: var(--accent-blue);
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.portal-link:hover {
|
|
646
|
+
background: rgba(59, 130, 246, 0.3);
|
|
647
|
+
text-decoration: none;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.feature-link {
|
|
651
|
+
background: rgba(168, 85, 247, 0.2);
|
|
652
|
+
color: var(--accent-purple);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.feature-link:hover {
|
|
656
|
+
background: rgba(168, 85, 247, 0.3);
|
|
657
|
+
text-decoration: none;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.test-link {
|
|
661
|
+
background: rgba(34, 197, 94, 0.2);
|
|
662
|
+
color: var(--accent-green);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.test-link:hover {
|
|
666
|
+
background: rgba(34, 197, 94, 0.3);
|
|
667
|
+
text-decoration: none;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/* Section Title */
|
|
671
|
+
.section-title {
|
|
672
|
+
display: flex;
|
|
673
|
+
align-items: center;
|
|
674
|
+
gap: 0.75rem;
|
|
675
|
+
font-size: 1.5rem;
|
|
676
|
+
font-weight: 700;
|
|
677
|
+
margin-bottom: 1.5rem;
|
|
678
|
+
color: var(--text-primary);
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.section-title svg {
|
|
682
|
+
color: var(--accent-blue);
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
/* Architecture Section */
|
|
686
|
+
.architecture {
|
|
687
|
+
margin-bottom: 3rem;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.layers-container {
|
|
691
|
+
display: flex;
|
|
692
|
+
flex-direction: column;
|
|
693
|
+
align-items: center;
|
|
694
|
+
gap: 0.5rem;
|
|
695
|
+
background: var(--card-bg);
|
|
696
|
+
border: 1px solid var(--border-color);
|
|
697
|
+
border-radius: 16px;
|
|
698
|
+
padding: 2rem;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.layer {
|
|
702
|
+
display: flex;
|
|
703
|
+
align-items: center;
|
|
704
|
+
gap: 1rem;
|
|
705
|
+
width: 100%;
|
|
706
|
+
max-width: 500px;
|
|
707
|
+
padding: 1.25rem 1.5rem;
|
|
708
|
+
border-radius: 12px;
|
|
709
|
+
border: 1px solid var(--border-color);
|
|
710
|
+
background: var(--bg-color);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
.layer-blue {
|
|
714
|
+
border-left: 4px solid var(--accent-blue);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.layer-orange {
|
|
718
|
+
border-left: 4px solid var(--accent-orange);
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.layer-pink {
|
|
722
|
+
border-left: 4px solid var(--accent-pink);
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
.layer-green {
|
|
726
|
+
border-left: 4px solid var(--accent-green);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.layer-purple {
|
|
730
|
+
border-left: 4px solid var(--accent-purple);
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.layer-icon {
|
|
734
|
+
flex-shrink: 0;
|
|
735
|
+
width: 48px;
|
|
736
|
+
height: 48px;
|
|
737
|
+
display: flex;
|
|
738
|
+
align-items: center;
|
|
739
|
+
justify-content: center;
|
|
740
|
+
border-radius: 12px;
|
|
741
|
+
background: rgba(255, 255, 255, 0.05);
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.layer-blue .layer-icon { color: var(--accent-blue); }
|
|
745
|
+
.layer-orange .layer-icon { color: var(--accent-orange); }
|
|
746
|
+
.layer-pink .layer-icon { color: var(--accent-pink); }
|
|
747
|
+
.layer-green .layer-icon { color: var(--accent-green); }
|
|
748
|
+
.layer-purple .layer-icon { color: var(--accent-purple); }
|
|
749
|
+
|
|
750
|
+
.layer-content {
|
|
751
|
+
flex: 1;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.layer-name {
|
|
755
|
+
font-weight: 600;
|
|
756
|
+
font-size: 1.1rem;
|
|
757
|
+
margin-bottom: 0.25rem;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.layer-desc {
|
|
761
|
+
font-size: 0.875rem;
|
|
762
|
+
color: var(--text-secondary);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.layer-arrow {
|
|
766
|
+
color: var(--text-secondary);
|
|
767
|
+
padding: 0.25rem 0;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
/* Features Section */
|
|
771
|
+
.features {
|
|
772
|
+
margin-bottom: 3rem;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.feature-grid {
|
|
776
|
+
display: grid;
|
|
777
|
+
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
778
|
+
gap: 1rem;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
.feature-card {
|
|
782
|
+
display: block;
|
|
783
|
+
background: var(--card-bg);
|
|
784
|
+
border: 1px solid var(--border-color);
|
|
785
|
+
border-radius: 12px;
|
|
786
|
+
padding: 1.25rem;
|
|
787
|
+
text-decoration: none;
|
|
788
|
+
transition: all 0.2s;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
.feature-card:hover {
|
|
792
|
+
border-color: var(--accent-blue);
|
|
793
|
+
transform: translateY(-2px);
|
|
794
|
+
text-decoration: none;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.feature-header {
|
|
798
|
+
display: flex;
|
|
799
|
+
justify-content: space-between;
|
|
800
|
+
align-items: flex-start;
|
|
801
|
+
margin-bottom: 0.5rem;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
.feature-card h3 {
|
|
805
|
+
font-size: 1rem;
|
|
806
|
+
font-weight: 600;
|
|
807
|
+
color: var(--text-primary);
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
.feature-card p {
|
|
811
|
+
font-size: 0.875rem;
|
|
812
|
+
color: var(--text-secondary);
|
|
813
|
+
margin: 0;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
.feature-badges {
|
|
817
|
+
display: flex;
|
|
818
|
+
gap: 0.5rem;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.status-badge {
|
|
822
|
+
font-size: 0.7rem;
|
|
823
|
+
padding: 0.2rem 0.5rem;
|
|
824
|
+
border-radius: 4px;
|
|
825
|
+
font-weight: 600;
|
|
826
|
+
text-transform: uppercase;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
.status-badge.stable {
|
|
830
|
+
background: rgba(34, 197, 94, 0.2);
|
|
831
|
+
color: var(--accent-green);
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.status-badge.beta {
|
|
835
|
+
background: rgba(249, 115, 22, 0.2);
|
|
836
|
+
color: var(--accent-orange);
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.status-badge.planned {
|
|
840
|
+
background: rgba(113, 113, 122, 0.2);
|
|
841
|
+
color: var(--text-secondary);
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
.priority-badge {
|
|
845
|
+
font-size: 0.7rem;
|
|
846
|
+
padding: 0.2rem 0.5rem;
|
|
847
|
+
border-radius: 4px;
|
|
848
|
+
font-weight: 600;
|
|
849
|
+
text-transform: uppercase;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.priority-badge.core {
|
|
853
|
+
background: rgba(168, 85, 247, 0.2);
|
|
854
|
+
color: var(--accent-purple);
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
/* Tech Stack Section */
|
|
858
|
+
.tech-stack {
|
|
859
|
+
margin-bottom: 3rem;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.stack-grid {
|
|
863
|
+
display: grid;
|
|
864
|
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
865
|
+
gap: 1.5rem;
|
|
866
|
+
background: var(--card-bg);
|
|
867
|
+
border: 1px solid var(--border-color);
|
|
868
|
+
border-radius: 16px;
|
|
869
|
+
padding: 1.5rem;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.stack-category h4 {
|
|
873
|
+
font-size: 0.875rem;
|
|
874
|
+
font-weight: 600;
|
|
875
|
+
color: var(--text-secondary);
|
|
876
|
+
text-transform: uppercase;
|
|
877
|
+
letter-spacing: 0.05em;
|
|
878
|
+
margin-bottom: 0.75rem;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
.stack-category ul {
|
|
882
|
+
list-style: none;
|
|
883
|
+
padding: 0;
|
|
884
|
+
margin: 0;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.stack-category li {
|
|
888
|
+
padding: 0.375rem 0;
|
|
889
|
+
font-size: 0.9rem;
|
|
890
|
+
color: var(--text-primary);
|
|
891
|
+
border-bottom: 1px solid var(--border-color);
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
.stack-category li:last-child {
|
|
895
|
+
border-bottom: none;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
/* Quick Links Section */
|
|
899
|
+
.quick-links {
|
|
900
|
+
margin-bottom: 3rem;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
.commands-container {
|
|
904
|
+
background: var(--card-bg);
|
|
905
|
+
border: 1px solid var(--border-color);
|
|
906
|
+
border-radius: 16px;
|
|
907
|
+
padding: 1rem;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.command-item {
|
|
911
|
+
display: flex;
|
|
912
|
+
align-items: center;
|
|
913
|
+
gap: 1rem;
|
|
914
|
+
padding: 1rem;
|
|
915
|
+
border-radius: 8px;
|
|
916
|
+
transition: background 0.2s;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.command-item:hover {
|
|
920
|
+
background: var(--bg-color);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.command-label {
|
|
924
|
+
min-width: 150px;
|
|
925
|
+
font-weight: 500;
|
|
926
|
+
color: var(--text-secondary);
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
.command-code {
|
|
930
|
+
flex: 1;
|
|
931
|
+
font-family: 'SF Mono', 'Consolas', monospace;
|
|
932
|
+
font-size: 0.9rem;
|
|
933
|
+
background: var(--code-bg);
|
|
934
|
+
padding: 0.5rem 1rem;
|
|
935
|
+
border-radius: 6px;
|
|
936
|
+
color: var(--accent-green);
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
.copy-btn {
|
|
940
|
+
display: flex;
|
|
941
|
+
align-items: center;
|
|
942
|
+
justify-content: center;
|
|
943
|
+
width: 36px;
|
|
944
|
+
height: 36px;
|
|
945
|
+
background: var(--bg-color);
|
|
946
|
+
border: 1px solid var(--border-color);
|
|
947
|
+
border-radius: 6px;
|
|
948
|
+
cursor: pointer;
|
|
949
|
+
color: var(--text-secondary);
|
|
950
|
+
transition: all 0.2s;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.copy-btn:hover {
|
|
954
|
+
background: var(--border-color);
|
|
955
|
+
color: var(--text-primary);
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.copy-btn.copied {
|
|
959
|
+
background: rgba(34, 197, 94, 0.2);
|
|
960
|
+
color: var(--accent-green);
|
|
961
|
+
border-color: var(--accent-green);
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
/* Stats Section */
|
|
965
|
+
.stats {
|
|
966
|
+
margin-bottom: 3rem;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
.stats-grid {
|
|
970
|
+
display: grid;
|
|
971
|
+
grid-template-columns: repeat(5, 1fr);
|
|
972
|
+
gap: 1rem;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
.stat-item {
|
|
976
|
+
text-align: center;
|
|
977
|
+
padding: 1.5rem;
|
|
978
|
+
background: var(--card-bg);
|
|
979
|
+
border: 1px solid var(--border-color);
|
|
980
|
+
border-radius: 12px;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
.stat-number {
|
|
984
|
+
display: block;
|
|
985
|
+
font-size: 2rem;
|
|
986
|
+
font-weight: 700;
|
|
987
|
+
margin-bottom: 0.25rem;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
.stat-label {
|
|
991
|
+
font-size: 0.8rem;
|
|
992
|
+
color: var(--text-secondary);
|
|
993
|
+
text-transform: uppercase;
|
|
994
|
+
letter-spacing: 0.05em;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
.stat-features .stat-number { color: var(--accent-purple); }
|
|
998
|
+
.stat-screens .stat-number { color: var(--accent-blue); }
|
|
999
|
+
.stat-components .stat-number { color: var(--accent-green); }
|
|
1000
|
+
.stat-actions .stat-number { color: var(--accent-orange); }
|
|
1001
|
+
.stat-tables .stat-number { color: var(--accent-pink); }
|
|
1002
|
+
|
|
1003
|
+
/* Overview Content Section */
|
|
1004
|
+
.overview-content {
|
|
1005
|
+
margin-bottom: 3rem;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.markdown-body {
|
|
1009
|
+
background: var(--card-bg);
|
|
1010
|
+
border: 1px solid var(--border-color);
|
|
1011
|
+
border-radius: 16px;
|
|
1012
|
+
padding: 2rem;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
.markdown-body h1,
|
|
1016
|
+
.markdown-body h2,
|
|
1017
|
+
.markdown-body h3,
|
|
1018
|
+
.markdown-body h4 {
|
|
1019
|
+
margin-top: 1.5em;
|
|
1020
|
+
margin-bottom: 0.5em;
|
|
1021
|
+
font-weight: 600;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
.markdown-body h1 { font-size: 1.75em; }
|
|
1025
|
+
.markdown-body h2 { font-size: 1.5em; border-bottom: 1px solid var(--border-color); padding-bottom: 0.3em; }
|
|
1026
|
+
.markdown-body h3 { font-size: 1.25em; }
|
|
1027
|
+
|
|
1028
|
+
.markdown-body p { margin-bottom: 1em; }
|
|
1029
|
+
|
|
1030
|
+
.markdown-body ul,
|
|
1031
|
+
.markdown-body ol {
|
|
1032
|
+
margin-bottom: 1em;
|
|
1033
|
+
padding-left: 2em;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
.markdown-body code {
|
|
1037
|
+
background: var(--code-bg);
|
|
1038
|
+
padding: 0.2em 0.4em;
|
|
1039
|
+
border-radius: 4px;
|
|
1040
|
+
font-family: 'SF Mono', 'Consolas', monospace;
|
|
1041
|
+
font-size: 0.9em;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
.markdown-body pre {
|
|
1045
|
+
background: var(--code-bg);
|
|
1046
|
+
border-radius: 8px;
|
|
1047
|
+
padding: 1rem;
|
|
1048
|
+
overflow-x: auto;
|
|
1049
|
+
margin-bottom: 1em;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
.markdown-body pre code {
|
|
1053
|
+
background: none;
|
|
1054
|
+
padding: 0;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
.markdown-body table {
|
|
1058
|
+
width: 100%;
|
|
1059
|
+
border-collapse: collapse;
|
|
1060
|
+
margin-bottom: 1em;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
.markdown-body th,
|
|
1064
|
+
.markdown-body td {
|
|
1065
|
+
border: 1px solid var(--border-color);
|
|
1066
|
+
padding: 0.5rem 1rem;
|
|
1067
|
+
text-align: left;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
.markdown-body th {
|
|
1071
|
+
background: var(--bg-color);
|
|
1072
|
+
font-weight: 600;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
/* Mermaid Diagrams */
|
|
1076
|
+
.mermaid {
|
|
1077
|
+
background: transparent !important;
|
|
1078
|
+
text-align: center;
|
|
1079
|
+
margin: 1.5rem 0;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
/* Footer */
|
|
1083
|
+
footer {
|
|
1084
|
+
text-align: center;
|
|
1085
|
+
padding: 2rem 0;
|
|
1086
|
+
border-top: 1px solid var(--border-color);
|
|
1087
|
+
color: var(--text-secondary);
|
|
1088
|
+
font-size: 0.875rem;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
/* Responsive */
|
|
1092
|
+
@media (max-width: 768px) {
|
|
1093
|
+
.hero h1 {
|
|
1094
|
+
font-size: 2rem;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
.hero-links {
|
|
1098
|
+
flex-direction: column;
|
|
1099
|
+
align-items: center;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
.stats-grid {
|
|
1103
|
+
grid-template-columns: repeat(2, 1fr);
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
.command-item {
|
|
1107
|
+
flex-direction: column;
|
|
1108
|
+
align-items: flex-start;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
.command-label {
|
|
1112
|
+
min-width: auto;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
.command-code {
|
|
1116
|
+
width: 100%;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
`;
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* スクリプト
|
|
1123
|
+
*/
|
|
1124
|
+
function getScripts() {
|
|
1125
|
+
return `
|
|
1126
|
+
// コマンドをクリップボードにコピー
|
|
1127
|
+
function copyCommand(command) {
|
|
1128
|
+
navigator.clipboard.writeText(command).then(() => {
|
|
1129
|
+
const btns = document.querySelectorAll('.copy-btn');
|
|
1130
|
+
btns.forEach(btn => {
|
|
1131
|
+
if (btn.onclick && btn.onclick.toString().includes(command)) {
|
|
1132
|
+
btn.classList.add('copied');
|
|
1133
|
+
setTimeout(() => btn.classList.remove('copied'), 1500);
|
|
1134
|
+
}
|
|
1135
|
+
});
|
|
1136
|
+
// イベントからボタンを見つける方法
|
|
1137
|
+
event.target.closest('.copy-btn')?.classList.add('copied');
|
|
1138
|
+
setTimeout(() => {
|
|
1139
|
+
event.target.closest('.copy-btn')?.classList.remove('copied');
|
|
1140
|
+
}, 1500);
|
|
1141
|
+
});
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
// Markdown をレンダリング
|
|
1145
|
+
const markdownSource = document.getElementById('markdownSource');
|
|
1146
|
+
const markdownContent = document.getElementById('markdownContent');
|
|
1147
|
+
|
|
1148
|
+
if (markdownSource && markdownContent) {
|
|
1149
|
+
// marked.js を動的ロード
|
|
1150
|
+
const markedScript = document.createElement('script');
|
|
1151
|
+
markedScript.src = 'https://cdn.jsdelivr.net/npm/marked/marked.min.js';
|
|
1152
|
+
markedScript.onload = function() {
|
|
1153
|
+
// mermaid を動的ロード (latest)
|
|
1154
|
+
const mermaidScript = document.createElement('script');
|
|
1155
|
+
mermaidScript.src = 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js';
|
|
1156
|
+
mermaidScript.onload = function() {
|
|
1157
|
+
// Mermaid 初期化
|
|
1158
|
+
mermaid.initialize({
|
|
1159
|
+
startOnLoad: false,
|
|
1160
|
+
theme: 'dark',
|
|
1161
|
+
themeVariables: {
|
|
1162
|
+
primaryColor: '#3b82f6',
|
|
1163
|
+
primaryTextColor: '#fafafa',
|
|
1164
|
+
primaryBorderColor: '#3b82f6',
|
|
1165
|
+
lineColor: '#a1a1aa',
|
|
1166
|
+
secondaryColor: '#1e1e1e',
|
|
1167
|
+
tertiaryColor: '#262626',
|
|
1168
|
+
background: '#141414',
|
|
1169
|
+
mainBkg: '#141414',
|
|
1170
|
+
nodeBorder: '#3b82f6',
|
|
1171
|
+
clusterBkg: '#1e1e1e',
|
|
1172
|
+
clusterBorder: '#262626',
|
|
1173
|
+
titleColor: '#fafafa',
|
|
1174
|
+
edgeLabelBackground: '#141414',
|
|
1175
|
+
}
|
|
1176
|
+
});
|
|
1177
|
+
|
|
1178
|
+
// marked でレンダリング
|
|
1179
|
+
const rawMarkdown = markdownSource.textContent;
|
|
1180
|
+
const html = marked.parse(rawMarkdown);
|
|
1181
|
+
markdownContent.innerHTML = html;
|
|
1182
|
+
|
|
1183
|
+
// HTML エンティティをデコードする関数
|
|
1184
|
+
function decodeHTML(html) {
|
|
1185
|
+
const txt = document.createElement('textarea');
|
|
1186
|
+
txt.innerHTML = html;
|
|
1187
|
+
return txt.value;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
// Mermaid コードブロックを処理
|
|
1191
|
+
const codeBlocks = markdownContent.querySelectorAll('pre code.language-mermaid');
|
|
1192
|
+
console.log('Found', codeBlocks.length, 'Mermaid diagrams');
|
|
1193
|
+
codeBlocks.forEach((block, index) => {
|
|
1194
|
+
const pre = block.parentElement;
|
|
1195
|
+
const mermaidDiv = document.createElement('div');
|
|
1196
|
+
mermaidDiv.className = 'mermaid';
|
|
1197
|
+
mermaidDiv.id = 'mermaid-' + index;
|
|
1198
|
+
// textContent で HTML タグを除去してから、decodeHTML で HTML エンティティをデコード
|
|
1199
|
+
const code = decodeHTML(block.textContent);
|
|
1200
|
+
mermaidDiv.textContent = code;
|
|
1201
|
+
console.log('Diagram #' + index + ' (first 50 chars):', code.substring(0, 50));
|
|
1202
|
+
pre.replaceWith(mermaidDiv);
|
|
1203
|
+
});
|
|
1204
|
+
|
|
1205
|
+
// Mermaid をレンダリング (with error handling)
|
|
1206
|
+
mermaid.run().catch(error => {
|
|
1207
|
+
console.error('Mermaid render error:', error);
|
|
1208
|
+
const mermaidElements = document.querySelectorAll('.mermaid');
|
|
1209
|
+
mermaidElements.forEach((el, idx) => {
|
|
1210
|
+
console.error('Diagram #' + idx + ':', el.textContent.substring(0, 100));
|
|
1211
|
+
});
|
|
1212
|
+
});
|
|
1213
|
+
|
|
1214
|
+
// 目次を生成
|
|
1215
|
+
generateTableOfContents();
|
|
1216
|
+
};
|
|
1217
|
+
document.head.appendChild(mermaidScript);
|
|
1218
|
+
};
|
|
1219
|
+
document.head.appendChild(markedScript);
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
// 目次生成関数
|
|
1223
|
+
function generateTableOfContents() {
|
|
1224
|
+
const toc = document.getElementById('toc');
|
|
1225
|
+
const content = document.querySelector('.content');
|
|
1226
|
+
|
|
1227
|
+
if (!toc || !content) return;
|
|
1228
|
+
|
|
1229
|
+
const headings = content.querySelectorAll('h2, h3');
|
|
1230
|
+
const tocHtml = [];
|
|
1231
|
+
|
|
1232
|
+
headings.forEach((heading, index) => {
|
|
1233
|
+
const level = heading.tagName === 'H2' ? 2 : 3;
|
|
1234
|
+
const text = heading.textContent || '';
|
|
1235
|
+
const id = 'heading-' + index;
|
|
1236
|
+
|
|
1237
|
+
// 見出しにIDを付与
|
|
1238
|
+
heading.id = id;
|
|
1239
|
+
|
|
1240
|
+
// 目次リンクを生成
|
|
1241
|
+
tocHtml.push(
|
|
1242
|
+
'<div class="toc-section">' +
|
|
1243
|
+
'<a href="#' + id + '" class="toc-link level-' + level + '" data-target="' + id + '">' +
|
|
1244
|
+
text +
|
|
1245
|
+
'</a>' +
|
|
1246
|
+
'</div>'
|
|
1247
|
+
);
|
|
1248
|
+
});
|
|
1249
|
+
|
|
1250
|
+
toc.innerHTML = tocHtml.join('');
|
|
1251
|
+
|
|
1252
|
+
// スムーズスクロール
|
|
1253
|
+
const tocLinks = toc.querySelectorAll('.toc-link');
|
|
1254
|
+
tocLinks.forEach(link => {
|
|
1255
|
+
link.addEventListener('click', (e) => {
|
|
1256
|
+
e.preventDefault();
|
|
1257
|
+
const targetId = link.getAttribute('data-target');
|
|
1258
|
+
const target = document.getElementById(targetId);
|
|
1259
|
+
if (target) {
|
|
1260
|
+
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
1261
|
+
}
|
|
1262
|
+
});
|
|
1263
|
+
});
|
|
1264
|
+
|
|
1265
|
+
// スクロール時に現在位置をハイライト
|
|
1266
|
+
const observerOptions = {
|
|
1267
|
+
root: null,
|
|
1268
|
+
rootMargin: '-20% 0px -70% 0px',
|
|
1269
|
+
threshold: 0
|
|
1270
|
+
};
|
|
1271
|
+
|
|
1272
|
+
const observer = new IntersectionObserver((entries) => {
|
|
1273
|
+
entries.forEach(entry => {
|
|
1274
|
+
const id = entry.target.id;
|
|
1275
|
+
const tocLink = toc.querySelector('[data-target="' + id + '"]');
|
|
1276
|
+
|
|
1277
|
+
if (entry.isIntersecting && tocLink) {
|
|
1278
|
+
// 全てのactiveクラスを削除
|
|
1279
|
+
toc.querySelectorAll('.toc-link').forEach(link => {
|
|
1280
|
+
link.classList.remove('active');
|
|
1281
|
+
});
|
|
1282
|
+
// 現在の見出しに対応するリンクをアクティブに
|
|
1283
|
+
tocLink.classList.add('active');
|
|
1284
|
+
}
|
|
1285
|
+
});
|
|
1286
|
+
}, observerOptions);
|
|
1287
|
+
|
|
1288
|
+
// 全ての見出しを監視
|
|
1289
|
+
headings.forEach(heading => {
|
|
1290
|
+
observer.observe(heading);
|
|
1291
|
+
});
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
// ページロード時に目次を生成(Markdownがない場合でも)
|
|
1295
|
+
if (!document.getElementById('markdownSource')) {
|
|
1296
|
+
generateTableOfContents();
|
|
1297
|
+
}
|
|
1298
|
+
`;
|
|
1299
|
+
}
|
|
1300
|
+
//# sourceMappingURL=overview.js.map
|