Skip to content

Commit

Permalink
chore: Update website using starlight
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Dec 19, 2023
1 parent 8ee0241 commit 9f62355
Show file tree
Hide file tree
Showing 144 changed files with 3,554 additions and 4,893 deletions.
4 changes: 2 additions & 2 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[visits-count-image]: https://img.shields.io/badge/dynamic/json?label=Visits%20Count&query=value&url=https://api.countapi.xyz/hit/leanflutter.flutter_distributor/visits
[all-contributors-image]: https://img.shields.io/github/all-contributors/leanflutter/flutter_distributor?color=ee8449&style=flat-square

一个完整的工具,用于打包和发布您的 [Flutter](https://flutter.dev) 应用
一款全能的 [Flutter](https://flutter.dev) 应用打包和发布工具,为您提供一站式解决方案,满足各种分发需求

---

Expand All @@ -19,7 +19,7 @@

## 文档

完整的文档可以在 [distributor.leanflutter.org](https://distributor.leanflutter.org/zh) 上找到。
完整的文档可以在 [distributor.leanflutter.org](https://distributor.leanflutter.dev/zh-hans) 上找到。

## 功能

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[visits-count-image]: https://img.shields.io/badge/dynamic/json?label=Visits%20Count&query=value&url=https://api.countapi.xyz/hit/leanflutter.flutter_distributor/visits
[all-contributors-image]: https://img.shields.io/github/all-contributors/leanflutter/flutter_distributor?color=ee8449&style=flat-square

A complete tool for packaging and publishing your [Flutter](https://flutter.dev) apps.
An all-in-one [Flutter](https://flutter.dev) application packaging and distribution tool, providing you with a one-stop solution to meet various distribution needs.

---

Expand All @@ -19,7 +19,7 @@ English | [简体中文](./README-ZH.md)

## Documentation

The full documentation can be found on [distributor.leanflutter.org](https://distributor.leanflutter.org/).
The full documentation can be found on [distributor.leanflutter.dev](https://distributor.leanflutter.org/).

## Features

Expand Down
3 changes: 0 additions & 3 deletions docs/en/makers/README.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/en/publishers/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/zh/makers/README.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/zh/publishers/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions website/.eslintrc.json

This file was deleted.

41 changes: 12 additions & 29 deletions website/.gitignore
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
3 changes: 0 additions & 3 deletions website/.prettierignore

This file was deleted.

4 changes: 4 additions & 0 deletions website/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions website/.vscode/launch.json
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"
}
]
}
60 changes: 40 additions & 20 deletions website/README.md
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).
1 change: 0 additions & 1 deletion website/_source/.gitignore

This file was deleted.

Empty file removed website/_source/en/.gitkeep
Empty file.
Empty file removed website/_source/zh/.gitkeep
Empty file.
91 changes: 91 additions & 0 deletions website/astro.config.mjs
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/" },
],
},
],
}),
],
});
22 changes: 0 additions & 22 deletions website/components/HomePage/HomePage.tsx

This file was deleted.

Loading

0 comments on commit 9f62355

Please sign in to comment.