-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update website using starlight
- Loading branch information
Showing
144 changed files
with
3,554 additions
and
4,893 deletions.
There are no files selected for viewing
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 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,21 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
# build output | ||
dist/ | ||
# generated types | ||
.astro/ | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
node_modules/ | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
# logs | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.pnpm-debug.log* | ||
pnpm-debug.log* | ||
|
||
# local env files | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
# vercel | ||
.vercel | ||
# environment variables | ||
.env | ||
.env.production | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
# macOS-specific files | ||
.DS_Store |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"recommendations": ["astro-build.astro-vscode"], | ||
"unwantedRecommendations": [] | ||
} |
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,11 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"command": "./node_modules/.bin/astro dev", | ||
"name": "Development server", | ||
"request": "launch", | ||
"type": "node-terminal" | ||
} | ||
] | ||
} |
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,34 +1,54 @@ | ||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). | ||
# Starlight Starter Kit: Basics | ||
|
||
## Getting Started | ||
[![Built with Starlight](https://astro.badg.es/v2/built-with-starlight/tiny.svg)](https://starlight.astro.build) | ||
|
||
First, run the development server: | ||
|
||
```bash | ||
npm run dev | ||
# or | ||
yarn dev | ||
``` | ||
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) | ||
[![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) | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun! | ||
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. | ||
## 🚀 Project Structure | ||
|
||
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. | ||
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 | ||
``` | ||
|
||
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. | ||
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. | ||
|
||
## Learn More | ||
Images can be added to `src/assets/` and embedded in Markdown with a relative link. | ||
|
||
To learn more about Next.js, take a look at the following resources: | ||
Static assets, like favicons, can be placed in the `public/` directory. | ||
|
||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
## 🧞 Commands | ||
|
||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! | ||
All commands are run from the root of the project, from a terminal: | ||
|
||
## Deploy on Vercel | ||
| 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 | | ||
|
||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. | ||
## 👀 Want to learn more? | ||
|
||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. | ||
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 was deleted.
Oops, something went wrong.
Empty file.
Empty file.
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,91 @@ | ||
import { defineConfig } from "astro/config"; | ||
import starlight from "@astrojs/starlight"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
integrations: [ | ||
starlight({ | ||
title: "Flutter Distributor", | ||
logo: { | ||
src: "./src/assets/logo.png", | ||
}, | ||
editLink: { | ||
baseUrl: | ||
"https://github.com/leanflutter/flutter_distributor/tree/main/website/", | ||
}, | ||
defaultLocale: "root", | ||
locales: { | ||
root: { | ||
label: "English", | ||
lang: "en", | ||
}, | ||
"zh-hans": { | ||
label: "简体中文", | ||
lang: "zh-hans", | ||
}, | ||
}, | ||
social: { | ||
github: "https://github.com/leanflutter/flutter_distributor", | ||
discord: "https://discord.com/invite/zPa6EZ2jqb", | ||
}, | ||
sidebar: [ | ||
{ | ||
label: "Guides", | ||
translations: { "zh-hans": "指南" }, | ||
items: [ | ||
{ | ||
label: "Getting started", | ||
link: "/getting-started/", | ||
translations: { "zh-hans": "开始" }, | ||
}, | ||
{ | ||
label: "Distribute Options", | ||
link: "/distribute-options/", | ||
translations: { "zh-hans": "分发选项" }, | ||
}, | ||
{ label: "CLI", link: "/cli/" }, | ||
], | ||
}, | ||
{ | ||
label: "Makers", | ||
translations: { "zh-hans": "制作器" }, | ||
items: [ | ||
{ label: "aab", link: "/makers/aab/" }, | ||
{ label: "apk", link: "/makers/apk/" }, | ||
{ label: "appimage", link: "/makers/appimage/" }, | ||
{ label: "deb", link: "/makers/deb/" }, | ||
{ label: "dmg", link: "/makers/dmg/" }, | ||
{ label: "exe", link: "/makers/exe/" }, | ||
{ label: "ipa", link: "/makers/ipa/" }, | ||
{ label: "msix", link: "/makers/msix/" }, | ||
{ label: "pkg", link: "/makers/pkg/" }, | ||
{ label: "rpm", link: "/makers/rpm/" }, | ||
{ label: "zip", link: "/makers/zip/" }, | ||
], | ||
}, | ||
{ | ||
label: "Publishers", | ||
translations: { "zh-hans": "发布器" }, | ||
items: [ | ||
{ label: "appcenter", link: "/publishers/appcenter/" }, | ||
{ label: "appstore", link: "/publishers/appstore/" }, | ||
{ label: "fir", link: "/publishers/fir/" }, | ||
{ label: "firebase", link: "/publishers/firebase/" }, | ||
{ label: "firebase", link: "/publishers/firebase/" }, | ||
{ label: "github", link: "/publishers/github/" }, | ||
{ label: "pgyer", link: "/publishers/pgyer/" }, | ||
{ label: "qiniu", link: "/publishers/qiniu/" }, | ||
{ label: "vercel", link: "/publishers/vercel/" }, | ||
], | ||
}, | ||
{ | ||
label: "Tools", | ||
translations: { "zh-hans": "工具" }, | ||
items: [ | ||
{ label: "Parse App Package", link: "/tools/parse-app-package/" }, | ||
], | ||
}, | ||
], | ||
}), | ||
], | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.