当前位置:网站首页>[docsify basic use]
[docsify basic use]
2022-06-30 06:57:00 【Little blue man_ nino】
docsify Basic use
One 、 Initialize project
1.1、 Global installation docsify-cli Tools
npm i docsify-cli -g
1.2、 Initialize the document structure
Create a local folder first docs, And then execute the command
docsify init ./docs
The following directory will be generated
-| docs
-| .nojekyll Used to stop Github Pages Files that start with a sliding line are ignored
-| index.html Entrance file
-| README.md Render as home page content
1.3、 Local live preview
docsify serve docs
Default access http://localhost:3000
1. README.md file

2. Preview effect :

Two 、 Customize the navigation bar and sidebar
2.1、script To configure
<script>
window.$docsify = {
name: '',
repo: '',
loadNavbar: true,
loadSidebar: true,
maxLevel: 2,
subMaxLevel: 4,
mergeNvabar: true
}
</script>
1. add to ***_sidebar.md*** File to configure the sidebar
* DOCSIFY Learning notes
* [ One 、 Initialize project ](docsifyUsage/docsifyUsageChapter1.md)
* [ Two 、 Sidebar configuration ](docsifyUsage//docsifyUsageChapter2.md)
2. add to ***_navbar.md*** File to configure the top navigation bar
* Project address
* [GitHub Address ](https://github.com/arenxiaolanz/docsify_study)
* [Gitee Address ](https://gitee.com/ren-nino/docsify_study)
* more
* [ Blog home page ](http://blog.renorchid.xyz/)
3. See the effect

3、 ... and 、 Customize the cover page
1. At the entrance file index.html Add the configuration of the cover page in
<script>
window.$docsify = {
coverpage: true
}
</script>
2. add to _coverpage.md File configuration cover page
<!-- _coverpage.md -->

# my docsify Learning notes <small>1.0.0</small>
> To be proficient in industry and to be idle in play , To do is to think, to do is to follow .
- Simple , Lightweight
- No need to build static htnl file
- Multiple themes
[GitHub](https://github.com/docsifyjs/docsify/)
[Get Started](#docsifyUsage/docsifyUsageChapter1)
3. Check out the cover effect

Four 、 Add full text search
1. Add the configuration of full-text search in the portal file
<script>
window.$docsify = {
search: {
maxAge: 86400000, // Expiration time , Unit millisecond , Default one day
placeholder: 'Type to search',
noData: 'No Results!',
// Maximum level of search title , 1 - 6
depth: 4,
hideOtherSidebarContent: false, // Whether to hide other sidebar content
}
}
</script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
2. View search results

5、 ... and 、 Add code highlights
1. Add the following code to the portal file
<script src="//cdn.jsdelivr.net/npm/[email protected]/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/components/prism-php.min.js"></script>
6、 ... and 、 Add one click Copy code
1. Add the following code to the portal file
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
7、 ... and 、 stay GitHub The document above
1. Submit code to GitHub

2.GitHub Pages Deploy

3. Deployment success ·
Access link :https://arenxiaolanz.github.io/docsify_study/
8、 ... and 、tips, Upload updates
git init
git remote remove origin
git remote add origin [email protected]:arenxiaolanz/docsify_study.git
git add .
git commit -m "completed"
git push -u origin master
边栏推荐
- 手机开户一般哪个证券公司好?还有,在线开户安全么?
- [hot100] palindrome substring and longest palindrome substring
- KEIL - 下载调试出现“TRACE HW not present”
- 原来你是这样的数组,终于学会了
- Go installation and configuration (1)
- tomorrow! "Mobile cloud Cup" competition air publicity will start!
- It turns out that you are such an array. You have finally learned
- Ls1028 manual
- 1.9 - Cache
- Relevant database questions.
猜你喜欢

MySQL中的InnoDB引擎
![[my advanced OpenGL learning journey] about the access methods of vector and matrix classification of OpenGL shaders: xyzw/rgba/stpq and array subscripts](/img/ed/76db436ab5e35fba742dc287402fe3.png)
[my advanced OpenGL learning journey] about the access methods of vector and matrix classification of OpenGL shaders: xyzw/rgba/stpq and array subscripts

1.9 - Classification of memory

First line of code (Third Edition) learning notes
![[JSON tutorial] Chapter 1 learning notes](/img/ce/cf74b396a8bd4c4c7028663b8cb665.png)
[JSON tutorial] Chapter 1 learning notes

Porting RT thread to s5p4418 (II): dynamic memory management

Huawei full-scale Daniel shared the 598 page full-color Manual of network protocols for the first time

Rising posture series: fancy debugging information
![[daily question] 535 Encryption and decryption of tinyurl](/img/73/35674cd5df3d937af0762645041421.png)
[daily question] 535 Encryption and decryption of tinyurl

SOC project AHB_ SD_ Host controller design
随机推荐
The most complete sentence in history
安装setup对应的组件
【我的OpenGL学习进阶之旅】关于OpenGL的着色器的向量和矩阵分类的访问方式: xyzw/rgba/stpq以及数组下标
原来你是这样的数组,终于学会了
leetcode:98. 验证二叉搜索树
Never forget the original intention, and be lazy if you can: C # operate word files
InnoDB engine in MySQL
Vscode returns the previous cursor (previous browse position)
RT thread Kernel Implementation (I): threads and scheduling
史上最全一句话木马
Graphic octet, really top
memcpy内存重叠的解决
神经网络入门
tomorrow! "Mobile cloud Cup" competition air publicity will start!
1.8 - multi level storage
[JSON tutorial] Chapter 1 learning notes
Unity中实现溶解(Dissolve)特效及其原理解析
First line of code (Third Edition) learning notes
sscanf 函数的使用
Practice summary of Prometheus project in amu Laboratory