0.1.2 • Published 1 year ago

@karmaniverous/typedoc-plugin-sitemap v0.1.2

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
1 year ago

PARTIALLY DEPRECATED! Typedoc's hostedBaseUrl option now generates a sitemap natively. Only use this plugin if you need more control over the sitemap generation process.

API DocumentationCHANGELOG

TypeDoc Sitemap Plugin

Automagically generate a sitemap for your TypeDoc documentation site!

To install:

npm install -D @karmaniverous/typedoc-plugin-sitemap

In your typedoc.json configuration file, add the following:

{
  "plugins": ["@karmaniverous/typedoc-plugin-sitemap"],
  "sitemap": {
    "baseUrl": "https://docs.karmanivero.us/typedoc-plugin-sitemap",
    "filename": "sitemap.xml",
    "changeFreq": "weekly",
    "priority": 0.5
  }
}

Now run TypeDoc however you usually run it, and your site map will be generated in the root of your output directory!

Options

OptionTypeDefaultDescription
baseUrlstringrequiredThe base URL of your documentation site.
filenamestring'sitemap.xml'The name of the sitemap file.
changeFreq'always' ⏐ 'hourly' ⏐ 'daily' ⏐ 'weekly' ⏐ 'monthly' ⏐ 'yearly' ⏐ 'never''weekly'How frequently the page is likely to change.
prioritynumber0.5The priority of this URL relative to other URLs on your site.

Built for you with ❤️ on Bali! Find more great tools & templates on my GitHub Profile.

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago