Skip to content

@dovenv/theme-pigeonposse - API documentation

Classes

Predocs

Extends

  • PluginCore<PredocsConfig>

Constructors

new Predocs()
ts
new Predocs(opts: undefined, config?: Config): Predocs
Parameters
ParameterType
optsundefined
config?Config
Returns

Predocs

Overrides

PluginCore<PredocsConfig>.constructor

Methods

getMarkdownInfo()
ts
getMarkdownInfo(): Promise<{
  config: string;
  lib: string;
  more: string;
  plugin: string;
  theme: string;
}>
Returns

Promise<{ config: string; lib: string; more: string; plugin: string; theme: string; }>

NameType
configstring
libstring
morestring
pluginstring
themestring
run()
ts
run(): Promise<void>
Returns

Promise<void>

setContributorsFile()
ts
setContributorsFile(): Promise<void>
Returns

Promise<void>

setGuideIndexFile()
ts
setGuideIndexFile(): Promise<void>
Returns

Promise<void>

setGuideSectionIndexFile()
ts
setGuideSectionIndexFile(config: {
  none: ObjectValues<{
     config: 'config';
     lib: 'lib';
     plugin: 'plugin';
     theme: 'theme';
    }>;
}): Promise<void>
Parameters
ParameterType
configobject
config.none?ObjectValues<{ config: 'config'; lib: 'lib'; plugin: 'plugin'; theme: 'theme'; }>
Returns

Promise<void>

setIndexFile()
ts
setIndexFile(config?: {
  content: string;
  creationTemplate: boolean;
  custom: Record<string, unknown>;
  noAction: boolean;
  noFeatures: boolean;
}): Promise<void>
Parameters
ParameterTypeDescription
config?object-
config.content?string-
config.creationTemplate?booleanChange template to creation template
config.custom?Record<string, unknown>-
config.noAction?boolean-
config.noFeatures?boolean-
Returns

Promise<void>

setPkgFiles()
ts
setPkgFiles(): Promise<void>
Returns

Promise<void>

Properties

PropertyTypeDefault valueDescriptionOverridesInherited from
configundefined | ConfigundefinedThe dovenv configuration.-PluginCore.config
optsundefinedundefinedConfiguration options.-PluginCore.opts
projectNameanyundefined---
titlestring'Predocs'-PluginCore.title-

Functions

bandaTheme()

ts
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

ParameterTypeDescription
opts?ConfigOptional configuration options.

Returns

Config

The dovenv configuration object.

Example

ts
import { bandaTheme } from '@dovenv/theme-banda'

export default bandaTheme( {
  lint: { commitlint: { gitmoji: true } },
  docs: {
      input: 'README.md',
      output: 'build/README.md',
  },
} )

getSidebar()

ts
function getSidebar(dovenvConfig: Config, opts?: SidebarConfig): Promise<SidebarItem[]>

Generates a sidebar configuration for @dovenv/docs plugin.

Parameters

ParameterTypeDescription
dovenvConfigConfigThe Dovenv configuration.
opts?SidebarConfigThe options.

Returns

Promise<SidebarItem[]>

The sidebar configuration.


getWorkspaceConfig()

ts
function getWorkspaceConfig(opts?: WsOpts & {
  core: WsOpts;
  packages: WsOpts;
}): Promise<ConstsConfig>

Get the workspace configuration.

Parameters

ParameterTypeDescription
opts?WsOpts & { core: WsOpts; packages: WsOpts; }The options for getting the workspace configuration.

Returns

Promise<ConstsConfig>

The workspace configuration.


mergeConfig()

ts
function mergeConfig(...config: (Config | Config[])[]): Config

Merges multiple theme-pigeonposse configuration objects into a single configuration.

Parameters

ParameterType
...config(Config | Config[])[]

Returns

Config


pigeonposseMonorepoTheme()

ts
function pigeonposseMonorepoTheme(params?: Config): 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

ParameterTypeDescription
params?ConfigThe configuration for the theme.

Returns

Config

The merged configuration.


pigeonposseTheme()

ts
function pigeonposseTheme(params?: Config): Config

The PigeonPosse theme for Dovenv.

Parameters

ParameterTypeDescription
params?ConfigThe 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()

ts
function pigeonposseWebPlugin(params?: WebConfig): Config

Plugin for set the pigeonposse web configuration.

Parameters

ParameterTypeDescription
params?WebConfigOptional parameters for the plugin.

Returns

Config

  • A Dovenv configuration with a "transform" command for the .pigeonposse.yml file.

Example

ts
import { defineConfig } from '@dovenv/core'
import { pigeonposseWebPlugin } from '@dovenv/theme-pigeonposse'

export default defineConfig( pigeonposseWebPlugin() )

pkgBadges()

ts
function pkgBadges(options: PkgBadgesOptions): string

Generates markdown links for package-related badges.

Parameters

ParameterTypeDescription
optionsPkgBadgesOptionsThe package badge options.

Returns

string

The generated markdown links.


socialBadges()

ts
function socialBadges(data: SocialLinks): undefined | string

Generates markdown links for social badges.

Parameters

ParameterTypeDescription
dataSocialLinksThe social links data.

Returns

undefined | string

The generated markdown links or undefined if no links are provided.

Type Aliases

Config

ts
type Config: BandaConfig & {
  web: WebConfig;
 } & {
  core: ConstsConfig;
};

Type declaration

NameTypeDescription
web?WebConfigConfiguration for the pigeonposse web File data

Type declaration

NameTypeDescription
core?ConstsConfigSet the pigeonposse theme constants and information Example import { getWorkspaceConfig } from '@dovenv/theme-pigeonposse' const core = await getWorkspaceConfig({metaURL : import.meta.url, path : '../../../../'} )

WebConfig

ts
type WebConfig: {
  customValues: Record<string, unknown>;
  input: string;
  values: Record<string, unknown> | false;
};

Type declaration

NameTypeDescription
customValues?Record<string, unknown>Merge with general values
input?stringDefault '.pigeonposse.yml'
values?Record<string, unknown> | falseoverride values. set to false to disable default values

References

default

Renames and re-exports pigeonposseTheme

Variables

predocsCommand

ts
const predocsCommand: Config;

Namespaces