npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@shipgirl/typedoc-plugin-versions

v0.2.8

Published

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

Downloads

533

Readme

@shipgirl/typedoc-plugin-versions

Fork of citkane's typedoc-plugin-versions

Usage

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

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 |

"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.