mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 23:49:51 +00:00
CLI: Allow code usage of create()
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'create-fumadocs-app': patch
|
||||
---
|
||||
|
||||
Allow code usage of `create()`
|
||||
@@ -14,6 +14,8 @@
|
||||
"author": "Fuma Nama",
|
||||
"type": "module",
|
||||
"bin": "./dist/index.js",
|
||||
"module": "./dist/create-app.js",
|
||||
"types": "./dist/create-app.d.ts",
|
||||
"files": [
|
||||
"template/*",
|
||||
"dist/*"
|
||||
|
||||
@@ -16,13 +16,35 @@ export type Template =
|
||||
export interface Options {
|
||||
outputDir: string;
|
||||
template: Template;
|
||||
tailwindcss: boolean;
|
||||
|
||||
/**
|
||||
* the package manager to use
|
||||
*/
|
||||
packageManager: PackageManager;
|
||||
|
||||
/**
|
||||
* Create files inside `src`
|
||||
*
|
||||
* (Next.js only)
|
||||
*/
|
||||
useSrcDir?: boolean;
|
||||
|
||||
/**
|
||||
* Configure Tailwind CSS
|
||||
*
|
||||
* (Next.js only)
|
||||
*/
|
||||
tailwindcss: boolean;
|
||||
|
||||
/**
|
||||
* Configure Next.js ESLint plugin
|
||||
*
|
||||
* (Next.js only)
|
||||
*/
|
||||
eslint?: boolean;
|
||||
|
||||
installDeps?: boolean;
|
||||
initializeGit?: boolean;
|
||||
eslint?: boolean;
|
||||
log?: (message: string) => void;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -4,4 +4,4 @@ const [err, _sourceConfig] = buildConfig(_source)
|
||||
if (!_sourceConfig) throw new Error(err)
|
||||
import { _runtime } from "fumadocs-mdx"
|
||||
import * as _source from "./config"
|
||||
export const docs = _runtimeAsync.doc<typeof _source.docs>([{"info":{"path":"index.mdx","absolutePath":"$cwd/packages/mdx/test/fixtures/index.mdx"},"data":{}}, {"info":{"path":"folder/test.mdx","absolutePath":"$cwd/packages/mdx/test/fixtures/folder/test.mdx"},"data":{}}], "docs", _sourceConfig)
|
||||
export const docs = _runtimeAsync.doc<typeof _source.docs>([{"info":{"path":"index.mdx","absolutePath":"$cwd/packages/mdx/test/fixtures/index.mdx"},"data":{},"content":"# Hello World\n"}, {"info":{"path":"folder/test.mdx","absolutePath":"$cwd/packages/mdx/test/fixtures/folder/test.mdx"},"data":{},"content":""}], "docs", _sourceConfig)
|
||||
Reference in New Issue
Block a user