From c92af8623ccfcc656c17d2579f952a8aa4001397 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Wed, 23 Oct 2024 20:49:54 +0000 Subject: [PATCH] feat: add net-zero badge (#32) Reviewed-on: https://codeberg.org/nhcarrigan/docs/pulls/32 Co-authored-by: Naomi Carrigan Co-committed-by: Naomi Carrigan --- astro.config.mjs | 13 ++++++++++++ package.json | 2 +- src/components/Footer.astro | 35 +++++++++++++++++++++++++++++++ src/content/docs/about/contact.md | 2 +- 4 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 src/components/Footer.astro diff --git a/astro.config.mjs b/astro.config.mjs index f864aa3..cddf123 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -4,7 +4,11 @@ import starlight from "@astrojs/starlight"; import { navigation } from "./src/components/navigation.ts"; export default defineConfig({ + site: "https://docs.nhcarrigan.com", integrations: [starlight({ + components: { + Footer: "./src/components/Footer.astro", + }, title: "Naomi's Documentation", sidebar: navigation, tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 4}, @@ -43,6 +47,15 @@ export default defineConfig({ { tag: "script", content: "window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }" + }, + { + tag: "script", + attrs: { + type: "text/javascript", + id: "trees", + src: "https://widgets.tree-nation.com/js/widgets/v1/widgets.min.js?v=1.0", + defer: true + } } ], customCss: [ diff --git a/package.json b/package.json index 4cb3bd0..a3a3e8b 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "astro dev", "start": "astro dev", - "build": "astro check && astro build", + "build": "astro build", "preview": "astro preview", "astro": "astro" }, diff --git a/src/components/Footer.astro b/src/components/Footer.astro new file mode 100644 index 0000000..f5c4fcb --- /dev/null +++ b/src/components/Footer.astro @@ -0,0 +1,35 @@ +--- +import LastUpdated from "@astrojs/starlight/components/LastUpdated.astro"; +import EditLink from "@astrojs/starlight/components/EditLink.astro"; +import Pagination from "@astrojs/starlight/components/Pagination.astro"; +--- +
+
+ + +
+ +
+ +
+ + \ No newline at end of file diff --git a/src/content/docs/about/contact.md b/src/content/docs/about/contact.md index f99f712..7c6c113 100644 --- a/src/content/docs/about/contact.md +++ b/src/content/docs/about/contact.md @@ -504,4 +504,4 @@ We encourage users to consider the following alternatives before sending a direc By sending a direct message, you acknowledge that you have read and agreed to this policy, including the fee structure and invoicing process. -Remember, while we value direct communication, we encourage the use of our public channels whenever possible to foster community engagement and shared learning. +Remember, while we value direct communication, we encourage the use of our public channels whenever possible to foster community engagement and shared learning. \ No newline at end of file