
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
vitepress-for-component
Advanced tools
VFCFork 自VitePress,针对组件开发场景做了一些功能增强和默认样式修改。
可以理解为是一个在
VitePress的基础上向dumi靠拢的工具。
详细文档.
yarn create vlib
像 vitepress 一样使用即可。
Demo组件我们可以在.md文件中这样来引入demo。
<demo src="./demo.vue"
language="vue"
title="Demo演示"
desc="这是一个Demo渲染示例">
</demo>
渲染效果如下:
在组件编写的场景中,我们觉得 dumi 的文件结构更合适。
假设我们有这样一个组件库。
VitePress文件结构如下。
docs
├─ index.md
├─ loading
│ └─ index.md
├─ zh
│ ├─ index.md
│ └─ loading
│ └─ index.md
src
├── loading
│ ├── demo
│ │ └── demo.vue
│ └── loading.vue
└── ...
vitepress-for-componnet文件结构如下。
docs
├── index.en-US.md
├── index.zh-CN.md
src
├── loading
│ ├── demo
│ │ └── demo.vue
│ ├── index.en-US.md
│ ├── index.zh-CN.md
│ └── loading.vue
└── ...
我们觉得dumi的组织结构有如下好处:
.zh-CN来区分 locale,更加有对比度。如图:
FAQs
dumi like documentation tool
We found that vitepress-for-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.