:warning: DEPRECATION WARNING |
---|
This package will not work with Typedoc > v0.23 due to breaking API changes. |
It keeps track of your document builds and provides a select menu for versions.
Built for: semantic versioning.
Install:
npm i -D typedoc-plugin-versions
and then set up your environment in typedoc.json
"plugin": ["typedoc-plugin-versions"],
"versions": { /*...options */ }
Key | Value Information | Type | Required | Default |
---|---|---|---|---|
stable | The version that you would like to be marked as stable |
string |
no | Automatically inferred based on current version and build history. |
dev | The version that you would like to be marked as dev |
string |
no | Automatically inferred based on current version and build history. |
domLocation | A custom DOM location to render the HTML select dropdown corresponding to typedoc rendererHooks, eg. "navigation.begin" |
string |
no | Injects to left of header using vanilla js - not a typedoc render hook. |
packageFile | Pass in an alternative name convention for "package.json" | string |
no | package.json |
makeRelativeLinks | Create relative instead of absolute symlinks in the document out directory | boolean |
no | false |
Typedoc-plugin-versions takes the architectural approach of JuliaLang Documenter.
Documents are built into subdirectories corresponding to the package.json version.
Symlinks are created to minor versions, which are given as options in a select
menu.
As long as you do not delete your historic document build folders, the document history remains intact.
If you want to remove a historic version, delete the old folder and rebuild your documentation.
Below is an opinionated Github CI setup. You can hack and change it to suite your needs.
How to for Github Actions:
package.json
, set up scripts for:./docs
(or change your workflow file appropriately)The "PUBLISH DOCS" action will create a rolling update to your document set.
Please refer to the Wiki Page.
Generated using TypeDoc