-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update astro to v2 and use content collections for docs
- Loading branch information
Showing
62 changed files
with
245 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,6 @@ typechain-types/ | |
.temp* | ||
|
||
.cache | ||
.vscode | ||
.vscode | ||
|
||
.astro/ |
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,6 @@ | ||
/** @type {import('astro-i18next').AstroI18nextConfig} */ | ||
export default { | ||
defaultLocale: "en", | ||
showDefaultLocale: true, | ||
locales: ["en", "zh"], | ||
} |
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 |
---|---|---|
|
@@ -83,5 +83,8 @@ | |
"infrastructure": { | ||
"introduction": "介绍" | ||
} | ||
}, | ||
"notTranslated": { | ||
"notTranslated": "此页面尚未翻译。" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { defineCollection, z } from "astro:content" | ||
|
||
const docsCollection = defineCollection({ | ||
schema: z.object({ | ||
title: z.string(), | ||
section: z.string(), | ||
}), | ||
}) | ||
|
||
export const collections = { | ||
docs: docsCollection, | ||
} |
1 change: 0 additions & 1 deletion
1
...ges/developers/alpha-testnet-contracts.md → .../en/developers/alpha-testnet-contracts.md
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
1 change: 0 additions & 1 deletion
1
src/pages/developers/developer-quickstart.md → ...ocs/en/developers/developer-quickstart.md
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
1 change: 0 additions & 1 deletion
1
...ethereum-and-alpha-testnet-differences.md → ...ethereum-and-alpha-testnet-differences.md
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
1 change: 0 additions & 1 deletion
1
...rs/guides/contract-deployment-tutorial.md → ...rs/guides/contract-deployment-tutorial.md
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
1 change: 0 additions & 1 deletion
1
src/pages/developers/index.mdx → src/content/docs/en/developers/index.mdx
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,4 @@ | ||
--- | ||
layout: ../../layouts/MainLayout.astro | ||
section: developers | ||
date: Last Modified | ||
title: "Building on Scroll" | ||
|
1 change: 0 additions & 1 deletion
1
src/pages/developers/integrations.md → ...ontent/docs/en/developers/integrations.md
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,4 @@ | ||
--- | ||
layout: ../../layouts/MainLayout.astro | ||
section: developers | ||
date: Last Modified | ||
title: "" | ||
|
1 change: 0 additions & 1 deletion
1
src/pages/getting-started/overview.md → ...ntent/docs/en/getting-started/overview.md
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,4 @@ | ||
--- | ||
layout: ../../layouts/MainLayout.astro | ||
section: gettingStarted | ||
date: Last Modified | ||
title: "Scroll Overview" | ||
|
9 changes: 4 additions & 5 deletions
9
src/pages/learn/index.mdx → src/content/docs/en/learn/index.mdx
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
1 change: 0 additions & 1 deletion
1
src/pages/technology/index.mdx → src/content/docs/en/technology/index.mdx
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,4 @@ | ||
--- | ||
layout: ../../layouts/MainLayout.astro | ||
section: technology | ||
title: "Technology Landing Page" | ||
lang: "en" | ||
|
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
1 change: 0 additions & 1 deletion
1
src/pages/user-guide/common-errors.md → ...ntent/docs/en/user-guide/common-errors.md
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,4 @@ | ||
--- | ||
layout: ../../layouts/MainLayout.astro | ||
section: gettingStarted | ||
date: Last Modified | ||
title: "Common Errors" | ||
|
1 change: 0 additions & 1 deletion
1
src/pages/user-guide/faucet.md → src/content/docs/en/user-guide/faucet.md
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,4 @@ | ||
--- | ||
layout: ../../layouts/MainLayout.astro | ||
section: gettingStarted | ||
date: Last Modified | ||
title: "Faucet" | ||
|
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
1 change: 0 additions & 1 deletion
1
src/pages/user-guide/index.md → src/content/docs/en/user-guide/index.md
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
1 change: 0 additions & 1 deletion
1
src/pages/user-guide/setup.md → src/content/docs/en/user-guide/setup.md
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,4 @@ | ||
--- | ||
layout: ../../layouts/MainLayout.astro | ||
section: gettingStarted | ||
date: Last Modified | ||
title: "Setup" | ||
|
1 change: 0 additions & 1 deletion
1
src/pages/user-guide/transfer-tokens.md → ...ent/docs/en/user-guide/transfer-tokens.md
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,4 @@ | ||
--- | ||
layout: ../../layouts/MainLayout.astro | ||
section: gettingStarted | ||
date: Last Modified | ||
title: "Transfer Tokens" | ||
|
1 change: 0 additions & 1 deletion
1
.../zh/developers/alpha-testnet-contracts.md → .../zh/developers/alpha-testnet-contracts.md
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,4 @@ | ||
--- | ||
layout: ../../../layouts/MainLayout.astro | ||
section: developers | ||
date: Last Modified | ||
title: "Alpha 测试网合约" | ||
|
1 change: 0 additions & 1 deletion
1
...ges/zh/developers/developer-quickstart.md → ...ocs/zh/developers/developer-quickstart.md
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,4 @@ | ||
--- | ||
layout: ../../../layouts/MainLayout.astro | ||
section: developers | ||
date: Last Modified | ||
title: "开发人员快速入门" | ||
|
1 change: 0 additions & 1 deletion
1
...ethereum-and-alpha-testnet-differences.md → ...ethereum-and-alpha-testnet-differences.md
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
1 change: 0 additions & 1 deletion
1
...rs/guides/contract-deployment-tutorial.md → ...rs/guides/contract-deployment-tutorial.md
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,4 @@ | ||
--- | ||
layout: ../../../../layouts/MainLayout.astro | ||
section: developers | ||
date: Last Modified | ||
title: "合约部署教程" | ||
|
1 change: 0 additions & 1 deletion
1
src/pages/zh/developers/index.mdx → src/content/docs/zh/developers/index.mdx
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,4 @@ | ||
--- | ||
layout: ../../../layouts/MainLayout.astro | ||
section: developers | ||
date: Last Modified | ||
title: "在Scroll上构建" | ||
|
1 change: 0 additions & 1 deletion
1
src/pages/zh/developers/integrations.md → ...ontent/docs/zh/developers/integrations.md
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,4 @@ | ||
--- | ||
layout: ../../../layouts/MainLayout.astro | ||
section: developers | ||
date: Last Modified | ||
title: "" | ||
|
1 change: 0 additions & 1 deletion
1
src/pages/zh/getting-started/overview.md → ...ntent/docs/zh/getting-started/overview.md
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,4 @@ | ||
--- | ||
layout: ../../../layouts/MainLayout.astro | ||
section: gettingStarted | ||
date: Last Modified | ||
title: "Scroll 概述" | ||
|
9 changes: 4 additions & 5 deletions
9
src/pages/zh/learn/index.mdx → src/content/docs/zh/learn/index.mdx
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
1 change: 0 additions & 1 deletion
1
src/pages/zh/user-guide/common-errors.md → ...ntent/docs/zh/user-guide/common-errors.md
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,4 @@ | ||
--- | ||
layout: ../../../layouts/MainLayout.astro | ||
section: gettingStarted | ||
date: Last Modified | ||
title: "常见错误" | ||
|
1 change: 0 additions & 1 deletion
1
src/pages/zh/user-guide/faucet.md → src/content/docs/zh/user-guide/faucet.md
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,4 @@ | ||
--- | ||
layout: ../../../layouts/MainLayout.astro | ||
section: gettingStarted | ||
date: Last Modified | ||
title: "水龙头" | ||
|
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
1 change: 0 additions & 1 deletion
1
src/pages/zh/user-guide/index.md → src/content/docs/zh/user-guide/index.md
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
1 change: 0 additions & 1 deletion
1
src/pages/zh/user-guide/setup.md → src/content/docs/zh/user-guide/setup.md
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,4 @@ | ||
--- | ||
layout: ../../../layouts/MainLayout.astro | ||
section: gettingStarted | ||
date: Last Modified | ||
title: "设置" | ||
|
1 change: 0 additions & 1 deletion
1
src/pages/zh/user-guide/transfer-tokens.md → ...ent/docs/zh/user-guide/transfer-tokens.md
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,4 @@ | ||
--- | ||
layout: ../../../layouts/MainLayout.astro | ||
section: gettingStarted | ||
date: Last Modified | ||
title: "转移代币" | ||
|
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 +1,2 @@ | ||
/// <reference path="../.astro/types.d.ts" /> | ||
/// <reference types="@astrojs/image/client" /> |
Oops, something went wrong.