@brainfish-ai/devdoc 0.1.22 → 0.1.24
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.
- package/README.md +7 -3
- package/dist/cli/commands/create.js +19 -49
- package/dist/cli/commands/deploy.js +174 -14
- package/dist/cli/commands/dev.d.ts +1 -0
- package/dist/cli/commands/dev.js +175 -18
- package/dist/cli/commands/init.d.ts +2 -1
- package/dist/cli/commands/init.js +26 -64
- package/dist/cli/index.js +3 -1
- package/package.json +1 -1
- package/renderer/components/docs-viewer/index.tsx +198 -54
- package/renderer/components/docs-viewer/sidebar/index.tsx +3 -95
- package/renderer/lib/api-docs/factories.ts +45 -26
- package/renderer/lib/api-docs/parsers/graphql/parser.ts +1 -1
- package/renderer/lib/api-docs/parsers/openapi/transformer.ts +1 -0
- package/renderer/lib/docs/config/schema.ts +11 -1
- package/renderer/components/docs-viewer/content/introduction.tsx +0 -21
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
|
|
3
|
-
import { MarkdownRenderer } from '../shared/markdown-renderer'
|
|
4
|
-
import type { BrainfishCollection } from '@/lib/api-docs/types'
|
|
5
|
-
|
|
6
|
-
interface IntroductionProps {
|
|
7
|
-
collection: BrainfishCollection
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export function Introduction({ collection }: IntroductionProps) {
|
|
11
|
-
return (
|
|
12
|
-
<div className="docs-introduction docs-content max-w-4xl mx-auto px-4 py-6 sm:px-8 sm:py-8">
|
|
13
|
-
<h1 className="docs-content-title text-2xl sm:text-3xl font-bold mb-4 sm:mb-6 text-foreground">{collection.name}</h1>
|
|
14
|
-
{collection.description && (
|
|
15
|
-
<div className="docs-prose prose prose-sm max-w-none prose-headings:text-foreground prose-p:text-muted-foreground prose-strong:text-foreground prose-code:text-foreground prose-pre:bg-muted prose-code:bg-muted prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-pre:overflow-x-auto prose-table:w-full prose-th:text-left prose-th:p-3 prose-th:bg-muted prose-td:p-3 prose-td:border-b prose-td:border-border">
|
|
16
|
-
<MarkdownRenderer content={collection.description} />
|
|
17
|
-
</div>
|
|
18
|
-
)}
|
|
19
|
-
</div>
|
|
20
|
-
)
|
|
21
|
-
}
|