generated from nhcarrigan/template
feat: add net-zero badge (#32)
Reviewed-on: https://codeberg.org/nhcarrigan/docs/pulls/32 Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com> Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
This commit is contained in:
parent
5aa43400de
commit
c92af8623c
@ -4,7 +4,11 @@ import starlight from "@astrojs/starlight";
|
|||||||
import { navigation } from "./src/components/navigation.ts";
|
import { navigation } from "./src/components/navigation.ts";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
site: "https://docs.nhcarrigan.com",
|
||||||
integrations: [starlight({
|
integrations: [starlight({
|
||||||
|
components: {
|
||||||
|
Footer: "./src/components/Footer.astro",
|
||||||
|
},
|
||||||
title: "Naomi's Documentation",
|
title: "Naomi's Documentation",
|
||||||
sidebar: navigation,
|
sidebar: navigation,
|
||||||
tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 4},
|
tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 4},
|
||||||
@ -43,6 +47,15 @@ export default defineConfig({
|
|||||||
{
|
{
|
||||||
tag: "script",
|
tag: "script",
|
||||||
content: "window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }"
|
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: [
|
customCss: [
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
"start": "astro dev",
|
"start": "astro dev",
|
||||||
"build": "astro check && astro build",
|
"build": "astro build",
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
|
35
src/components/Footer.astro
Normal file
35
src/components/Footer.astro
Normal file
@ -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";
|
||||||
|
---
|
||||||
|
<footer class="sl-flex">
|
||||||
|
<div class="meta sl-flex">
|
||||||
|
<EditLink {...Astro.props} />
|
||||||
|
<LastUpdated {...Astro.props} />
|
||||||
|
</div>
|
||||||
|
<Pagination {...Astro.props} />
|
||||||
|
<div id="tree-nation-offset-website"></div>
|
||||||
|
<script>TreeNationOffsetWebsite({code: 'a17464e0cd351220', lang: 'en', theme: 'dark'}).render('#tree-nation-offset-website');</script>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
footer {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
|
.meta {
|
||||||
|
gap: 0.75rem 3rem;
|
||||||
|
justify-content: space-between;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin-top: 3rem;
|
||||||
|
font-size: var(--sl-text-sm);
|
||||||
|
color: var(--sl-color-gray-3);
|
||||||
|
}
|
||||||
|
.meta > :global(p:only-child) {
|
||||||
|
margin-inline-start: auto;
|
||||||
|
}
|
||||||
|
#tree-nation-offset-website {
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
</style>
|
@ -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.
|
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.
|
Loading…
x
Reference in New Issue
Block a user