Skip to content

Commit

Permalink
docs: 优化文档
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed Jan 10, 2024
1 parent e33e0ba commit ba5f6af
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 494 deletions.
13 changes: 1 addition & 12 deletions docs/src/components/InstallTabs.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script>
import { page } from "$app/stores"
import { t } from "$lib/i18n"
const tabs = [
{
name: "Tailwind Plugin",
Expand All @@ -10,18 +11,6 @@
name: "Use CDN",
href: "/docs/cdn/",
},
// {
// name: "WindiCSS",
// href: "/docs/install/windicss",
// },
// {
// name: "Tachyons",
// href: "/docs/install/tachyons",
// },
// {
// name: "BassCSS",
// href: "/docs/install/basscss",
// },
]
</script>

Expand Down
10 changes: 5 additions & 5 deletions docs/src/routes/(docs)/docs/install/+page.svelte.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Install daisyUI as a Tailwind CSS plugin
desc: How to install daisyUI as a Tailwind CSS plugin?
title: Install SENSOROUI as a Tailwind CSS plugin
desc: How to install SENSOROUI as a Tailwind CSS plugin?
published: true
---

Expand All @@ -14,13 +14,13 @@ published: true

<Translate text="You need <a href='https://nodejs.org/en/download/'>Node.js</a> and <a href='https://tailwindcss.com/docs/installation/'>Tailwind CSS</a> installed." />

1. <Translate text="Install daisyUI" />:
1. <Translate text="Install SENSOROUI" />:

```
npm i -D daisyui@latest
pnpm i -D @sensoro/ui
```

2. <Translate text="Then add daisyUI to your <code>tailwind.config.js</code> files" />:
2. <Translate text="Then add SENSOROUI to your <code>tailwind.config.js</code> files" />:

```js
module.exports = {
Expand Down
8 changes: 4 additions & 4 deletions docs/src/translation/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@
"updated": "updated",
"Tailwind Plugin": "Tailwind Plugin",
"Use CDN": "Use CDN",
"Install daisyUI as a Tailwind CSS plugin": "Install daisyUI as a Tailwind CSS plugin",
"Install SENSOROUI as a Tailwind CSS plugin": "Install SENSOROUI as a Tailwind CSS plugin",
"You need <a href='https://nodejs.org/en/download/'>Node.js</a> and <a href='https://tailwindcss.com/docs/installation/'>Tailwind CSS</a> installed.": "You need <a href='https://nodejs.org/en/download/'>Node.js</a> and <a href='https://tailwindcss.com/docs/installation/'>Tailwind CSS</a> installed.",
"How to install daisyUI as a Tailwind CSS plugin?": "How to install daisyUI as a Tailwind CSS plugin?",
"Install daisyUI": "Install daisyUI",
"Then add daisyUI to your <code>tailwind.config.js</code> files": "Then add daisyUI to your <code>tailwind.config.js</code> files",
"How to install SENSOROUI as a Tailwind CSS plugin?": "How to install SENSOROUI as a Tailwind CSS plugin?",
"Install SENSOROUI": "Install SENSOROUI",
"Then add SENSOROUI to your <code>tailwind.config.js</code> files": "Then add SENSOROUI to your <code>tailwind.config.js</code> files",
"daisyUI example repositories": "daisyUI example repositories",
"See example setup of daisyUI and Tailwind CSS on different frameworks and build tools.": "See example setup of daisyUI and Tailwind CSS on different frameworks and build tools.",
"Prev": "Prev",
Expand Down
8 changes: 4 additions & 4 deletions docs/src/translation/zh_hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@
"updated": "更新",
"Tailwind Plugin": "Tailwind 插件",
"Use CDN": "使用 CDN",
"Install daisyUI as a Tailwind CSS plugin": "作为 Tailwind CSS 的插件来安装 daisyUI",
"Install SENSOROUI as a Tailwind CSS plugin": "作为 Tailwind CSS 的插件来安装 SENSOROUI",
"You need <a href='https://nodejs.org/en/download/'>Node.js</a> and <a href='https://tailwindcss.com/docs/installation/'>Tailwind CSS</a> installed.": "你需要安装 <a href='https://nodejs.org/en/download/'>Node.js</a> 和 <a href='https://tailwindcss.com/docs/installation/'>Taiwind CSS</a>。",
"How to install daisyUI as a Tailwind CSS plugin?": "如何作为 Tailwind CSS 的插件来安装 daisyUI",
"Install daisyUI": "安装 daisyUI",
"Then add daisyUI to your <code>tailwind.config.js</code> files": "然后,在你的 <code>tailwind.config.js</code> 文件里追加 daisyUI 的设置",
"How to install SENSOROUI as a Tailwind CSS plugin?": "如何作为 Tailwind CSS 的插件来安装 SENSOROUI",
"Install SENSOROUI": "安装 SENSOROUI",
"Then add SENSOROUI to your <code>tailwind.config.js</code> files": "然后,在你的 <code>tailwind.config.js</code> 文件里追加 SENSOROUI 的设置",
"daisyUI example repositories": "daisyUI 演示项目",
"See example setup of daisyUI and Tailwind CSS on different frameworks and build tools.": "在不同框架和构建工具下的 daisyUI 与 TailwindCSS 的演示项目。",
"Prev": "上一节",
Expand Down
Loading

0 comments on commit ba5f6af

Please sign in to comment.