17.1.1 • Published 2 months ago

@wixc3/docs v17.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

npm version @wixc3/docs on Github

Home > @wixc3/docs

docs package

Tool + CLI for docs generation from TSDocs

Remarks

Templates

Site pages includes the following templates from docs-config:

  • index.md - main page header

  • package.md - packages root page header

  • item.md - header for other files

Macros

There are many awesome macros you can use in your TDDocs. Using macros look like this [[[macro and args]]]

npm version @wixc3/docs on Github

Home > @wixc3/docs-macros

docs-macros package

Variables

VariableDescription
githubA link to the package on githubUsage: inside a ts-docs comment block:[[github caption?]]
githubBuildStatusA github build status badgeUsage: inside a ts-docs comment block:[[githubBuildStatus]]
githubPagesA link to the project's github pagesUsage: inside a ts-docs comment block:[[githubPages uri? caption?]]where uri can be an inner pageif caption is provided a markdown link will be created, otherwise the raw root URL will replace the macro
gitRepoProject's current package name, in a url friendly formatUsage: inside a ts-docs comment block:[[gitRepo field?]]where field can be: host | org | repo | pages | github
hHeading - since ts-docs to not natively allow for markdown formatting, this macro is used to create a #, ##, ## etcUsage: inside a ts-docs comment block:[[h level title]]
includeInclude another markdown file (that may also have macros)Usage: inside a ts-docs comment block:[[include path]]
listMacrosLists all the available macrosUsage: inside a ts-docs comment block:[[listMacros]]
npmBadgeA npm version badgeUsage: inside a ts-docs comment block:[[npmBadge]]
packageNameProject's current package nameUsage: inside a ts-docs comment block of a package:@wixc3/docsWill be replace by the full package name, i.e @wixc3/docs-macros
packageNameUrlProject's current package name, in a url friendly formatUsage: inside a ts-docs comment block of a package:[[packageNameUrl]]This is useful for generating links and badges
rootPackageNameProject's root package nameUsage: inside a ts-docs comment block:[[rootPackageName]]
unscopedPackageNameProject's current package name, unscopedUsage: inside a ts-docs comment block of a package: *docsWill be replace by the full package name, i.e bla for @wixc3/bla

Example 1

yarn add @wixc3/docs
yarn docs init
git push

Example 2

yarn docs build

Example 3

yarn docs readme

Functions

FunctionDescription
buildDocs(config, steps, macros)Build docs markdown
cli()
createReadme(config, siteUrl)
init(config, force)Initialize docs pre-requisites:- Adds api-extractor.json to packages- Adds git pages action- Creates configs and templates in docs-config

Type Aliases

Type AliasDescription
BuildSteps
Macros
UserConfig
17.1.1

2 months ago

17.0.0

2 months ago

16.3.0

2 months ago

16.2.1

2 months ago

16.2.0

3 months ago

16.1.3

3 months ago

16.1.0

4 months ago

16.0.0

4 months ago

15.2.0

4 months ago

15.1.1

5 months ago

15.1.0

5 months ago

15.0.0

5 months ago

14.0.0

5 months ago

14.1.0

5 months ago

13.4.0

5 months ago

13.3.2

8 months ago

13.2.0

9 months ago

13.3.0

9 months ago

13.0.0

10 months ago

13.1.0

10 months ago

13.0.1

10 months ago

12.0.3

10 months ago

12.0.4

10 months ago

12.1.0

10 months ago

12.0.1

10 months ago

12.0.2

10 months ago

11.1.1

10 months ago

11.1.0

11 months ago

11.0.0

11 months ago

10.0.0

11 months ago

8.2.1

11 months ago

9.0.0

11 months ago

7.2.0

1 year ago

8.1.0

1 year ago

8.0.0

1 year ago

8.2.0

1 year ago

7.1.0

1 year ago

7.0.3

1 year ago

7.0.0

1 year ago

6.0.0

1 year ago

5.5.2

1 year ago

5.3.0

1 year ago

5.2.4

1 year ago

5.2.3

1 year ago

5.1.0

1 year ago

5.0.0

1 year ago

4.0.1

1 year ago

4.0.0

1 year ago

3.2.3

1 year ago

3.2.2

1 year ago

3.1.0

1 year ago

3.0.7

1 year ago

3.0.5

1 year ago

3.0.4

1 year ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.0

2 years ago

3.0.1

2 years ago