Skip to content

Commit c216762

Browse files
authored
Merge pull request AerynOS#61 from CookieSource/external-add-ons
Add Starlight scroll to top & KBD
2 parents 21b4037 + 853bb62 commit c216762

3 files changed

Lines changed: 477 additions & 295 deletions

File tree

astro.config.mjs

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import { defineConfig } from "astro/config";
33
import starlight from "@astrojs/starlight";
44
import starlightLinksValidator from "starlight-links-validator";
5+
import starlightScrollToTop from "starlight-scroll-to-top";
6+
import starlightKbd from "starlight-kbd";
57

68
// https://astro.build/config
79
export default defineConfig({
@@ -38,7 +40,29 @@ export default defineConfig({
3840
editLink: {
3941
baseUrl: "https://github.com/AerynOS/dotdev/edit/main/",
4042
},
41-
plugins: [starlightLinksValidator()],
43+
plugins: [
44+
starlightLinksValidator(),
45+
starlightScrollToTop({
46+
position: "right",
47+
showTooltip: true,
48+
smoothScroll: true,
49+
threshold: 10,
50+
svgPath: "M12 4L6 10H9V16H15V10H18L12 4M9 16L12 20L15 16",
51+
svgStrokeWidth: 2,
52+
borderRadius: "20",
53+
showProgressRing: true,
54+
showOnHomepage: true,
55+
tooltipText: "Back to top",
56+
}),
57+
starlightKbd({
58+
globalPicker: false,
59+
types: [
60+
{ id: "mac", label: "macOS" },
61+
{ id: "windows", label: "Windows" },
62+
{ id: "linux", label: "Linux", default: true },
63+
],
64+
}),
65+
],
4266
sidebar: [
4367
{
4468
label: "AerynOS",

0 commit comments

Comments
 (0)