-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all: 修正类型
- Loading branch information
Showing
52 changed files
with
2,410 additions
and
1,590 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 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 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,36 +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 | ||
.yarn/install-state.gz | ||
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* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
# environment variables | ||
.env | ||
.env.production | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
# macOS-specific files | ||
.DS_Store |
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,5 +1,5 @@ | ||
# AMLL Docs | ||
|
||
AMLL 框架的开发文档页面,使用 Next.js + MDX 编写并部署到 Github Pages。 | ||
AMLL 框架的开发文档页面,使用 Astro + React + MDX 编写并部署到 Github Pages。 | ||
|
||
[查看文档](https://steve-xmh.github.io/applemusic-like-lyrics/zh-CN) |
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,122 @@ | ||
// @ts-check | ||
import starlight from "@astrojs/starlight"; | ||
import { defineConfig } from "astro/config"; | ||
import { createStarlightTypeDocPlugin } from "starlight-typedoc"; | ||
|
||
const [coreStarlightTypeDoc, coreTypeDocSidebarGroup] = | ||
createStarlightTypeDocPlugin(); | ||
const [reactStarlightTypeDoc, reactTypeDocSidebarGroup] = | ||
createStarlightTypeDocPlugin(); | ||
const [vueStarlightTypeDoc, vueTypeDocSidebarGroup] = | ||
createStarlightTypeDocPlugin(); | ||
const [reactFullStarlightTypeDoc, reactFullTypeDocSidebarGroup] = | ||
createStarlightTypeDocPlugin(); | ||
const [lyricStarlightTypeDoc, lyricTypeDocSidebarGroup] = | ||
createStarlightTypeDocPlugin(); | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
base: "applemusic-like-lyrics", | ||
integrations: [ | ||
starlight({ | ||
favicon: "favicon.ico", | ||
title: "Apple Music-like Lyrics", | ||
customCss: ["./src/styles/custom.css"], | ||
locales: { | ||
root: { | ||
label: "简体中文", | ||
lang: "zh-CN", | ||
}, | ||
en: { | ||
label: "English", | ||
lang: "en", | ||
}, | ||
}, | ||
social: { | ||
github: "https://github.com/Steve-xmh/applemusic-like-lyrics", | ||
}, | ||
plugins: [ | ||
coreStarlightTypeDoc({ | ||
entryPoints: ["../core/src/index.ts"], | ||
output: "reference/core", | ||
tsconfig: "../core/tsconfig.json", | ||
sidebar: { | ||
label: "core", | ||
collapsed: true, | ||
}, | ||
typeDoc: { | ||
exclude: ["test.ts"], | ||
}, | ||
}), | ||
reactStarlightTypeDoc({ | ||
entryPoints: ["../react/src/index.ts"], | ||
output: "reference/react", | ||
tsconfig: "../react/tsconfig.json", | ||
sidebar: { | ||
label: "react", | ||
collapsed: true, | ||
}, | ||
}), | ||
vueStarlightTypeDoc({ | ||
entryPoints: ["../vue/src/index.ts"], | ||
output: "reference/vue", | ||
tsconfig: "../vue/tsconfig.json", | ||
sidebar: { | ||
label: "vue", | ||
collapsed: true, | ||
}, | ||
}), | ||
reactFullStarlightTypeDoc({ | ||
entryPoints: ["../react-full/src/index.ts"], | ||
output: "reference/react-full", | ||
tsconfig: "../react-full/tsconfig.json", | ||
sidebar: { | ||
label: "react-full", | ||
collapsed: true, | ||
}, | ||
}), | ||
lyricStarlightTypeDoc({ | ||
entryPoints: ["../lyric/src/types.d.ts"], | ||
output: "reference/lyric", | ||
tsconfig: "../lyric/tsconfig.json", | ||
sidebar: { | ||
label: "lyric", | ||
collapsed: true, | ||
}, | ||
}), | ||
], | ||
sidebar: [ | ||
{ | ||
label: "核心组件", | ||
items: [{ slug: "guides/core/introduction" }], | ||
}, | ||
{ | ||
label: "React 绑定", | ||
items: [ | ||
{ slug: "guides/react/introduction" }, | ||
{ slug: "guides/react/quick-start" }, | ||
{ slug: "guides/react/lyric-player" }, | ||
{ slug: "guides/react/bg-render" }, | ||
], | ||
}, | ||
{ | ||
label: "AMLL TTML Tools", | ||
items: [ | ||
{ slug: "guides/ttml-tools/introduction" }, | ||
{ slug: "guides/ttml-tools/tips" }, | ||
], | ||
}, | ||
{ | ||
label: "接口参考", | ||
items: [ | ||
coreTypeDocSidebarGroup, | ||
reactTypeDocSidebarGroup, | ||
vueTypeDocSidebarGroup, | ||
reactFullTypeDocSidebarGroup, | ||
lyricTypeDocSidebarGroup, | ||
], | ||
}, | ||
], | ||
}), | ||
], | ||
}); |
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,34 +1,22 @@ | ||
{ | ||
"name": "@applemusic-like-lyrics/docs", | ||
"version": "0.1.0", | ||
"private": true, | ||
"type": "module", | ||
"version": "0.0.1", | ||
"scripts": { | ||
"dev": "next dev", | ||
"build": "next build", | ||
"start": "next start", | ||
"lint": "next lint" | ||
"dev": "astro dev", | ||
"start": "astro dev", | ||
"build": "astro build", | ||
"preview": "astro preview", | ||
"astro": "astro" | ||
}, | ||
"dependencies": { | ||
"@mdx-js/loader": "^3.1.0", | ||
"@mdx-js/react": "^3.1.0", | ||
"@next/mdx": "^15.0.3", | ||
"@types/mdx": "^2.0.13", | ||
"classnames": "^2.5.1", | ||
"geist": "^1.3.1", | ||
"highlight.js": "^11.10.0", | ||
"next": "15.0.3", | ||
"next-mdx-remote": "^5.0.0", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"rehype-highlight": "^7.0.1", | ||
"remark-frontmatter": "^5.0.0", | ||
"remark-gfm": "4.0.0", | ||
"remark-mdx-frontmatter": "^5.0.0" | ||
"@astrojs/starlight": "^0.30.4", | ||
"astro": "^5.0.2", | ||
"sharp": "^0.32.5" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^22.9.0", | ||
"@types/react": "^18.3.12", | ||
"@types/react-dom": "^18.3.1", | ||
"typescript": "^5.6.3" | ||
"starlight-typedoc": "^0.18.0", | ||
"typedoc": "^0.26.11", | ||
"typedoc-plugin-markdown": "^4.2.10" | ||
} | ||
} | ||
} |
Oops, something went wrong.