toolbeam-docs-theme
v0.4.8
Published
<h1 align="center">Toolbeam Docs Theme</h1> <p align="center"> <a href="https://sst.dev/discord"><img alt="Discord" src="https://img.shields.io/discord/983865673656705025?style=flat-square&label=Discord" /></a> <a href="https://www.npmjs.com/package/t
Readme
Usage
Install the theme package to your project and the custom fonts.
npm install toolbeam-docs-theme @fontsource/ibm-plex-monoOptionally, install packages for linked headings.
npm install @astrojs/markdown-remark rehype-autolink-headingsAdd the theme to your Starlight config.
import theme from "toolbeam-docs-theme"; export default defineConfig({ // ... integrations: [ starlight({ // ... plugins: [theme({ // Optionally, add your own header links headerLinks: [ { name: "Home", url: "/" }, { name: "Docs", url: "/docs/" }, { name: "Blog", url: "/blog/" }, ], })], }), ], });Optionally, add the config for the linked headings.
import { rehypeHeadingIds } from "@astrojs/markdown-remark"; import rehypeAutolinkHeadings from "rehype-autolink-headings"; export default defineConfig({ integrations: [ starlight({ markdown: { headingLinks: false } }), ], markdown: { rehypePlugins: [ rehypeHeadingIds, [rehypeAutolinkHeadings, { behavior: "wrap" }], ], }, });
Working locally
Install dependencies.
pnpm installStart the playground site.
cd apps/docs pnpm devMake changes to theme in
packages/theme.
Publishing
Create a new changeset with the version and message.
pnpm changesetFinally, push the changeset to
mainwhen it's ready.git pushMerge the changeset to create a new release and publish the package.
