Socket
Book a DemoInstallSign in
Socket

@shipgirl/typedoc-plugin-versions

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shipgirl/typedoc-plugin-versions

It keeps track of your document builds and provides a select menu for versions

latest
Source
npmnpm
Version
0.3.2
Version published
Maintainers
1
Created
Source

@shipgirl/typedoc-plugin-versions

Fork of citkane's typedoc-plugin-versions

Usage

"plugin": ["@shipgirl/typedoc-plugin-versions"],
"versions": { /*...options */ }

Options

KeyValue InformationTypeRequiredDefault
stableThe version that you would like to be marked as stablestringnoAutomatically inferred based on current version and build history.
devThe version that you would like to be marked as devstringnoAutomatically inferred based on current version and build history.
domLocationA custom DOM location to render the HTML select dropdown corresponding to typedoc rendererHooks, eg. "navigation.begin"stringnoInjects to left of header using vanilla js - not a typedoc render hook.
packageFilePass in an alternative name convention for "package.json"stringnopackage.json
makeRelativeLinksCreate relative instead of absolute symlinks in the document out directorybooleannofalse

"What sorcery is this?", you may ask...

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.

CID

Below is an opinionated Github CI setup. You can hack and change it to suite your needs.

How to for Github Actions:

  • In your project's package.json, set up scripts for:
    • build - to build your project, eg. "tsc --outDir ./dist"
    • docs - to build your documents, eg "typedoc --out ./docs"
  • Ensure that your documents are being built into a folder named ./docs (or change your workflow file appropriately)
  • Create an empty branch called gh-pages
  • Under your repository's 'Pages' settings, set:
    • Source: Deploy from a branch
    • Branch: gh-pages/docs (symlinks won't work in the gh-pages/root folder)
  • Create a custom workflow as per this template for PUBLISH DOCS.

The "PUBLISH DOCS" action will create a rolling update to your document set.

Keywords

typedoc

FAQs

Package last updated on 28 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts