Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewWid committed Oct 25, 2024
1 parent a7dcb3e commit de095e4
Show file tree
Hide file tree
Showing 21 changed files with 5,620 additions and 659 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
60 changes: 51 additions & 9 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,55 @@
# Better SSE Documentation
# Starlight Starter Kit: Basics

This is the official documentation for Better SSE that includes a guide on getting started, API documentation and recipes for using the package.
[![Built with Starlight](https://astro.badg.es/v2/built-with-starlight/tiny.svg)](https://starlight.astro.build)

Feel free to contribute to this documentation the same way you would for the package source code.
```
npm create astro@latest -- --template starlight
```

## Table of Contents
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/starlight/tree/main/examples/basics)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/starlight/tree/main/examples/basics)
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/withastro/starlight&create_from_path=examples/basics)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fwithastro%2Fstarlight%2Ftree%2Fmain%2Fexamples%2Fbasics&project-name=my-starlight-docs&repository-name=my-starlight-docs)

* [Getting Started](./getting-started.md)
* [Using Channels](./channels.md)
* [API Documentation](./api.md)
* [Recipes](./recipes.md)
* [Comparison with Other Tools](./comparison.md)
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
## 🚀 Project Structure

Inside of your Astro + Starlight project, you'll see the following folders and files:

```
.
├── public/
├── src/
│ ├── assets/
│ ├── content/
│ │ ├── docs/
│ │ └── config.ts
│ └── env.d.ts
├── astro.config.mjs
├── package.json
└── tsconfig.json
```

Starlight looks for `.md` or `.mdx` files in the `src/content/docs/` directory. Each file is exposed as a route based on its file name.

Images can be added to `src/assets/` and embedded in Markdown with a relative link.

Static assets, like favicons, can be placed in the `public/` directory.

## 🧞 Commands

All commands are run from the root of the project, from a terminal:

| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |

## 👀 Want to learn more?

Check out [Starlight’s docs](https://starlight.astro.build/), read [the Astro documentation](https://docs.astro.build), or jump into the [Astro Discord server](https://astro.build/chat).
346 changes: 0 additions & 346 deletions docs/api.md

This file was deleted.

21 changes: 21 additions & 0 deletions docs/astro.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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"},
},
],
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 de095e4

Please sign in to comment.