Skip to content

Commit e63da16

Browse files
optimize: optimize the index page and cache file size
1 parent 63d9ad8 commit e63da16

78 files changed

Lines changed: 635 additions & 446 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

documents/appendix/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ description: "辅助参考内容与术语表"
99

1010
## 参考资料
1111

12-
- [术语表](terminology/) — 中英文技术术语标准翻译对照表
12+
<ChapterNav variant="sub">
13+
<ChapterLink href="terminology/">术语表</ChapterLink>
14+
</ChapterNav>
15+
16+
中英文技术术语标准翻译对照表

documents/compilation/index.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ tags:
1818

1919
## 章节导航
2020

21-
- [01 编译与链接概述](01-compilation-and-linking-overview.md)
22-
- [02 复用的概念](02-reuse-concept.md)
23-
- [03 创建和使用静态库](03-creating-and-using-static-libs.md)
24-
- [04 动态库(上)](04-dynamic-libraries-1.md)
25-
- [05 动态库设计](05-dynamic-library-design.md)
26-
- [06 符号可见性](06-symbol-visibility.md)
27-
- [07 符号缺失与运行时加载](07-symbol-missing-and-runtime-loading.md)
28-
- [08 库搜索逻辑](08-library-search-logic.md)
29-
- [09 动态库细节](09-dynamic-library-details.md)
30-
- [10 动态库作为可执行文件](10-dynamic-lib-as-executable.md)
21+
<ChapterNav>
22+
<ChapterLink num="1" href="01-compilation-and-linking-overview.md">编译与链接概述</ChapterLink>
23+
<ChapterLink num="2" href="02-reuse-concept.md">复用的概念</ChapterLink>
24+
<ChapterLink num="3" href="03-creating-and-using-static-libs.md">创建和使用静态库</ChapterLink>
25+
<ChapterLink num="4" href="04-dynamic-libraries-1.md">动态库(上)</ChapterLink>
26+
<ChapterLink num="5" href="05-dynamic-library-design.md">动态库设计</ChapterLink>
27+
<ChapterLink num="6" href="06-symbol-visibility.md">符号可见性</ChapterLink>
28+
<ChapterLink num="7" href="07-symbol-missing-and-runtime-loading.md">符号缺失与运行时加载</ChapterLink>
29+
<ChapterLink num="8" href="08-library-search-logic.md">库搜索逻辑</ChapterLink>
30+
<ChapterLink num="9" href="09-dynamic-library-details.md">动态库细节</ChapterLink>
31+
<ChapterLink num="10" href="10-dynamic-lib-as-executable.md">动态库作为可执行文件</ChapterLink>
32+
</ChapterNav>

documents/cpp-reference/concurrency/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ tags:
1111

1212
# 并发参考卡
1313

14-
- [std::atomic](01-atomic.md)
15-
- [std::thread](02-thread.md)
16-
- [std::mutex](03-mutex.md)
14+
<ChapterNav variant="sub">
15+
<ChapterLink href="01-atomic">std::atomic</ChapterLink>
16+
<ChapterLink href="02-thread">std::thread</ChapterLink>
17+
<ChapterLink href="03-mutex">std::mutex</ChapterLink>
18+
</ChapterNav>

documents/cpp-reference/containers/index.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ tags:
1111

1212
# 容器与视图参考卡
1313

14-
- [std::span](01-span.md)
15-
- [std::string_view](02-string-view.md)
16-
- [std::variant](03-variant.md)
17-
- [std::array](04-array.md)
18-
- [std::initializer_list](05-initializer-list.md)
14+
<ChapterNav variant="sub">
15+
<ChapterLink href="01-span">std::span</ChapterLink>
16+
<ChapterLink href="02-string-view">std::string_view</ChapterLink>
17+
<ChapterLink href="03-variant">std::variant</ChapterLink>
18+
<ChapterLink href="04-array">std::array</ChapterLink>
19+
<ChapterLink href="05-initializer-list">std::initializer_list</ChapterLink>
20+
</ChapterNav>

documents/cpp-reference/core-language/index.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ tags:
1010

1111
# 核心语言特性参考卡
1212

13-
- [constexpr / consteval / constinit](01-constexpr.md)
14-
- [lambda 表达式](02-lambda.md)
15-
- [auto / decltype](03-auto-decltype.md)
16-
- [nullptr](04-nullptr.md)
17-
- [enum class](05-enum-class.md)
18-
- [override 说明符](06-override-final.md)
19-
- [范围 for 循环](07-range-for.md)
20-
- [std::move](08-move-forward.md)
21-
- [泛型 Lambda](09-generic-lambda.md)
22-
- [std::exchange](10-exchange.md)
13+
<ChapterNav variant="sub">
14+
<ChapterLink href="01-constexpr">constexpr / consteval / constinit</ChapterLink>
15+
<ChapterLink href="02-lambda">lambda 表达式</ChapterLink>
16+
<ChapterLink href="03-auto-decltype">auto / decltype</ChapterLink>
17+
<ChapterLink href="04-nullptr">nullptr</ChapterLink>
18+
<ChapterLink href="05-enum-class">enum class</ChapterLink>
19+
<ChapterLink href="06-override-final">override 说明符</ChapterLink>
20+
<ChapterLink href="07-range-for">范围 for 循环</ChapterLink>
21+
<ChapterLink href="08-move-forward">std::move</ChapterLink>
22+
<ChapterLink href="09-generic-lambda">泛型 Lambda</ChapterLink>
23+
<ChapterLink href="10-exchange">std::exchange</ChapterLink>
24+
</ChapterNav>

