mirror of
https://github.com/ryan4yin/nixos-and-flakes-book
synced 2024-11-22 20:23:10 +00:00
fix(Chinese): line breaks (#128)
This commit is contained in:
parent
249fe0d6b2
commit
d710962095
4 changed files with 288 additions and 256 deletions
|
@ -75,6 +75,7 @@ export default defineConfig({
|
|||
config: (md) => {
|
||||
// add support for footnote
|
||||
md.use(require("markdown-it-footnote"))
|
||||
md.use(require("markdown-it-cjk-breaks"))
|
||||
},
|
||||
},
|
||||
|
||||
|
@ -88,6 +89,22 @@ export default defineConfig({
|
|||
|
||||
search: {
|
||||
provider: "local",
|
||||
// for debugging
|
||||
// options: {
|
||||
// /**
|
||||
// * @param {string} src
|
||||
// * @param {import('vitepress').MarkdownEnv} env
|
||||
// * @param {import('markdown-it')} md
|
||||
// */
|
||||
// _render(src, env, md) {
|
||||
// console.log("start...")
|
||||
// console.log("src", src)
|
||||
// let out = md.render(src, env)
|
||||
// console.log("success...")
|
||||
// return out
|
||||
// },
|
||||
// },
|
||||
|
||||
// provider: 'algolia',
|
||||
// options: {
|
||||
// appId: '747LJ10EI7',
|
||||
|
|
|
@ -6,8 +6,8 @@ Nix 语言是 Nix 包管理器的基础,要想玩得转 NixOS 与 Nix Flakes
|
|||
Nix 是一门比较简单的函数式语言,在已有一定编程基础的情况下,过一遍这些语法用时应该在 2 个
|
||||
小时以内。
|
||||
|
||||
NixOS-CN 社区已经有了一份不错的 Nix 语言教程,我不打算重复造轮子,请直接阅读
|
||||
[**Nix 语言概览 - NixOS-CN**](https://nixos-cn.org/tutorials/lang) 来快速入门。
|
||||
NixOS-CN 社区已经有了一份不错的 Nix 语言教程,我不打算重复造轮子,请直接阅
|
||||
读[**Nix 语言概览 - NixOS-CN**](https://nixos-cn.org/tutorials/lang) 来快速入门。
|
||||
|
||||
先把语法过一遍,有个大概的印象就行,后面需要用到时再边用边复习语法知识。
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"type": "module",
|
||||
"devDependencies": {
|
||||
"vitepress": "1.0.0-rc.44",
|
||||
"vitepress": "1.0.0-rc.45",
|
||||
"vitepress-export-pdf": "1.0.0-beta.0"
|
||||
},
|
||||
"scripts": {
|
||||
|
@ -11,6 +11,7 @@
|
|||
"export-pdf": "press-export-pdf export ./docs --outFile ./nixos-and-flakes-book.pdf"
|
||||
},
|
||||
"dependencies": {
|
||||
"markdown-it-cjk-breaks": "^2.0.0",
|
||||
"markdown-it-footnote": "^4.0.0",
|
||||
"sitemap-ts": "^1.6.1",
|
||||
"vitepress-plugin-comment-with-giscus": "^1.1.12"
|
||||
|
|
520
pnpm-lock.yaml
520
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue