Skip to content

Commit 9b2bfde

Browse files
committed
initial
1 parent ed857da commit 9b2bfde

22 files changed

+150
-116
lines changed

CONTRIBUTING.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Starlight Starter Kit: Basics
2+
3+
## 🚀 Project Structure
4+
5+
Inside of your Astro + Starlight project, you'll see the following folders and files:
6+
7+
```
8+
.
9+
├── public/
10+
├── src/
11+
│ ├── assets/
12+
│ ├── content/
13+
│ │ ├── docs/
14+
│ │ └── config.ts
15+
│ └── env.d.ts
16+
├── astro.config.mjs
17+
├── package.json
18+
└── tsconfig.json
19+
```
20+
21+
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.
22+
23+
Images can be added to `src/assets/` and embedded in Markdown with a relative link.
24+
25+
Static assets, like favicons, can be placed in the `public/` directory.
26+
27+
## 🧞 Commands
28+
29+
All commands are run from the root of the project, from a terminal:
30+
31+
| Command | Action |
32+
| :------------------------ | :----------------------------------------------- |
33+
| `npm install` | Installs dependencies |
34+
| `npm run dev` | Starts local dev server at `localhost:4321` |
35+
| `npm run build` | Build your production site to `./dist/` |
36+
| `npm run preview` | Preview your build locally, before deploying |
37+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
38+
| `npm run astro -- --help` | Get help using the Astro CLI |
39+
40+
## 👀 Want to learn more?
41+
42+
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).

README.md

Lines changed: 2 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,3 @@
1-
# Starlight Starter Kit: Basics
1+
# MetricsJS Documentation
22

3-
[![Built with Starlight](https://astro.badg.es/v2/built-with-starlight/tiny.svg)](https://starlight.astro.build)
4-
5-
```
6-
npm create astro@latest -- --template starlight
7-
```
8-
9-
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/starlight/tree/main/examples/basics)
10-
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/starlight/tree/main/examples/basics)
11-
[![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)
12-
13-
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
14-
15-
## 🚀 Project Structure
16-
17-
Inside of your Astro + Starlight project, you'll see the following folders and files:
18-
19-
```
20-
.
21-
├── public/
22-
├── src/
23-
│ ├── assets/
24-
│ ├── content/
25-
│ │ ├── docs/
26-
│ │ └── config.ts
27-
│ └── env.d.ts
28-
├── astro.config.mjs
29-
├── package.json
30-
└── tsconfig.json
31-
```
32-
33-
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.
34-
35-
Images can be added to `src/assets/` and embedded in Markdown with a relative link.
36-
37-
Static assets, like favicons, can be placed in the `public/` directory.
38-
39-
## 🧞 Commands
40-
41-
All commands are run from the root of the project, from a terminal:
42-
43-
| Command | Action |
44-
| :------------------------ | :----------------------------------------------- |
45-
| `npm install` | Installs dependencies |
46-
| `npm run dev` | Starts local dev server at `localhost:4321` |
47-
| `npm run build` | Build your production site to `./dist/` |
48-
| `npm run preview` | Preview your build locally, before deploying |
49-
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
50-
| `npm run astro -- --help` | Get help using the Astro CLI |
51-
52-
## 👀 Want to learn more?
53-
54-
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).
3+
Link in sidebar 💁

astro.config.mjs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,24 @@ import starlight from '@astrojs/starlight';
55
export default defineConfig({
66
integrations: [
77
starlight({
8-
title: 'My Docs',
8+
title: 'MetricsJS',
9+
logo: { src: './src/assets/metrics-js-logo.svg' },
10+
customCss: ['./src/styles/theme.css'],
911
social: {
10-
github: 'https://github.com/withastro/starlight',
12+
github: 'https://github.com/metrics-js/documentation',
1113
},
1214
sidebar: [
1315
{
14-
label: 'Guides',
16+
label: 'Introduction',
1517
items: [
16-
// Each item here is one entry in the navigation menu.
17-
{ label: 'Example Guide', link: '/guides/example/' },
18+
{ label: 'Getting started', link: '/introduction/getting-started/' },
19+
{ label: 'Why MetricsJS', link: '/introduction/why-metrics-js/' },
1820
],
1921
},
22+
{
23+
label: 'Guides',
24+
autogenerate: { directory: 'guides' },
25+
},
2026
{
2127
label: 'Reference',
2228
autogenerate: { directory: 'reference' },

src/assets/houston.webp

-96.2 KB
Binary file not shown.

src/assets/metrics-js-logo.svg

Lines changed: 9 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Collecting to Prometheus
3+
---

src/content/docs/guides/example.md

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Passing through multiple modules
3+
---

src/content/docs/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Welcome to MetricsJS
3+
description: Streaming metrics for Node.js
4+
---
5+

src/content/docs/index.mdx

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)