* test: library versioning * test: rearrange files and add shim * docs: add content for library modules * docs: add and move library content, sidebar * docs: rearrange page structure, reference and faq, sidebar ordering * chore: update userstyle issue browsers link to faq * docs: add libstd v1 release notes * docs: update lib references to correct new filename * docs: revert changes to guides * docs: order standard library page before modules under libraries * docs: move v1 under changelog * docs: move api documentation into versioned subdirectory * docs: rename versioned api docs, fix links * docs: move /v/1 to /v/v1 * docs: add link to std library api reference from overview page * docs: add usage heading to std lib v1 page above codeblock * docs: move libraries/standard/ overview page to index * docs: link to overview page for standard library Co-authored-by: WalkQuackBack <[email protected]> * docs: wording clarifications Co-authored-by: WalkQuackBack <[email protected]> * docs: separate documentation link, remove hosted library link * docs: reword library module justification paragraph * docs: add section heading for importing Co-authored-by: WalkQuackBack <[email protected]> --------- Co-authored-by: uncenter <[email protected]>
80 lines
2.4 KiB
JavaScript
80 lines
2.4 KiB
JavaScript
import { defineConfig } from "astro/config";
|
|
import starlight from "@astrojs/starlight";
|
|
import catppuccin from "@catppuccin/starlight";
|
|
import starlightLinksValidator from "starlight-links-validator";
|
|
import starlightImageZoom from "starlight-image-zoom";
|
|
import starlightGitHubAlerts from "starlight-github-alerts";
|
|
import starlightAutoSidebar from "starlight-auto-sidebar";
|
|
import mermaid from "astro-mermaid";
|
|
import { remarkHeadingId } from "remark-custom-heading-id";
|
|
|
|
export default defineConfig({
|
|
site: "https://userstyles.catppuccin.com",
|
|
markdown: {
|
|
remarkPlugins: [remarkHeadingId],
|
|
},
|
|
integrations: [
|
|
mermaid(),
|
|
starlight({
|
|
title: "Catppuccin Userstyles",
|
|
favicon: "/favicon.png",
|
|
logo: {
|
|
dark: "/public/pepperjack-dark.png",
|
|
light: "/public/pepperjack-light.png",
|
|
},
|
|
social: [
|
|
{
|
|
icon: "github",
|
|
label: "GitHub",
|
|
href: "https://github.com/catppuccin/userstyles",
|
|
},
|
|
],
|
|
editLink: {
|
|
baseUrl: "https://github.com/catppuccin/userstyles/edit/main/docs",
|
|
},
|
|
expressiveCode: {
|
|
themes: ["catppuccin-mocha", "catppuccin-latte"],
|
|
styleOverrides: {
|
|
frames: {
|
|
tooltipSuccessBackground: "var(--green)",
|
|
tooltipSuccessForeground: "var(--base)",
|
|
},
|
|
textMarkers: {
|
|
insBackground:
|
|
"color-mix(in oklab, var(--sl-color-green-high) 25%, var(--sl-color-gray-6));",
|
|
insBorderColor: "var(--sl-color-gray-5)",
|
|
delBackground:
|
|
"color-mix(in oklab, var(--sl-color-red-high) 25%, var(--sl-color-gray-6));",
|
|
delBorderColor: "var(--sl-color-gray-5)",
|
|
},
|
|
codeBackground: "var(--sl-color-gray-6)",
|
|
},
|
|
},
|
|
sidebar: [
|
|
{
|
|
label: "Getting started",
|
|
autogenerate: { directory: "getting-started" },
|
|
},
|
|
{
|
|
label: "Contributing",
|
|
collapsed: true,
|
|
autogenerate: { directory: "contributing" },
|
|
},
|
|
],
|
|
plugins: [
|
|
catppuccin(),
|
|
starlightLinksValidator(),
|
|
starlightGitHubAlerts(),
|
|
starlightImageZoom(),
|
|
starlightAutoSidebar(),
|
|
],
|
|
}),
|
|
],
|
|
redirects: {
|
|
"/contributing/standard-library/":
|
|
"/contributing/reference/libraries/standard/",
|
|
"/reference/browsers/":
|
|
"/getting-started/faq/#what-version-of-my-browser-am-i-using",
|
|
},
|
|
});
|