-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from TatooiNoyo/format-docs
Format all documents
- Loading branch information
Showing
21 changed files
with
1,278 additions
and
678 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,28 @@ | ||
import { defineUserConfig } from "vuepress"; | ||
import { defineUserConfig } from "vuepress" | ||
|
||
import { removePwaPlugin } from "@vuepress/plugin-remove-pwa"; | ||
import { viteBundler } from '@vuepress/bundler-vite' | ||
import cjk_breaks_plugin from '@searking/markdown-it-cjk-breaks'; | ||
import { removePwaPlugin } from "@vuepress/plugin-remove-pwa" | ||
import { viteBundler } from "@vuepress/bundler-vite" | ||
import cjk_breaks_plugin from "@searking/markdown-it-cjk-breaks" | ||
|
||
import theme from "./theme"; | ||
import theme from "./theme" | ||
|
||
export default defineUserConfig({ | ||
base: "/", | ||
locales: { | ||
"/": { | ||
lang: "zh-CN", | ||
title: "NixOS 中文", | ||
description: "由 NixOS-CN 社区驱动", | ||
}, | ||
base: "/", | ||
locales: { | ||
"/": { | ||
lang: "zh-CN", | ||
title: "NixOS 中文", | ||
description: "由 NixOS-CN 社区驱动", | ||
}, | ||
theme, | ||
shouldPrefetch: true, | ||
plugins: [ | ||
removePwaPlugin({}), | ||
], | ||
extendsMarkdown: (md) => { | ||
md.use(cjk_breaks_plugin); | ||
}, | ||
bundler: viteBundler({ | ||
viteOptions: {}, | ||
vuePluginOptions: {}, | ||
}), | ||
}); | ||
}, | ||
theme, | ||
shouldPrefetch: true, | ||
plugins: [removePwaPlugin({})], | ||
extendsMarkdown: (md) => { | ||
md.use(cjk_breaks_plugin) | ||
}, | ||
bundler: viteBundler({ | ||
viteOptions: {}, | ||
vuePluginOptions: {}, | ||
}), | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
import {navbar} from "vuepress-theme-hope"; | ||
import { navbar } from "vuepress-theme-hope" | ||
|
||
export default navbar([ | ||
"/", | ||
{ | ||
text: "检索工具", | ||
icon: "toolkit", | ||
children: [ | ||
{ | ||
text: "软件包", | ||
icon: "pkg", | ||
link: "https://search.nixos.org/packages", | ||
}, | ||
{ | ||
text: "Options", | ||
icon: "options", | ||
link: "https://search.nixos.org/options", | ||
}, | ||
{ | ||
text: "Channel 状态", | ||
icon: "nix-channel", | ||
link: "https://status.nixos.org", | ||
}, | ||
{ | ||
text: "软件包 Pull Request 追踪", | ||
icon: "pullrequest", | ||
link: "https://nixpk.gs/pr-tracker.html", | ||
}, | ||
], | ||
}, | ||
]); | ||
"/", | ||
{ | ||
text: "检索工具", | ||
icon: "toolkit", | ||
children: [ | ||
{ | ||
text: "软件包", | ||
icon: "pkg", | ||
link: "https://search.nixos.org/packages", | ||
}, | ||
{ | ||
text: "Options", | ||
icon: "options", | ||
link: "https://search.nixos.org/options", | ||
}, | ||
{ | ||
text: "Channel 状态", | ||
icon: "nix-channel", | ||
link: "https://status.nixos.org", | ||
}, | ||
{ | ||
text: "软件包 Pull Request 追踪", | ||
icon: "pullrequest", | ||
link: "https://nixpk.gs/pr-tracker.html", | ||
}, | ||
], | ||
}, | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,45 @@ | ||
import {sidebar} from "vuepress-theme-hope"; | ||
import { sidebar } from "vuepress-theme-hope" | ||
|
||
export default sidebar([ | ||
{ | ||
text: "安装教程", | ||
icon: "bulb", | ||
prefix: "/tutorials/installation/", | ||
collapsible: false, | ||
children: [ | ||
"VirtualMachine", | ||
"WSL2", | ||
"Subsystem", | ||
"Networking" | ||
], | ||
}, | ||
{ | ||
text: "伊始之章", | ||
icon: "book-fill", | ||
prefix: "/tutorials/concept/", | ||
collapsible: false, | ||
children: [ | ||
"BinaryAndSourceDistribution", | ||
"HowToMakePath-dependentProgramsWork", | ||
"ConfigurationIsTheBlueprintOfTheSystem", | ||
"HowFunctionalProgrammingShapesNixOS", | ||
"PurityIsOurUltimatePursuit" | ||
], | ||
}, | ||
{ | ||
text: "Nix 语言", | ||
icon: "nix", | ||
prefix: "/tutorials/", | ||
collapsible: false, | ||
children: [ | ||
"lang/QuickOverview", | ||
"lang/Manuals", | ||
"module-system/intro" | ||
], | ||
}, | ||
{ | ||
text: "开发环境部署", | ||
icon: "dev", | ||
prefix: "/tutorials/env/dev/", | ||
collapsible: false, | ||
children: [ | ||
"haskell" | ||
], | ||
}, | ||
{ | ||
text: "NixOS 使用手册", | ||
icon: "nix", | ||
prefix: "/manual/", | ||
collapsible: false, | ||
children: [ | ||
"Intro", | ||
"Configuration" | ||
], | ||
}, | ||
]); | ||
{ | ||
text: "安装教程", | ||
icon: "bulb", | ||
prefix: "/tutorials/installation/", | ||
collapsible: false, | ||
children: ["VirtualMachine", "WSL2", "Subsystem", "Networking"], | ||
}, | ||
{ | ||
text: "伊始之章", | ||
icon: "book-fill", | ||
prefix: "/tutorials/concept/", | ||
collapsible: false, | ||
children: [ | ||
"BinaryAndSourceDistribution", | ||
"HowToMakePath-dependentProgramsWork", | ||
"ConfigurationIsTheBlueprintOfTheSystem", | ||
"HowFunctionalProgrammingShapesNixOS", | ||
"PurityIsOurUltimatePursuit", | ||
], | ||
}, | ||
{ | ||
text: "Nix 语言", | ||
icon: "nix", | ||
prefix: "/tutorials/", | ||
collapsible: false, | ||
children: ["lang/QuickOverview", "lang/Manuals", "module-system/intro"], | ||
}, | ||
{ | ||
text: "开发环境部署", | ||
icon: "dev", | ||
prefix: "/tutorials/env/dev/", | ||
collapsible: false, | ||
children: ["haskell"], | ||
}, | ||
{ | ||
text: "NixOS 使用手册", | ||
icon: "nix", | ||
prefix: "/manual/", | ||
collapsible: false, | ||
children: ["Intro", "Configuration"], | ||
}, | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// you can change config here | ||
$colors: #c0392b, #d35400, #f39c12, #27ae60, #16a085, #2980b9, #8e44ad, #2c3e50, | ||
#7f8c8d !default; | ||
#7f8c8d !default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.