Skip to content

Commit a00319e

Browse files
committed
docs: add new blog
1 parent a114bf0 commit a00319e

15 files changed

+288
-0
lines changed

blog/2024-04-28-shadcnui.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: shadcn-ui实现原理
33
slug: /shadcn
44
authors: oxygen
5+
description: shadcn cli 命令解析,以及 shadcn 使用到的 nodejs 工具
56
---
67

78
Shadcn ui 是最近比较火的一个 React 组件库,官方介绍其并非组件库,因为它并非基于 npm package 的形式来维护,而是通过 nodejs 命令支持将组件源码直接复制到你的项目中。

blog/2025-07-27-shadcnui.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: 如何开发自己的一个 shadcn 组件
33
slug: /shadcn-component
44
authors: oxygen
5+
description: shadcn add 命令解析,以及使用 shadcn 组件模板开发一个 shadcn 生态的组件
56
---
67

78
距离上一篇介绍`shadcn`文章已过去一年之久啦😅。在这一年多的时间内,随着`AI Generate Web`技术的快速发展,`shadcn`凭借其 AI 友好的组件开发模式,生态发展得极为庞大。`shadcn`本身也经过了一些架构调整,新增了一些特性,比如`add`命令支持第三方`registry`以及支持`build`命名等。本篇在解析`shadcn` CLI 的基础上详细介绍一下如何加入`shadcn`组件生态。

blog/2025-08-11-前端工具链对比.md

Lines changed: 280 additions & 0 deletions
Large diffs are not rendered by default.

docs/tools/git.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ Git 配置大小写敏感
4444
git config core.ignorecase false
4545
```
4646

47+
Git 设置本地初始化分支的名称
48+
49+
```shell
50+
git config --global init.defaultBranch main
51+
```
52+
4753
如果要获取所有 git 的配置,可以使用:
4854

4955
```shell
227 KB
Loading
88.8 KB
Loading
88.8 KB
Loading
49.7 KB
Loading
29.2 KB
Loading
76.1 KB
Loading

0 commit comments

Comments
 (0)