This commit is contained in:
Unisko PENG, 2023-01-12 19:51:42 +08:00
parent da0c04e526
commit 5b5316cbd5
5 changed files with 294 additions and 12485 deletions

View File

@ -0,0 +1 @@
103114cbb9829311e7fe0b954d4ad85f

153
book.json
View File

@ -1,85 +1,86 @@
{ {
"author": "Translated by Peng Hailin, laxers@gmail.com", "author": "Translated by Peng Hailin, laxers@gmail.com",
"description": "这是一本TypeScript编程语言手册", "description": "这是一本TypeScript编程语言手册",
"generator": "xfoss.com 网站", "generator": "xfoss.com 网站",
"pdf": { "pdf": {
"fontSize": 12, "fontSize": 12,
"footerTemplate": null, "footerTemplate": null,
"headerTemplate": null, "headerTemplate": null,
"margin": { "margin": {
"bottom": 36, "bottom": 36,
"left": 62, "left": 62,
"right": 62, "right": 62,
"top": 36 "top": 36
},
"pageNumbers": false,
"paperSize": "a4"
}, },
"plugins": [ "pageNumbers": false,
"highlight-code", "paperSize": "a4"
"fontsettings", },
"include-codeblock@^3.0.2", "plugins": [
"tbfed-pagefooter@^0.0.1", "highlight-code",
"sectionx@^3.1.0", "include-codeblock@^3.0.2",
"sitemap", "tbfed-pagefooter@^0.0.1",
"code", "sectionx@^3.1.0",
"-lunr", "sitemap",
"-search", "code",
"-sharing", "page-toc-button",
"-fontsettings", "-lunr",
"cuav-chapters", "-search",
"heading-anchors", "-sharing",
"splitter", "cuav-chapters",
"theme-door", "add-js-css",
"search-pro-fixed" "heading-anchors",
], "navigation",
"variables": { "splitter",
"doorTheme": { "search-pro2"
"nav": [ ],
{ "pluginsConfig": {
"url": "https://rust-lang.xfoss.com", "page-toc-button": {
"target": "_blank", "maxTocDepth": 2,
"name": "学习 Rust 编程语言 · ⚙️" "minTocSize": 2
},
{
"url": "https://java-lang.xfoss.com",
"target": "_blank",
"name": "学习 Java · ☕"
},
{
"url": "https://ccna.xfoss.com",
"target": "_blank",
"name": "学习 “网络通信” 技术 CCNA · 🖧"
},
{
"url": "https://xfoss.com",
"target": "_blank",
"name": "捐助donation · 💰"
}
]
}
}, },
"pluginsConfig": { "fontsettings": {
"doorTheme": { "theme": "white",
"search-placeholder": "请输入关键字搜索", "family": "sans",
"logo": "./images/typescript-logo.png", "size": 2
"favicon": "./docs/images/typescript-fav-icon.png" },
"include-codeblock": {
"template": "ace",
"unindent": true,
"edit": false
},
"tbfed-pagefooter": {
"copyright": "Copyleft @ ts-lang.xfoss.com 2022 - now",
"modify_label": "该文件修订时间:",
"modify_format": "YYYY-MM-DD HH:mm:ss"
},
"sectionx": {
"tag": "b"
},
"add-js-css": {
"css": [ "./custom-style.css" ]
},
"navigation": {
"navigatorList": [
{
"url": "https://rust-lang.xfoss.com",
"name": "学习 Rust 编程语言 · ⚙️"
}, },
"include-codeblock": { {
"template": "ace", "url": "https://java-lang.xfoss.com",
"unindent": true, "name": "学习 Java · ☕"
"edit": true
}, },
"tbfed-pagefooter": { {
"copyright": "Copyleft @ rust.xfoss.com 2022", "url": "https://ccna.xfoss.com",
"modify_label": "该文件修订时间:", "name": "学习 “网络通信” 技术 CCNA · 🖧"
"modify_format": "YYYY-MM-DD HH:mm:ss"
}, },
"sectionx": { {
"tag": "b" "url": "https://xfoss.com",
}, "name": "捐助donation · 💰"
"sitemap": {
"hostname": "https://ts-lang.xfoss.com/"
} }
]
},
"sitemap": {
"hostname": "https://ts-lang.xfoss.com/"
} }
}
} }

