@dovenv/theme-pigeonposse
- API documentation โ
Classes โ
Predocs โ
Accessors โ
partial โ
Get Signature โ
get partial(): {
creation: string;
creationGroup: string;
footer: string;
installation: string;
installationGroup: string;
}
Object containing partials
Returns โ
{
creation: string;
creationGroup: string;
footer: string;
installation: string;
installationGroup: string;
}
- Object containing partials strings
Name | Type | Description |
---|---|---|
creation | string | Returns the creation instructions for the library. required const: libPkg. |
creationGroup | string | Returns the creation instructions for the library. required const: libPkg. |
footer | string | Returns the footer for the documentation. required const: pkg, socialBadges, mark, contributors. |
installation | string | Returns the installation instructions for the library. required const: libPkg. |
installationGroup | string | Returns the installation instructions for the library. required const: libPkg. |
projectName โ
Get Signature โ
get projectName(): string
Returns โ
string
template โ
Get Signature โ
get template(): {
docsContributors: string;
docsIndex: string;
docsIndexWithCreate: string;
readmePkg: string;
}
Object containing templates
Returns โ
{
docsContributors: string;
docsIndex: string;
docsIndexWithCreate: string;
readmePkg: string;
}
- Object containing templates strings
Name | Type | Description |
---|---|---|
docsContributors | string | Returns a contributors index template for a dovenv docs page. required const: templateMark. |
docsIndex | string | Returns a index template for a dovenv docs page. required const: templateMark, docsIndex. required partial: installationGroup. |
docsIndexWithCreate | string | Returns a index template for a dovenv docs page with project creation instructions. required const: templateMark, docsIndex. required partial: installationGroup. |
readmePkg | string | Returns the readme template for a package. required const: title, pkg, socialBadges, pkgBadges, toc, banner. required partial: installation, toc, content. |
Constructors โ
new Predocs() โ
new Predocs(__namedParameters: {
opts: PredocsConfig;
utils: CommandSuper;
}): Predocs
Parameters โ
Parameter | Type |
---|---|
__namedParameters | object |
__namedParameters.opts ? | PredocsConfig |
__namedParameters.utils | CommandSuper |
Returns โ
Methods โ
getMarkdownInfo() โ
getMarkdownInfo(): Promise<MarkdownInfo>
Retrieves and constructs the Markdown information for the packages.
- If the Markdown information is already available, it returns the cached result.
- Otherwise, it fetches the public package data and groups them by type.
- For each group, it constructs a structured Markdown content that includes titles, descriptions, and links for each package.
Returns โ
Promise
<MarkdownInfo
>
A promise that resolves to an object containing the Markdown content for each package type.
getWorkspacePublicPackagesData() โ
getWorkspacePublicPackagesData(): Promise<PkgData>
Returns the public packages data for the workspace.
Returns โ
Promise
<PkgData
>
An array of public package data objects.
run() โ
run(opts?: RunOpts): Promise<void>
Create package docs simultaneously.
Parameters โ
Parameter | Type | Description |
---|---|---|
opts ? | RunOpts | Optional options. |
Returns โ
Promise
<void
>
- Resolves when all docs are created.
setContributorsFile() โ
setContributorsFile(opts?: ContributorsFileOpts): Promise<void>
Generates and writes a contributors file using the specified template.
Parameters โ
Parameter | Type | Description |
---|---|---|
opts ? | ContributorsFileOpts | Optional configuration for generating the contributors file. Can include additional properties to pass to the template. |
Returns โ
Promise
<void
>
setGuideIndexFile() โ
setGuideIndexFile(opts?: GuideIndexFileOpts): Promise<void>
Sets the guide index file in the documentation directory.
This method checks if a workspace index file exists within the core directory. If it exists, it uses the templates to generate the guide index file and writes it to the documentation guide directory. If the file does not exist, an info message is logged.
Parameters โ
Parameter | Type | Description |
---|---|---|
opts ? | GuideIndexFileOpts | Optional configuration for template properties. |
Returns โ
Promise
<void
>
setGuideSectionIndexFile() โ
setGuideSectionIndexFile(opts?: {
none: string[] | PkgType[];
}): Promise<void>
Writes the guide section index files.
Parameters โ
Parameter | Type | Description |
---|---|---|
opts ? | object | The options object. |
opts.none ? | string [] | PkgType [] | - |
Returns โ
Promise
<void
>
An empty fulfilled promise.
setIndexFile() โ
setIndexFile(opts?: {
content: string;
creationTemplate: boolean;
custom: Record<string, unknown>;
noAction: boolean;
noFeatures: boolean;
}): Promise<void>
Writes the index file to the documentation root directory.
This file is the entry point for users to access the documentation. It is a generated file that is rewritten every time the documentation is built.
Parameters โ
Parameter | Type | Description |
---|---|---|
opts ? | object | The options object. |
opts.content ? | string | Add content after frontmatter |
opts.creationTemplate ? | boolean | Change template to creation template |
opts.custom ? | Record <string , unknown > | Add custom content to index doc page. See https://vitepress.dev/reference/default-theme-home-page |
opts.noAction ? | boolean | Remove default action |
opts.noFeatures ? | boolean | Remove default features |
Returns โ
Promise
<void
>
An empty fulfilled promise.
setPackageApiFile() โ
setPackageApiFile(config: PackageFileConfig, opts?: false | {
props: {
input: string | string[];
opts: {
hooks: {
after: () => ... | ...;
before: () => ... | ...;
};
name: string;
packageJsonPath: string;
transform: (content: string) => Promise<string>;
tsconfigPath: string;
typedoc: Partial<Omit<TypeDocOptions, "plugin" | "tsconfig" | "entryPoints" | "out">>;
typedocMarkdown: Partial<PluginOptions>;
};
output: string;
};
}): Promise<void>
Generates and writes the API documentation file for a package.
Parameters โ
Parameter | Type | Description |
---|---|---|
config | PackageFileConfig | Configuration object containing public package data and markdown info. |
opts ? | false | { props : { input : string | string []; opts : { hooks : { after : () => ... | ...; before : () => ... | ...; }; name : string ; packageJsonPath : string ; transform : (content : string ) => Promise <string >; tsconfigPath : string ; typedoc : Partial <Omit <TypeDocOptions , "plugin" | "tsconfig" | "entryPoints" | "out" >>; typedocMarkdown : Partial <PluginOptions >; }; output : string ; }; } | Optional configuration properties for the API file generation. If set to false , the function exits without processing. |
Returns โ
Promise
<void
>
Throws โ
Throws an error if the API documentation generation fails.
setPackageExamplesFile() โ
setPackageExamplesFile(config: PackageFileConfig, opts?: false | {
props: Config;
}): Promise<void>
Generates a file with examples.
Parameters โ
Parameter | Type | Description |
---|---|---|
config | PackageFileConfig | The public package configuration. |
opts ? | false | { props : Config ; } | The options to pass to the examples plugin. |
Returns โ
Promise
<void
>
Example โ
const predocs = new Predocs()
const publicPkgs = await predocs.getWorkspacePublicPackageData( )
const info = await predocs.getMarkdownInfo()
for ( const publicPkg of publicPkgs ) {
await predocs.setPackageExamplesFile( { publicPkg, info } )
}
setPackageFiles() โ
setPackageFiles(opts?: PackageFileOpts): Promise<void>
Set the files for each package in the workspace.
Parameters โ
Parameter | Type | Description |
---|---|---|
opts ? | PackageFileOpts | Options. |
Returns โ
Promise
<void
>
setPackageIndexFile() โ
setPackageIndexFile(config: PackageFileConfig, opts?: false | {
props: Config;
}): Promise<void>
Sets the index file for the package in the documentation directory.
Parameters โ
Parameter | Type | Description |
---|---|---|
config | PackageFileConfig | Configuration for the package file. |
opts ? | false | { props : Config ; } | Optional configuration for the package file. |
Returns โ
Promise
<void
>
Example โ
const predocs = new Predocs()
const publicPkgs = await predocs.getWorkspacePublicPackageData( )
const info = await predocs.getMarkdownInfo()
for ( const publicPkg of publicPkgs ) {
await predocs.setPackageIndexFile( { publicPkg, info } )
}
setPackageJSONFile() โ
setPackageJSONFile(config: PackageFileConfig, opts?: false | {
props: {
devEngines: {
cpu: undefined | {
name: string;
onFail: "warn" | "error" | "ignore";
version: string;
};
libc: undefined | {
name: string;
onFail: "warn" | "error" | "ignore";
version: string;
};
os: undefined | {
name: string;
onFail: "warn" | "error" | "ignore";
version: string;
};
packageManager: undefined | {
name: string;
onFail: "warn" | "error" | "ignore";
version: string;
};
runtime: undefined | {
name: string;
onFail: "warn" | "error" | "ignore";
version: string;
};
};
};
}): Promise<void>
Writes the package.json file for the documentation package.
This method sets the homepage
, repository
, license
, funding
, and bugs
fields in the package.json file. It also copies the author
field from the workspace package.json if it exists. If the PackageFileOpts.packages option is set to false
, the method does nothing.
Parameters โ
Parameter | Type | Description |
---|---|---|
config | PackageFileConfig | Configuration for the package file. |
opts ? | false | { props : { devEngines : { cpu : undefined | { name : string ; onFail : "warn" | "error" | "ignore" ; version : string ; }; libc : undefined | { name : string ; onFail : "warn" | "error" | "ignore" ; version : string ; }; os : undefined | { name : string ; onFail : "warn" | "error" | "ignore" ; version : string ; }; packageManager : undefined | { name : string ; onFail : "warn" | "error" | "ignore" ; version : string ; }; runtime : undefined | { name : string ; onFail : "warn" | "error" | "ignore" ; version : string ; }; }; }; } | Optional configuration for the package file. |
Returns โ
Promise
<void
>
setPackageReadmeFile() โ
setPackageReadmeFile(config: PackageFileConfig, opts?: false | {
markdownLinks: (pkg: {
data: {
devEngines: {
cpu: undefined | {
name: string;
onFail: ... | ... | ... | ...;
version: ... | ...;
};
libc: undefined | {
name: string;
onFail: ... | ... | ... | ...;
version: ... | ...;
};
os: undefined | {
name: string;
onFail: ... | ... | ... | ...;
version: ... | ...;
};
packageManager: undefined | {
name: string;
onFail: ... | ... | ... | ...;
version: ... | ...;
};
runtime: undefined | {
name: string;
onFail: ... | ... | ... | ...;
version: ... | ...;
};
};
};
docs: {
apiFile: string;
dir: string;
examplesFile: string;
indexFile: string;
urlPath: {
api: string;
examples: string;
index: string;
};
};
emojiId: string;
emojiType: string;
id: string;
name: string;
package: {
dir: string;
docsFile: string;
examplesConfigFile: string;
isTs: boolean;
packageJsonFile: string;
readmeFile: string;
relativeDir: string;
srcFile: string;
tsconfigFile: string;
};
pathID: string;
repoURL: string;
title: string;
type: PkgType;
}) => MdLink[];
props: Config;
}): Promise<void>
Generates and writes the README file for a package.
Parameters โ
Parameter | Type | Description |
---|---|---|
config | PackageFileConfig | Configuration object containing public package data and markdown info. |
opts ? | false | { markdownLinks : (pkg : { data : { devEngines : { cpu : undefined | { name : string ; onFail : ... | ... | ... | ...; version : ... | ...; }; libc : undefined | { name : string ; onFail : ... | ... | ... | ...; version : ... | ...; }; os : undefined | { name : string ; onFail : ... | ... | ... | ...; version : ... | ...; }; packageManager : undefined | { name : string ; onFail : ... | ... | ... | ...; version : ... | ...; }; runtime : undefined | { name : string ; onFail : ... | ... | ... | ...; version : ... | ...; }; }; }; docs : { apiFile : string ; dir : string ; examplesFile : string ; indexFile : string ; urlPath : { api : string ; examples : string ; index : string ; }; }; emojiId : string ; emojiType : string ; id : string ; name : string ; package : { dir : string ; docsFile : string ; examplesConfigFile : string ; isTs : boolean ; packageJsonFile : string ; readmeFile : string ; relativeDir : string ; srcFile : string ; tsconfigFile : string ; }; pathID : string ; repoURL : string ; title : string ; type : PkgType ; }) => MdLink []; props : Config ; } | Optional configuration properties for the README generation. If set to false , the function exits without processing. |
Returns โ
Promise
<void
>
Throws โ
Throws an error if the README generation fails.
Properties โ
Property | Type | Default value | Description |
---|---|---|---|
opts | undefined | PredocsConfig | undefined | General Configuration options |
title | string | 'predocs' | The name of the project |
Functions โ
bandaTheme() โ
function bandaTheme(opts?: Config): Config
Banda theme configuration for dovenv
.
This function takes an optional object with keys matching the plugin names and values that are the respective plugin's configuration objects.
Parameters โ
Parameter | Type | Description |
---|---|---|
opts ? | Config | Optional configuration options. |
Returns โ
Config
The dovenv
configuration object.
Example โ
import { bandaTheme } from '@dovenv/theme-banda'
export default bandaTheme( {
lint: { commitlint: { gitmoji: true } },
docs: {
input: 'README.md',
output: 'build/README.md',
},
} )
getSidebar() โ
function getSidebar(__namedParameters: {
opts: SidebarConfig;
utils: CommandSuper;
}): Promise<SidebarItem[]>
Generates a sidebar configuration for @dovenv/docs plugin.
Parameters โ
Parameter | Type |
---|---|
__namedParameters | object |
__namedParameters.opts ? | SidebarConfig |
__namedParameters.utils | CommandSuper |
Returns โ
Promise
<SidebarItem
[]>
The sidebar configuration.
getWorkspaceConfig() โ
function getWorkspaceConfig(opts?: WorkspaceParams): Promise<ConstsConfig>
Get the workspace configuration.
Parameters โ
Parameter | Type | Description |
---|---|---|
opts ? | WorkspaceParams | The options for getting the workspace configuration. |
Returns โ
Promise
<ConstsConfig
>
The workspace configuration.
mergeConfig() โ
function mergeConfig(...config: (Config | Config[])[]): Config
Merges multiple theme-pigeonposse
configuration objects into a single configuration.
Parameters โ
Parameter | Type |
---|---|
...config | (Config | Config [])[] |
Returns โ
pigeonposseMonorepoTheme() โ
function pigeonposseMonorepoTheme(params?: MonorepoConfig): Config
The pigeonposseMonorepoTheme
for Dovenv. This theme is a fork of the Banda theme with some changes to make it more suitable for the PigeonPosse monorepo. It includes the same basic configuration as Banda, but adds some additional features and changes some of the defaults.
Parameters โ
Parameter | Type | Description |
---|---|---|
params ? | MonorepoConfig | The configuration for the theme. |
Returns โ
Config
The merged configuration.
pigeonposseTheme() โ
function pigeonposseTheme(params?: Config): Config
The PigeonPosse
theme for Dovenv.
Parameters โ
Parameter | Type | Description |
---|---|---|
params ? | Config | The configuration for the theme. |
Returns โ
Config
The merged configuration.
This theme is a fork of the Banda theme with some changes to make it more suitable for the PigeonPosse monorepo.
It includes the same basic configuration as Banda, but adds some additional features and changes some of the defaults.
pigeonposseWebPlugin() โ
function pigeonposseWebPlugin(params?: WebConfig): Config
Plugin for set the pigeonposse web configuration.
Parameters โ
Parameter | Type | Description |
---|---|---|
params ? | WebConfig | Optional parameters for the plugin. |
Returns โ
Config
- A Dovenv configuration with a "transform" command for the
.pigeonposse.yml
file.
Example โ
import { defineConfig } from '@dovenv/core'
import { pigeonposseWebPlugin } from '@dovenv/theme-pigeonposse'
export default defineConfig( pigeonposseWebPlugin() )
pkgBadges() โ
function pkgBadges(options: PkgBadgesOptions): string
Generates markdown links for package-related badges.
Parameters โ
Parameter | Type | Description |
---|---|---|
options | PkgBadgesOptions | The package badge options. |
Returns โ
string
The generated markdown links.
predocsPlugin() โ
function predocsPlugin(opts?: PredocsConfig | (data: Predocs) => Promise<void>): Config
Create package docs simultaneously.
Parameters โ
Parameter | Type | Description |
---|---|---|
opts ? | PredocsConfig | (data : Predocs ) => Promise <void > | Optional opts to pass to Predocs. |
Returns โ
Config
- Dovenv plugin config.
socialBadges() โ
function socialBadges(data: SocialLinks): undefined | string
Generates markdown links for social badges.
Parameters โ
Parameter | Type | Description |
---|---|---|
data | SocialLinks | The social links data. |
Returns โ
undefined
| string
The generated markdown links or undefined if no links are provided.
Type Aliases โ
Config โ
type Config: BandaConfig & {
core: ConstsConfig;
web: WebConfig;
};
Type declaration โ
Name | Type | Description |
---|---|---|
core ? | ConstsConfig | Set the pigeonposse theme constants and information. Example import { getWorkspaceConfig } from '@dovenv/theme-pigeonposse' const core = await getWorkspaceConfig({metaURL : import.meta.url, path : '../../../../'} ) |
web ? | WebConfig | Configuration for the pigeonposse web File data |
MonorepoConfig โ
type MonorepoConfig: Config & {
predocs: NonNullable<Parameters<typeof predocsPlugin>[0]> | false;
};
Type declaration โ
Name | Type |
---|---|
predocs ? | NonNullable <Parameters <typeof predocsPlugin >[0 ]> | false |
PkgData โ
type PkgData: {
data: {
data: PackageJSON;
docs: {
apiFile: string;
dir: string;
examplesFile: string;
indexFile: string;
urlPath: {
api: string;
examples: string;
index: string;
};
};
emojiId: string;
emojiType: string;
id: string;
name: string;
package: {
dir: string;
docsFile: string;
examplesConfigFile: string;
isTs: boolean;
packageJsonFile: string;
readmeFile: string;
relativeDir: string;
srcFile: string;
tsconfigFile: string;
};
pathID: string;
repoURL: string;
title: string;
type: PkgType;
}[];
docsDir: string;
docsGuideDir: string;
docsPublicDir: string;
name: string;
packagesPath: string;
url: string;
urlGuidePath: string;
};
Type declaration โ
Name | Type | Description |
---|---|---|
data | { data : PackageJSON ; docs : { apiFile : string ; dir : string ; examplesFile : string ; indexFile : string ; urlPath : { api : string ; examples : string ; index : string ; }; }; emojiId : string ; emojiType : string ; id : string ; name : string ; package : { dir : string ; docsFile : string ; examplesConfigFile : string ; isTs : boolean ; packageJsonFile : string ; readmeFile : string ; relativeDir : string ; srcFile : string ; tsconfigFile : string ; }; pathID : string ; repoURL : string ; title : string ; type : PkgType ; }[] | - |
docsDir | string | Absosulte local dir of documentation |
docsGuideDir | string | Absosulte local dir of documentation guide |
docsPublicDir | string | Absosulte local dir of documentation assets |
name | string | - |
packagesPath | string | - |
url | string | - |
urlGuidePath | string | - |
PkgType โ
type PkgType: ObjectValues<typeof TYPE>;
PredocsConfig โ
type PredocsConfig: {
emoji: EmojiObject | false;
guideSection: {
none: PkgType[] | string[];
};
index: {
content: string;
creationTemplate: boolean;
custom: Record<string, unknown>;
noAction: boolean;
noFeatures: boolean;
};
};
Type declaration โ
Name | Type | Description |
---|---|---|
emoji ? | EmojiObject | false | Set emojis for your packages. Example { * core: '๐', * create: false, * } |
guideSection ? | { none : PkgType [] | string []; } | Guide section options |
guideSection.none ? | PkgType [] | string [] | - |
index ? | { content : string ; creationTemplate : boolean ; custom : Record <string , unknown >; noAction : boolean ; noFeatures : boolean ; } | Set index page options |
index.content ? | string | Add content after frontmatter |
index.creationTemplate ? | boolean | Change template to creation template |
index.custom ? | Record <string , unknown > | Add custom content to index doc page. See https://vitepress.dev/reference/default-theme-home-page |
index.noAction ? | boolean | Remove default action |
index.noFeatures ? | boolean | Remove default features |
SidebarConfig โ
type SidebarConfig: {
emojis: EmojiObject | false;
onlyReference: boolean;
};
Type declaration โ
Name | Type | Description |
---|---|---|
emojis ? | EmojiObject | false | Change, remove or add emojis to sidebar |
onlyReference ? | boolean | Get only sidebar reference. Default false |
SidebarItems โ
type SidebarItems: ExtractSidebarArray<Sidebar>;
WebConfig โ
type WebConfig: {
customValues: Record<string, unknown>;
input: string;
values: Record<string, unknown> | false;
version: string;
};
Type declaration โ
Name | Type | Description |
---|---|---|
customValues ? | Record <string , unknown > | Merge with general values |
input ? | string | Default '.pigeonposse.yml' |
values ? | Record <string , unknown > | false | Override values. Set to false to disable default values |
version ? | string | Version of the web. Default latest |
References โ
default โ
Renames and re-exports pigeonposseTheme
Variables โ
EMOJI โ
const EMOJI: {
about: 'โจ';
ai: '๐ค';
api: '๐';
blog: '๐';
bug: '๐';
cli: '๐ข';
config: 'โ๏ธ';
convert: '๐';
core: '๐';
create: '๐';
dev: '๐จโ๐ป';
development: '๐จโ๐ป';
docker: '๐ณ';
docs: '๐';
donate: 'โค๏ธ';
example: '๐ก';
examples: '๐ก';
extension: '๐งฉ';
extensions: '๐งฉ';
feat: '๐';
feats: '๐';
feature: '๐';
features: '๐';
getStarted: "๐";
index: '๐';
info: 'โน๏ธ';
installation: '๐';
library: '๐';
license: '๐';
lint: '๐งน';
media: '๐ฅ';
more: 'โ';
package: '๐ฆ';
plugin: '๐';
preset: '๐พ';
presets: '๐พ';
repo: '๐๏ธ';
repos: '๐๏ธ';
repository: '๐๏ธ';
server: '๐๏ธ';
setup: '๐';
template: '๐ผ๏ธ';
templates: '๐ผ๏ธ';
test: 'โ
';
theme: '๐จ';
todo: 'โ
';
toolkit: '๐งฐ';
tutorial: '๐';
tutorials: '๐';
usage: '๐';
utils: 'โ๏ธ';
web: '๐';
workspace: '๐';
};
Type declaration โ
Name | Type | Default value |
---|---|---|
about | "โจ" | 'โจ' |
ai | "๐ค" | '๐ค' |
api | "๐" | '๐' |
blog | "๐" | '๐' |
bug | "๐" | '๐' |
cli | "๐ข" | '๐ข' |
config | "โ๏ธ" | 'โ๏ธ' |
convert | "๐" | '๐' |
core | "๐" | '๐' |
create | "๐" | '๐' |
dev | "๐จโ๐ป" | '๐จโ๐ป' |
development | "๐จโ๐ป" | '๐จโ๐ป' |
docker | "๐ณ" | '๐ณ' |
docs | "๐" | '๐' |
donate | "โค๏ธ" | 'โค๏ธ' |
example | "๐ก" | '๐ก' |
examples | "๐ก" | '๐ก' |
extension | "๐งฉ" | '๐งฉ' |
extensions | "๐งฉ" | '๐งฉ' |
feat | "๐" | '๐' |
feats | "๐" | '๐' |
feature | "๐" | '๐' |
features | "๐" | '๐' |
getStarted | "๐" | - |
index | "๐" | '๐' |
info | "โน๏ธ" | 'โน๏ธ' |
installation | "๐" | '๐' |
library | "๐" | '๐' |
license | "๐" | '๐' |
lint | "๐งน" | '๐งน' |
media | "๐ฅ" | '๐ฅ' |
more | "โ" | 'โ' |
package | "๐ฆ" | '๐ฆ' |
plugin | "๐" | '๐' |
preset | "๐พ" | '๐พ' |
presets | "๐พ" | '๐พ' |
repo | "๐๏ธ" | '๐๏ธ' |
repos | "๐๏ธ" | '๐๏ธ' |
repository | "๐๏ธ" | '๐๏ธ' |
server | "๐๏ธ" | '๐๏ธ' |
setup | "๐" | '๐' |
template | "๐ผ๏ธ" | '๐ผ๏ธ' |
templates | "๐ผ๏ธ" | '๐ผ๏ธ' |
test | "โ
" | 'โ ' |
theme | "๐จ" | '๐จ' |
todo | "โ
" | 'โ ' |
toolkit | "๐งฐ" | '๐งฐ' |
tutorial | "๐" | '๐' |
tutorials | "๐" | '๐' |
usage | "๐" | '๐' |
utils | "โ๏ธ" | 'โ๏ธ' |
web | "๐" | '๐' |
workspace | "๐" | '๐' |
partial โ
const partial: {
creation: string;
creationGroup: string;
footer: string;
installation: string;
installationGroup: string;
};
Type declaration โ
Name | Type | Description |
---|---|---|
creation | string | Returns the creation instructions for the library. required const: libPkg. |
creationGroup | string | Returns the creation instructions for the library. required const: libPkg. |
footer | string | Returns the footer for the documentation. required const: pkg, socialBadges, mark, contributors. |
installation | string | Returns the installation instructions for the library. required const: libPkg. |
installationGroup | string | Returns the installation instructions for the library. required const: libPkg. |
template โ
const template: {
docsContributors: string;
docsIndex: string;
docsIndexWithCreate: string;
readmePkg: string;
};
Type declaration โ
Name | Type | Description |
---|---|---|
docsContributors | string | Returns a contributors index template for a dovenv docs page. required const: templateMark. |
docsIndex | string | Returns a index template for a dovenv docs page. required const: templateMark, docsIndex. required partial: installationGroup. |
docsIndexWithCreate | string | Returns a index template for a dovenv docs page with project creation instructions. required const: templateMark, docsIndex. required partial: installationGroup. |
readmePkg | string | Returns the readme template for a package. required const: title, pkg, socialBadges, pkgBadges, toc, banner. required partial: installation, toc, content. |
TYPE โ
const TYPE: {
config: 'config';
lib: 'library';
plugin: 'plugin';
preset: 'preset';
theme: 'theme';
};
Type declaration โ
Name | Type | Default value |
---|---|---|
config | "config" | 'config' |
lib | "library" | 'library' |
plugin | "plugin" | 'plugin' |
preset | "preset" | 'preset' |
theme | "theme" | 'theme' |