chuyaoyuan
初始代码
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
!build/
|
|
||||||
@@ -4,7 +4,7 @@ title: Hola
|
|||||||
author: Gao Wei
|
author: Gao Wei
|
||||||
author_title: Docusaurus Core Team
|
author_title: Docusaurus Core Team
|
||||||
author_url: https://github.com/wgao19
|
author_url: https://github.com/wgao19
|
||||||
author_image_url: https://avatars1.githubusercontent.com/u/2055384?v=4
|
author_image_url: https://s3.ax1x.com/2021/02/26/6SEr4g.jpg
|
||||||
tags: [hola, docusaurus]
|
tags: [hola, docusaurus]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ title: Hello
|
|||||||
author: Endilie Yacop Sucipto
|
author: Endilie Yacop Sucipto
|
||||||
author_title: Maintainer of Docusaurus
|
author_title: Maintainer of Docusaurus
|
||||||
author_url: https://github.com/endiliey
|
author_url: https://github.com/endiliey
|
||||||
author_image_url: https://avatars1.githubusercontent.com/u/17883920?s=460&v=4
|
author_image_url: https://s3.ax1x.com/2021/02/26/6SEr4g.jpg
|
||||||
tags: [hello, docusaurus]
|
tags: [hello, docusaurus]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
---
|
---
|
||||||
slug: welcome
|
slug: welcome
|
||||||
title: Welcome
|
title: Welcome
|
||||||
author: Yangshun Tay
|
author: yaoyuan chu
|
||||||
author_title: Front End Engineer @ Facebook
|
author_title: chuyaoyuan @ null
|
||||||
author_url: https://github.com/yangshun
|
author_url: https://github.com/chuyaoyuan
|
||||||
author_image_url: https://avatars0.githubusercontent.com/u/1315101?s=400&v=4
|
author_image_url: https://s3.ax1x.com/2021/02/26/6SEr4g.jpg
|
||||||
tags: [facebook, hello, docusaurus]
|
tags: [codedocs, hello, chuyaoyuan]
|
||||||
---
|
---
|
||||||
|
|
||||||
Blog features are powered by the blog plugin. Simply add files to the `blog` directory. It supports tags as well!
|
博客功能是由博客插件提供的。只需将文件添加到“博客”目录。它也支持标签!
|
||||||
|
|
||||||
Delete the whole directory if you don't want the blog features. As simple as that!
|
如果您不想使用博客功能,请删除整个目录。就这么简单!
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"label": "LeetCode刷题",
|
||||||
|
"position": 3
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
sidebar_position: 1
|
||||||
|
---
|
||||||
|
|
||||||
|
# LeetCode 刷题介绍
|
||||||
|
|
||||||
|
Let's discover **Docusaurus in less than 5 minutes**.
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
Get started by **creating a new site**.
|
||||||
|
|
||||||
|
Or **try Docusaurus immediately** with **[new.docusaurus.io](https://new.docusaurus.io)**.
|
||||||
|
|
||||||
|
## Generate a new site
|
||||||
|
|
||||||
|
Generate a new Docusaurus site using the **classic template**:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
npx @docusaurus/init@latest init my-website classic
|
||||||
|
```
|
||||||
|
|
||||||
|
## Start your site
|
||||||
|
|
||||||
|
Run the development server:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cd my-website
|
||||||
|
|
||||||
|
npx docusaurus start
|
||||||
|
```
|
||||||
|
|
||||||
|
Your site starts at `http://localhost:3000`.
|
||||||
|
|
||||||
|
Open `docs/getting-started.md` and edit some lines: the site **reloads automatically** and display your changes.
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
sidebar_position: 1
|
||||||
|
---
|
||||||
|
|
||||||
|
# Code Docs 介绍
|
||||||
|
|
||||||
|
Let's discover **Docusaurus in less than 5 minutes**.
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
Get started by **creating a new site**.
|
||||||
|
|
||||||
|
Or **try Docusaurus immediately** with **[new.docusaurus.io](https://new.docusaurus.io)**.
|
||||||
|
|
||||||
|
## Generate a new site
|
||||||
|
|
||||||
|
Generate a new Docusaurus site using the **classic template**:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
npx @docusaurus/init@latest init my-website classic
|
||||||
|
```
|
||||||
|
|
||||||
|
## Start your site
|
||||||
|
|
||||||
|
Run the development server:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cd my-website
|
||||||
|
|
||||||
|
npx docusaurus start
|
||||||
|
```
|
||||||
|
|
||||||
|
Your site starts at `http://localhost:3000`.
|
||||||
|
|
||||||
|
Open `docs/getting-started.md` and edit some lines: the site **reloads automatically** and display your changes.
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Tutorial - Basics",
|
"label": "文档教程 - 基础",
|
||||||
"position": 2
|
"position": 4
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Tutorial - Extras",
|
"label": "文档教程 - 高级",
|
||||||
"position": 3
|
"position": 5
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"label": "技术文档(后端)",
|
||||||
|
"position": 2
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
# Tutorial Intro
|
# 说明
|
||||||
|
|
||||||
Let's discover **Docusaurus in less than 5 minutes**.
|
Let's discover **Docusaurus in less than 5 minutes**.
|
||||||
|
|
||||||
+22
-14
@@ -1,31 +1,39 @@
|
|||||||
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
title: 'My Site',
|
title: 'CodeDocs 编程文档',
|
||||||
tagline: 'Dinosaurs are cool',
|
tagline: 'CodeDocs 编程文档 -- 这是一些技术人的编程文档',
|
||||||
url: 'https://your-docusaurus-test-site.com',
|
url: 'http://docs.yaoyuan.io/',
|
||||||
baseUrl: '/',
|
baseUrl: '/',
|
||||||
onBrokenLinks: 'throw',
|
onBrokenLinks: 'throw',
|
||||||
onBrokenMarkdownLinks: 'warn',
|
onBrokenMarkdownLinks: 'warn',
|
||||||
favicon: 'img/favicon.ico',
|
favicon: 'img/favicon.ico',
|
||||||
organizationName: 'facebook', // Usually your GitHub org/user name.
|
organizationName: 'chuyaoyuan', // Usually your GitHub org/user name.
|
||||||
projectName: 'docusaurus', // Usually your repo name.
|
projectName: 'code-docs', // Usually your repo name.
|
||||||
|
i18n: {
|
||||||
|
defaultLocale: 'zh-cn',
|
||||||
|
locales: ['zh-cn','en'],
|
||||||
|
},
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
navbar: {
|
navbar: {
|
||||||
title: 'My Site',
|
title: 'CodeDocs 编程文档',
|
||||||
logo: {
|
logo: {
|
||||||
alt: 'My Site Logo',
|
alt: 'CodeDocs 编程文档',
|
||||||
src: 'img/logo.svg',
|
src: 'img/logo.svg',
|
||||||
},
|
},
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
type: 'doc',
|
type: 'doc',
|
||||||
docId: 'intro',
|
docId: 'intro-docs',
|
||||||
position: 'left',
|
position: 'left',
|
||||||
label: 'Tutorial',
|
label: 'Docs',
|
||||||
},
|
},
|
||||||
{to: '/blog', label: 'Blog', position: 'left'},
|
{to: '/blog', label: 'Blog', position: 'left'},
|
||||||
{
|
{
|
||||||
href: 'https://github.com/facebook/docusaurus',
|
type: 'localeDropdown',
|
||||||
|
position: 'right',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
href: 'https://github.com/chuyaoyuan/code-docs',
|
||||||
label: 'GitHub',
|
label: 'GitHub',
|
||||||
position: 'right',
|
position: 'right',
|
||||||
},
|
},
|
||||||
@@ -48,15 +56,15 @@ module.exports = {
|
|||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
label: 'Stack Overflow',
|
label: 'Stack Overflow',
|
||||||
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
|
href: 'https://stackoverflow.com/',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Discord',
|
label: 'Discord',
|
||||||
href: 'https://discordapp.com/invite/docusaurus',
|
href: 'https://discordapp.com/',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Twitter',
|
label: 'Twitter',
|
||||||
href: 'https://twitter.com/docusaurus',
|
href: 'https://twitter.com/',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -69,7 +77,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'GitHub',
|
label: 'GitHub',
|
||||||
href: 'https://github.com/facebook/docusaurus',
|
href: 'https://github.com/chuyaoyuan/code-docs',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Generated
+14843
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -16,8 +16,8 @@ function HomepageHeader() {
|
|||||||
<div className={styles.buttons}>
|
<div className={styles.buttons}>
|
||||||
<Link
|
<Link
|
||||||
className="button button--secondary button--lg"
|
className="button button--secondary button--lg"
|
||||||
to="/docs/intro">
|
to="/docs/intro-docs">
|
||||||
Docusaurus Tutorial - 5min ⏱️
|
Code Docs 介绍 - 1min ⏱️
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user