当前位置:网站首页>Dumi builds a document blog
Dumi builds a document blog
2022-06-13 04:06: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 !
边栏推荐
- Introduction to RFM analysis
- Lambda termination operation Max & min
- Student management system
- Differences and relations between three-tier architecture and MVC
- Solution to failure to download files by wechat scanning QR code
- 单片机/嵌入式的实时性疑问解答
- ET框架-22 创建ServerInfo实体及事件
- Call C function in Lua
- USB-IF BC1.2充电协议解读
- 不卷了!团队又一位成员离职了。。
猜你喜欢
单片机:Modbus 通信协议介绍
[notes] summarize common horizontal and vertical centering methods
Call C function in Lua
SCM signal generator program
R: Employee turnover forecast practice
Single chip microcomputer: basic concepts of a/d and d/a
手机私有充电协议解读
单片机:RS485 通信与 Modbus 协议
Data analysis report
Use ASE encryption and decryption cache encapsulation in Vue project
随机推荐
Understand the pseudo static configuration to solve the 404 problem of refreshing the page of the deployment project
Discussion sur la modélisation de la série 143
[note]vs2015 compilation of masm32 using MASM32 Library
单片机:A/D 和 D/A 的基本概念
任总与系统工程领域科学家、专家会谈纪要
Talking about the wavelength of laser radar
基于PHP的轻量数码商城系统
机器人避障系统基础
[zeloengine] localization process /imgui Chinese culture
Single chip microcomputer: main index of a/d (analog-to-digital conversion)
Lambda end operation find and match findany
MCU: RS485 communication and Modbus Protocol
No more! Another member of the team left..
[test development] installation of test management tool Zen path
微信扫描二维码无法下载文件的解决办法
四旋翼飞行器避障系统基础
ROS中的msg消息
单片机:NEC 协议红外遥控器
Alipay native components (hotel time selection)
不卷了!团队又一位成员离职了。。