Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Overview
---

<div align="center">

<img src="https://img.alicdn.com/imgextra/i2/O1CN01R6uYoU1VrrET7d1G6_!!6000000002707-0-tps-1292-407.jpg" width="40%" alt="ROLL Logo" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@
"message": "开发者指南",
"description": "The label for category 'Developer Guide' in sidebar 'tutorialSidebar'"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: 概览
---

<div align="center">

<img src="https://img.alicdn.com/imgextra/i2/O1CN01R6uYoU1VrrET7d1G6_!!6000000002707-0-tps-1292-407.jpg" width="40%" alt="ROLL Logo" />
Expand Down
8 changes: 1 addition & 7 deletions docs_roll/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorialSidebar: [
{
type: 'category',
label: 'Overview',
items: [
{ type: 'autogenerated', dirName: 'Overview' }, // 按文件名排序
],
},
'Overview',
{
type: 'category',
label: 'Getting Started',
Expand Down
2 changes: 1 addition & 1 deletion docs_roll/src/components/HomeContent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default () => {
</Translate>
</div>
<div className={styles.buttons}>
<Button href={`${targetPath}docs/Overview/start`} target='_blank' className={styles.btn}>
<Button href={`${targetPath}docs/Overview`} target='_blank' className={styles.btn}>
<Translate>{"Get Started >"}</Translate>
</Button>
<Button className={styles.github} target='_blank' href="https://github.com/alibaba/ROLL" variant="outlined" icon={<GithubOutlined />}>{"Github >"}</Button>
Expand Down
2 changes: 1 addition & 1 deletion docs_roll/src/theme/Navbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function Navbar() {
<Button className={clsx(styles.btn, isHomePage && location.hash === '#research' ? styles.primary : '')} href={`${targetPath}#research`} type="text">
<Translate>Research Community</Translate>
</Button>
<Button className={clsx(styles.btn, !isHomePage ? styles.primary : '')} type="text" href={`${targetPath}docs/Overview/start`}>
<Button className={clsx(styles.btn, !isHomePage ? styles.primary : '')} type="text" href={`${targetPath}docs/Overview`}>
<Translate>API Docs</Translate>
</Button>
<Button className={styles.btn} href='https://github.com/alibaba/ROLL' type="text">Github<ExportOutlined /></Button>
Expand Down
11 changes: 11 additions & 0 deletions docs_roll/src/theme/NotFound/Content/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react';
import { Redirect } from '@docusaurus/router';
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";

export default function NotFoundContent() {
const { i18n } = useDocusaurusContext();
const { currentLocale } = i18n;
const isChinese = currentLocale !== 'en';

return <Redirect to={`/ROLL/${isChinese ? 'zh-Hans/' : ''}docs/Overview`} />;
}
11 changes: 11 additions & 0 deletions docs_roll/src/theme/NotFound/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react';
import { Redirect } from '@docusaurus/router';
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";

export default function Index() {
const { i18n } = useDocusaurusContext();
const { currentLocale } = i18n;
const isChinese = currentLocale !== 'en';

return <Redirect to={`/ROLL/${isChinese ? 'zh-Hans/' : ''}docs/Overview`} />;
}