From 936424049a5ad11029a54666a917eafa091aaeed Mon Sep 17 00:00:00 2001 From: "yaoyuan2.chu" Date: Mon, 26 Apr 2021 21:09:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 代码提交 --- blog/2021-04-26-use-code-docs.md | 31 +++++++++++++++++++++++++++++++ docusaurus.config.js | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 blog/2021-04-26-use-code-docs.md diff --git a/blog/2021-04-26-use-code-docs.md b/blog/2021-04-26-use-code-docs.md new file mode 100644 index 0000000..a7e537f --- /dev/null +++ b/blog/2021-04-26-use-code-docs.md @@ -0,0 +1,31 @@ +--- +slug: use-code-docs +title: 使用VS Code写一篇文档 +author: chuyaoyuan +author_title: cyy +author_url: https://github.com/chuyaoyuan +author_image_url: https://s3.ax1x.com/2021/02/26/6SEr4g.jpg +tags: [hello, chuyaoyuan] +--- + +Welcome to this site. This site is created . +欢迎来到这里。code-docs + +### 使用 + +1. [Git](https://git-scm.com/downloads)_.Git安装 +1. [Node](https://nodejs.org/en/download/) (version 12 or greater)_.Node版本在12以上 +1. [https://github.com/Chuyaoyuan/code-docs.git](https://github.com/Chuyaoyuan/code-docs.git) (git pull)_.使用Git下载代码 +1. 在工程目录下安装Node依赖. +```bash +npm install 或 cnpm install +``` +5. 运行一下. +```bash +npm run serve +``` +### VS Code编辑 + +1. `file-open` 打开编辑器,开始编写之旅. + [![gp1R61.png](https://z3.ax1x.com/2021/04/26/gp1R61.png)](http://docs.yaoyuan.io) +1. `done` 结束. diff --git a/docusaurus.config.js b/docusaurus.config.js index f8b0c90..b8a4bf0 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -95,7 +95,7 @@ module.exports = { ], }, ], - copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, + copyright: `Copyright © ${new Date().getFullYear()} Code Docs, Inc. Built with Docusaurus.`, }, }, presets: [