当前位置:网站首页>Dumi builds a document blog
Dumi builds a document blog
2022-06-12 18:39:00 【Cun Yuyao】
Preface
I have already talked about how to use various open source frameworks on the Internet to build my own blog , such as docsify
、Hexo
、VuePress
、Halo
etc. . The first three can be matched directly Github
You can get your own blog for free , and Halo
You may need to have your own server , Then deploy the service in your own server .
When surfing the Internet recently , Found another documentation tool , That's it dumi
. Pronounce from Chinese pinyin , Namely Du mi . This is a documentation tool for developing scenarios for components , and father
Form a one-stop service .father
Responsible for building ,dumi
Is responsible for component development and generation of component documents , Together, it provides developers with a one-stop component development experience .
Let's have a look today , How to use it dumi
Build your own document based website .
dumi characteristic
Now that we need to use it dumi
, First, let's take a look at some of its features , It can be summarized as follows :
- Open the box , We just need to focus on component development and documentation .
- rich
Markdown
Expand , Not just rendering componentsdemo
. - be based on
TypeScript
The type definition , Can automatically generate componentsAPI
. - Support custom theme , You can also create your own
Markdown
Components . - Support mobile component library , The built-in mobile terminal makes money rendering scheme .
- One line command to complete the component asset digitization , Cascade downstream productivity tools .
Set up process
Primary preparation
Now that it's all said dumi
Is based on TypeScript
The type definition , How can I leave Node.js
Well ? therefore , Before the formal construction process , You have to make sure that your computer has Node.js
, And make sure that its version is not lower than 10.13
.
If you have already installed Node.js
, But I'm not sure about the version , Then use the following command to view .
node -v
Scaffold initialization
dumi
Two ways of initializing scaffolding are supported , One is component development scaffolding , The other is static site scaffold , This article mainly introduces how to use components to develop scaffolding .
Component development scaffolding includes more than dumi
And basic documentation , It also contains a simple component 、umi-test
and father-build
, It can easily realize component development 、 Documentation 、 Test case writing 、 The whole process of component packaging .
Create an empty folder locally , Easy to manage scaffolding , Then develop scaffolding in the component library that initializes a document pattern .
mkdir dumi-demo
cd dumi-demo
npx @umijs/create-dumi-lib
After initialization , Execute the following command , Then open in the browser http://localhost:8080
You can preview .
npx dumi dev
Document
Check out our project catalog , You can find docs
file , This is where we write the documentation . On project initialization , Only by default index.md
That is, we visited http://localhost:8080
What is called rendered in the page .
Then we are docs
Add and modify in the directory Markdown
file , It will help us automatically render to the front page .
summary
That's the use dumi
The specific process of building a document based website . Of course , Besides being a blog , We can also use it to develop front-end components , Keep adding new features to your site !
边栏推荐
- wireshark基本使用命令
- Basic SQL statement - select (single table query)
- To understand Devops, you must read these ten books!
- Gospel of audio and video developers, rapid integration of AI dubbing capability
- General differences between SQL server versions released by Microsoft in different periods so far, for reference
- Review of MySQL (VIII): Transactions
- CVPR 2022 Oral 大连理工提出SCI:快速、超强的低光照图像增强方法
- Problems that the sap Spartacus e-commerce cloud UI shipping method does not display in the unit test environment
- lua记录
- Common methods and examples of defect detection based on Halcon
猜你喜欢
The difference between user status and system status in CRM
Gd32f4xx controls dgus variable display
General differences between SQL server versions released by Microsoft in different periods so far, for reference
Free measurement of rectangular card [manual drawing ROI] Based on Halcon
VirtualLab basic experiment tutorial -5 Poisson bright spot
PHP:Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocat
leetcode:6094. 公司命名【分组枚举 + 不能重复用set交集 + product笛卡儿积(repeat表示长度)】
C language practice (4) -- multiplication and division of large numbers
干货 | 一文搞定 pytest 自动化测试框架(二)
Mise en œuvre de l'ACL réflexe dans le simulateur Cisco Cisco Packet Tracer
随机推荐
Basic SQL statement - select (single table query)
吃饭咯 干锅肥肠 + 掌中宝!
实验10 Bezier曲线生成-实验提高-控制点生成B样条曲线
GD32F4xx控制DGUS 变量显示
In 2021, the global spice and seasoning revenue is about 18720million US dollars, and it is expected to reach 25960million US dollars in 2028
leetcode:6096. 咒语和药水的成功对数【排序 + 二分】
MYSQL:Expression #4 of SELECT list is not in GROUP BY clause and contains nonaggregated column
Typescript common types (I)
Leetcode topic [string]-541- reverse string II
yoloe 目标检测使用笔记
Free measurement of rectangular card [manual drawing ROI] Based on Halcon
Gospel of audio and video developers, rapid integration of AI dubbing capability
01 complexity
VirtualLab基础实验教程-6.闪耀光栅
【0008】无序列表
基于Halcon的矩形卡片【手动绘制ROI】的自由测量
间隔两个月,我的第二次上榜纪念日【2022.6.2】
Gd32f4xx communicates with electric energy meter conforming to dlt645_ two
Self made calculator (1 realized by Boolean logic operation unit and control unit programming)
Implementing reflexive ACL in Cisco packet tracker