Skip to content

Commit

Permalink
[skip ci] Update doc sites
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Apr 25, 2024
1 parent c43a15b commit 0776386
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 51 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ Working/
# dotnet build files
bin/
obj/
*.sln
105 changes: 54 additions & 51 deletions PwshSpectreConsole.Docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,51 +1,54 @@
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";

import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: "PwshSpectreConsole",
editLink: {
baseUrl:
"https://github.com/ShaunLawrie/PwshSpectreConsole/edit/main/PwshSpectreConsole.Docs/",
},
favicon: "/favicon.png",
customCss: ["./src/tailwind.css"],
social: {
github: "https://github.com/ShaunLawrie/PwshSpectreConsole",
twitter: "https://twitter.com/Shaun_Lawrie",
},
sidebar: [
{
label: "Guides",
items: [
{
label: "Install",
link: "/guides/install/",
},
{
label: "Getting Started",
link: "/guides/get-started/",
},
{
label: "FAQs",
link: "/guides/faqs/",
},
],
},
{
label: "Command Reference",
autogenerate: {
directory: "reference",
},
},
],
}),
tailwind({
applyBaseStyles: false,
}),
]
});
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";

import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: "PwshSpectreConsole",
editLink: {
baseUrl:
"https://github.com/ShaunLawrie/PwshSpectreConsole/edit/main/PwshSpectreConsole.Docs/",
},
favicon: "/favicon.png",
customCss: ["./src/tailwind.css"],
social: {
github: "https://github.com/ShaunLawrie/PwshSpectreConsole",
twitter: "https://twitter.com/Shaun_Lawrie",
},
components: {
Head: './src/components/Head.astro',
},
sidebar: [
{
label: "Guides",
items: [
{
label: "Install",
link: "/guides/install/",
},
{
label: "Getting Started",
link: "/guides/get-started/",
},
{
label: "FAQs",
link: "/guides/faqs/",
},
],
},
{
label: "Command Reference",
autogenerate: {
directory: "reference",
},
},
],
}),
tailwind({
applyBaseStyles: false,
}),
]
});
Binary file added PwshSpectreConsole.Docs/public/social.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions PwshSpectreConsole.Docs/src/components/Head.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
import type { Props } from '@astrojs/starlight/props'
import Default from '@astrojs/starlight/components/Head.astro'
const ogImageUrl = "https://pwshspectreconsole.com/social.png"
---
<Default {...Astro.props}><slot /></Default>
<meta property="og:image" content={ogImageUrl} />
<meta name="twitter:image" content={ogImageUrl} />

0 comments on commit 0776386

Please sign in to comment.