chuyaoyuan

初始代码
This commit is contained in:
2021-04-26 14:42:20 +08:00
parent 580692bda5
commit 10df53d012
15 changed files with 14960 additions and 32 deletions
-1
View File
@@ -1 +0,0 @@
!build/
+1 -1
View File
@@ -4,7 +4,7 @@ title: Hola
author: Gao Wei
author_title: Docusaurus Core Team
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]
---
+1 -1
View File
@@ -4,7 +4,7 @@ title: Hello
author: Endilie Yacop Sucipto
author_title: Maintainer of Docusaurus
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]
---
+7 -7
View File
@@ -1,13 +1,13 @@
---
slug: welcome
title: Welcome
author: Yangshun Tay
author_title: Front End Engineer @ Facebook
author_url: https://github.com/yangshun
author_image_url: https://avatars0.githubusercontent.com/u/1315101?s=400&v=4
tags: [facebook, hello, docusaurus]
author: yaoyuan chu
author_title: chuyaoyuan @ null
author_url: https://github.com/chuyaoyuan
author_image_url: https://s3.ax1x.com/2021/02/26/6SEr4g.jpg
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!
如果您不想使用博客功能,请删除整个目录。就这么简单!
+4
View File
@@ -0,0 +1,4 @@
{
"label": "LeetCode刷题",
"position": 3
}
+35
View File
@@ -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.
+35
View File
@@ -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.
+2 -2
View File
@@ -1,4 +1,4 @@
{
"label": "Tutorial - Basics",
"position": 2
"label": "文档教程 - 基础",
"position": 4
}
+2 -2
View File
@@ -1,4 +1,4 @@
{
"label": "Tutorial - Extras",
"position": 3
"label": "文档教程 - 高级",
"position": 5
}
+4
View File
@@ -0,0 +1,4 @@
{
"label": "技术文档(后端)",
"position": 2
}
@@ -2,7 +2,7 @@
sidebar_position: 1
---
# Tutorial Intro
# 说明
Let's discover **Docusaurus in less than 5 minutes**.
+22 -14
View File
@@ -1,31 +1,39 @@
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'My Site',
tagline: 'Dinosaurs are cool',
url: 'https://your-docusaurus-test-site.com',
title: 'CodeDocs 编程文档',
tagline: 'CodeDocs 编程文档 -- 这是一些技术人的编程文档',
url: 'http://docs.yaoyuan.io/',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
organizationName: 'chuyaoyuan', // Usually your GitHub org/user name.
projectName: 'code-docs', // Usually your repo name.
i18n: {
defaultLocale: 'zh-cn',
locales: ['zh-cn','en'],
},
themeConfig: {
navbar: {
title: 'My Site',
title: 'CodeDocs 编程文档',
logo: {
alt: 'My Site Logo',
alt: 'CodeDocs 编程文档',
src: 'img/logo.svg',
},
items: [
{
type: 'doc',
docId: 'intro',
docId: 'intro-docs',
position: 'left',
label: 'Tutorial',
label: 'Docs',
},
{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',
position: 'right',
},
@@ -48,15 +56,15 @@ module.exports = {
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
href: 'https://stackoverflow.com/',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
href: 'https://discordapp.com/',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
href: 'https://twitter.com/',
},
],
},
@@ -69,7 +77,7 @@ module.exports = {
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
href: 'https://github.com/chuyaoyuan/code-docs',
},
],
},
+14843
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -33,4 +33,4 @@
"last 1 safari version"
]
}
}
}
+2 -2
View File
@@ -16,8 +16,8 @@ function HomepageHeader() {
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro">
Docusaurus Tutorial - 5min
to="/docs/intro-docs">
Code Docs 介绍 - 1min
</Link>
</div>
</div>