Skip to content

Commit

Permalink
Update book template
Browse files Browse the repository at this point in the history
  • Loading branch information
XuShaohua committed Dec 14, 2023
1 parent 98a588d commit e94c729
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/book-out
/book_out
/dataset
/target
16 changes: 12 additions & 4 deletions book.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@

[book]
title = "数据结构与算法 Rust 语言实现"
authors = ["Shaohua <[email protected]>"]
description = ""
authors = ["Shaohua <[email protected]>"]
src = "book"
language = "zh_CN"
language = "zh-CN"

[rust]
edition = "2021"

[build]
build-dir = "book-out"
#create-missing = false
build-dir = "book_out"
create-missing = false

[output.html]
git-repository-url = "https://github.com/xushaohua/TheAlgorithms"

[output.html.playground]
copy-js = true
editable = true

[output.html.fold]
enable = true
level = 0
2 changes: 1 addition & 1 deletion tools/publish-book.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
set -xe

mdbook build
rsync --delete -ave "ssh -p ${ZU_SERVER_PORT}" book-out/ ${ZU_SERVER}/algs
rsync --delete -ave "ssh -p ${ZU_SERVER_PORT}" book_out/ ${ZU_SERVER}/algs

0 comments on commit e94c729

Please sign in to comment.