Skip to content

Commit

Permalink
docs: rewrite docs from raw markdown to astro+starlight static website
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewWid committed Oct 25, 2024
1 parent a7dcb3e commit 71f7358
Show file tree
Hide file tree
Showing 20 changed files with 5,676 additions and 309 deletions.
21 changes: 21 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# build output
dist/
# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.production

# macOS-specific files
.DS_Store
13 changes: 0 additions & 13 deletions docs/README.md

This file was deleted.

25 changes: 25 additions & 0 deletions docs/astro.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import {defineConfig} from "astro/config";
import starlight from "@astrojs/starlight";

export default defineConfig({
site: "https://matthewwid.github.io",
integrations: [
starlight({
title: "Better SSE",
social: {
github: "https://github.com/MatthewWid/better-sse",
},
sidebar: [
{
label: "Guides",
autogenerate: {directory: "guides"},
},
{
label: "Reference",
autogenerate: {directory: "reference"},
},
],
customCss: ["./src/styles/custom.css"],
}),
],
});
31 changes: 0 additions & 31 deletions docs/comparison.md

This file was deleted.

142 changes: 0 additions & 142 deletions docs/getting-started.md

This file was deleted.

19 changes: 19 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "better-sse-docs",
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/starlight": "^0.28.3",
"astro": "^4.16.7",
"sharp": "^0.32.6",
"typescript": "^5.6.3"
}
}
Loading

0 comments on commit 71f7358

Please sign in to comment.