documents/cpp-reference/memory/index.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ tags:
1111

1212
# 内存管理参考卡
1313

14-
- [std::unique_ptr](01-unique-ptr.md)
15-
- [std::shared_ptr](02-shared-ptr.md)
16-
- [std::optional](03-optional.md)
17-
- [std::make_unique](04-make-unique.md)
14+
<ChapterNav variant="sub">
15+
<ChapterLink href="01-unique-ptr">std::unique_ptr</ChapterLink>
16+
<ChapterLink href="02-shared-ptr">std::shared_ptr</ChapterLink>
17+
<ChapterLink href="03-optional">std::optional</ChapterLink>
18+
<ChapterLink href="04-make-unique">std::make_unique</ChapterLink>
19+
</ChapterNav>

documents/cpp-reference/templates/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ tags:
1111

1212
# 模板与元编程参考卡
1313

14-
- [Concepts](01-concepts.md)
15-
- [可变参数模板](02-variadic-templates.md)
16-
- [折叠表达式](03-fold-expressions.md)
14+
<ChapterNav variant="sub">
15+
<ChapterLink href="01-concepts">Concepts</ChapterLink>
16+
<ChapterLink href="02-variadic-templates">可变参数模板</ChapterLink>
17+
<ChapterLink href="03-fold-expressions">折叠表达式</ChapterLink>
18+
</ChapterNav>

documents/en/appendix/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ Supplementary reference material to help you better understand the tutorial.
99

1010
## References
1111

12-
- [Glossary](terminology/) — Standard Chinese-English technical term translations
12+
<ChapterNav variant="sub">
13+
<ChapterLink href="terminology/">Glossary</ChapterLink>
14+
</ChapterNav>
15+
16+
Standard Chinese-English technical term translations

documents/en/compilation/index.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ An in-depth exploration of core C/C++ concepts including compilation, linking, s
1818

1919
## Chapter Navigation
2020

21-
- [01 Compilation and Linking Overview](01-compilation-and-linking-overview.md)
22-
- [02 The Concept of Reuse](02-reuse-concept.md)
23-
- [03 Creating and Using Static Libraries](03-creating-and-using-static-libs.md)
24-
- [04 Shared Libraries (Part 1)](04-dynamic-libraries-1.md)
25-
- [05 Shared Library Design](05-dynamic-library-design.md)
26-
- [06 Symbol Visibility](06-symbol-visibility.md)
27-
- [07 Missing Symbols and Runtime Loading](07-symbol-missing-and-runtime-loading.md)
28-
- [08 Library Search Logic](08-library-search-logic.md)
29-
- [09 Shared Library Details](09-dynamic-library-details.md)
30-
- [10 Shared Libraries as Executables](10-dynamic-lib-as-executable.md)
21+
<ChapterNav>
22+
<ChapterLink num="1" href="01-compilation-and-linking-overview.md">Compilation and Linking Overview</ChapterLink>
23+
<ChapterLink num="2" href="02-reuse-concept.md">The Concept of Reuse</ChapterLink>
24+
<ChapterLink num="3" href="03-creating-and-using-static-libs.md">Creating and Using Static Libraries</ChapterLink>
25+
<ChapterLink num="4" href="04-dynamic-libraries-1.md">Shared Libraries (Part 1)</ChapterLink>
26+
<ChapterLink num="5" href="05-dynamic-library-design.md">Shared Library Design</ChapterLink>
27+
<ChapterLink num="6" href="06-symbol-visibility.md">Symbol Visibility</ChapterLink>
28+
<ChapterLink num="7" href="07-symbol-missing-and-runtime-loading.md">Missing Symbols and Runtime Loading</ChapterLink>
29+
<ChapterLink num="8" href="08-library-search-logic.md">Library Search Logic</ChapterLink>
30+
<ChapterLink num="9" href="09-dynamic-library-details.md">Shared Library Details</ChapterLink>
31+
<ChapterLink num="10" href="10-dynamic-lib-as-executable.md">Shared Libraries as Executables</ChapterLink>
32+
</ChapterNav>

documents/en/cpp-reference/concurrency/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ tags:
1111
---
1212
# Concurrency Cheat Sheet
1313

14-
- [std::atomic](01-atomic.md)
15-
- [std::thread](02-thread.md)
16-
- [std::mutex](03-mutex.md)
14+
<ChapterNav variant="sub">
15+
<ChapterLink href="01-atomic">std::atomic</ChapterLink>
16+
<ChapterLink href="02-thread">std::thread</ChapterLink>
17+
<ChapterLink href="03-mutex">std::mutex</ChapterLink>
18+
</ChapterNav>

0 commit comments

Comments
 (0)