53
custom-style.css Normal file
View File

@ -0,0 +1,53 @@
div.book-header {
position: fixed;
}
::-webkit-scrollbar {
width: 5px;
}
::-webkit-scrollbar-track {
background-color: #e4e4e4;
border-radius: 100px;
}
::-webkit-scrollbar-thumb {
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}
li.nav-item>a {
text-decoration: none;
}
i.fa {
font-weight: bold;
color: #5f5f5f;
}
.page-toc-menu {
background-color: #555555 !important;
color: #cccccc !important;
border-radius: 10px;
}
@media only screen and (min-width: 1024px) {
div.book-header {
top: 30px;
}
.nav-list .nav-item a {
font-size: small !important;
}
.nav-list .nav-item a:hover {
color: #f59542 !important;
}
}
@media only screen and (max-width: 1024px) {
ul.nav-list {
display: none;
}
div.book-headr {
top: 5px;
}
}

12518
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -25,35 +25,27 @@
}, },
"homepage": "https://github.com/gnu4cn/ts-learnings#readme", "homepage": "https://github.com/gnu4cn/ts-learnings#readme",
"devDependencies": { "devDependencies": {
"@types/reflect-metadata": "^0.1.0", "gitbook-plugin-add-js-css": "^0.0.1",
"@types/uuid": "^3.4.5", "gitbook-plugin-back-to-top-button": "^0.1.4",
"gulp": "^4.0.2", "gitbook-plugin-cuav-chapters": "^1.0.3",
"gulp-browserify": "^0.5.1", "gitbook-plugin-fontsettings": "^2.0.0",
"gulp-clean": "^0.4.0", "gitbook-plugin-heading-anchors": "^1.0.3",
"gulp-concat": "^2.6.1", "gitbook-plugin-highlight-code": "^1.0.0",
"gulp-sourcemap": "^1.0.1", "gitbook-plugin-navigation": "^0.1.1",
"gulp-sourcemaps": "^2.6.1", "gitbook-plugin-page-toc-button": "^0.1.1",
"gulp-typescript": "^5.0.1", "gitbook-plugin-search-pro2": "^1.0.2",
"gulp-uglify": "^3.0.2", "gitbook-plugin-sharing": "^1.0.2",
"live-server": "^1.2.0", "gitbook-plugin-theme-comscore": "^0.0.3",
"typescript": "^3.6.4", "gitbook-plugin-yh-changyan": "^1.0.0",
"gitbook-plugin-back-to-top-button": "^0.1.4", "honkit": "^4.0.4"
"gitbook-plugin-cuav-chapters": "^1.0.3", },
"gitbook-plugin-fontsettings": "^2.0.0", "dependencies": {
"gitbook-plugin-heading-anchors": "^1.0.3", "gitbook-plugin-ace": "^0.3.2",
"gitbook-plugin-highlight-code": "^1.0.0", "gitbook-plugin-code": "^0.1.0",
"gitbook-plugin-theme-comscore": "^0.0.3", "gitbook-plugin-include-codeblock": "^3.2.3",
"honkit": "^4.0.4" "gitbook-plugin-sectionx": "^3.1.0",
}, "gitbook-plugin-sitemap": "^1.2.0",
"dependencies": { "gitbook-plugin-splitter": "^0.0.8",
"gitbook-plugin-ace": "^0.3.2", "gitbook-plugin-tbfed-pagefooter": "^0.0.1"
"gitbook-plugin-code": "^0.1.0", }
"gitbook-plugin-include-codeblock": "^3.2.3",
"gitbook-plugin-search-pro-fixed": "^1.0.1",
"gitbook-plugin-sectionx": "^3.1.0",
"gitbook-plugin-sitemap": "^1.2.0",
"gitbook-plugin-splitter": "^0.0.8",
"gitbook-plugin-tbfed-pagefooter": "^0.0.1",
"gitbook-plugin-theme-door": "^1.0.2"
}
} }