-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adopt Astro Starlight template for docs website (#189)
* feat: adopt astro starlight * chore: remove website npm lockfile * docs: fix markdown
- Loading branch information
1 parent
f5a7c82
commit dbe1cb1
Showing
39 changed files
with
2,724 additions
and
1,967 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,53 @@ | ||
# Welcome to [Astro](https://astro.build) | ||
# Starlight Starter Kit: Basics | ||
|
||
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics) | ||
[![Built with Starlight](https://astro.badg.es/v2/built-with-starlight/tiny.svg)](https://starlight.astro.build) | ||
|
||
``` | ||
npm create astro@latest -- --template starlight | ||
``` | ||
|
||
[![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) | ||
|
||
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun! | ||
## 🚀 Project Structure | ||
|
||
Inside of your Astro project, you'll see the following folders and files: | ||
Inside of your Astro + Starlight project, you'll see the following folders and files: | ||
|
||
``` | ||
/ | ||
. | ||
├── public/ | ||
│ └── favicon.svg | ||
├── src/ | ||
│ ├── components/ | ||
│ │ └── Card.astro | ||
│ ├── layouts/ | ||
│ │ └── Layout.astro | ||
│ └── pages/ | ||
│ └── index.astro | ||
└── package.json | ||
│ ├── assets/ | ||
│ ├── content/ | ||
│ │ ├── docs/ | ||
│ │ └── config.ts | ||
│ └── env.d.ts | ||
├── astro.config.mjs | ||
├── package.json | ||
└── tsconfig.json | ||
``` | ||
|
||
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. | ||
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. | ||
|
||
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. | ||
Images can be added to `src/assets/` and embedded in Markdown with a relative link. | ||
|
||
Any static assets, like images, can be placed in the `public/` directory. | ||
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:3000` | | ||
| `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 preview` | | ||
| `npm run astro --help` | Get help using the Astro CLI | | ||
| 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? | ||
|
||
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). | ||
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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { defineConfig } from "astro/config"; | ||
import starlight from "@astrojs/starlight"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
site: "https://react-awesome-reveal.morello.dev", | ||
integrations: [ | ||
starlight({ | ||
title: "React Awesome Reveal", | ||
social: { | ||
email: "mailto:[email protected]", | ||
github: "https://github.com/morellodev/react-awesome-reveal", | ||
linkedin: "https://www.linkedin.com/in/dennismorello", | ||
"x.com": "https://x.com/morellodev", | ||
}, | ||
sidebar: [ | ||
{ | ||
label: "Guides", | ||
autogenerate: { directory: "guides" }, | ||
}, | ||
], | ||
}), | ||
], | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,20 @@ | ||
{ | ||
"name": "website", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"dev": "astro dev", | ||
"start": "astro dev", | ||
"build": "astro build", | ||
"build": "astro check && astro build", | ||
"preview": "astro preview", | ||
"astro": "astro", | ||
"lint": "eslint .", | ||
"lint:fix": "eslint --fix ." | ||
}, | ||
"devDependencies": { | ||
"@astrojs/sitemap": "^1.2.2", | ||
"@astrojs/tailwind": "^3.1.2", | ||
"@fec/remark-a11y-emoji": "^3.1.0", | ||
"@tailwindcss/typography": "^0.5.9", | ||
"astro": "^2.3.4", | ||
"eslint-plugin-tailwindcss": "^3.11.0", | ||
"rehype-external-links": "^2.0.1", | ||
"rehype-slug": "^5.1.0", | ||
"remark-emoji": "^3.1.1", | ||
"tailwindcss": "^3.3.2" | ||
"astro": "astro" | ||
}, | ||
"dependencies": { | ||
"astro-icon": "^0.8.0", | ||
"fp-ts": "^2.14.0" | ||
"@astrojs/check": "^0.2.1", | ||
"@astrojs/starlight": "^0.11.2", | ||
"astro": "^3.2.3", | ||
"sharp": "^0.32.5", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# * | ||
User-agent: * | ||
Allow: / | ||
Sitemap: https://react-awesome-reveal.morello.dev/sitemap-index.xml | ||
|
||
# Host | ||
Host: https://react-awesome-reveal.morello.dev | ||
|
||
# Sitemaps | ||
Sitemap: https://react-awesome-reveal.morello.dev/sitemap-index.xml |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
dbe1cb1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
react-awesome-reveal – ./
react-awesome-reveal.morello.dev
react-awesome-reveal-morellodev.vercel.app
react-awesome-reveal-git-main-morellodev.vercel.app