Merge pull request #5 from Chuyaoyuan/main

Docsearch
This commit is contained in:
2021-04-28 21:04:36 -05:00
committed by GitHub
12 changed files with 88 additions and 4 deletions
+2
View File
@@ -106,3 +106,5 @@ dist
.docusaurus
build
.idea
+1 -1
View File
@@ -34,7 +34,7 @@
```
## [三]、运行启动(默认使用H2数据库,可以在配置文件切换MYSQL)
## [三]、运行启动
```
// 1、代码导入IDE
+1 -1
View File
@@ -1,4 +1,4 @@
{
"label": "LeetCode刷题",
"position": 3
"position": 4
}
+1 -1
View File
@@ -1,4 +1,4 @@
{
"label": "文档教程 - 基础",
"position": 4
"position": 14
}
+1 -1
View File
@@ -1,4 +1,4 @@
{
"label": "文档教程 - 高级",
"position": 5
"position": 15
}
@@ -0,0 +1,4 @@
{
"label": "React系列",
"position": 3
}
@@ -0,0 +1,12 @@
---
sidebar_position: 1
---
# Hello React
```shell
Hello React
```
@@ -0,0 +1,4 @@
{
"label": "Vue系列",
"position": 2
}
@@ -0,0 +1,12 @@
---
sidebar_position: 1
---
# Hello Vue
```shell
Hello Vue
```
+4
View File
@@ -0,0 +1,4 @@
{
"label": "技术文档(前端)",
"position": 3
}
+35
View File
@@ -0,0 +1,35 @@
---
sidebar_position: 1
---
# 技术文档前端说明
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.
+11
View File
@@ -14,6 +14,17 @@ module.exports = {
locales: ['zh-cn','en'],
},
themeConfig: {
algolia: {
apiKey: '204335ce5ba2700fd04046b290498627',
indexName: 'code-docs',
// Optional: see doc section below
contextualSearch: true,
// Optional: see doc section below
appId: 'D8PEAPGLZ3',
// Optional: Algolia search parameters
searchParameters: {},
//... other Algolia params
},
navbar: {
title: 'CodeDocs 编程文档',
logo: {