- 新增现代 C++ 教程的 Preface 章节,包括英文和中文版本 - 添加 C++ Primer 练习代码 - 新增 Learn C++ 教程的 C++ 开发简介章节 - 添加头文件解析文档 - 更新 mkdocs.yml,包含新教程的目录结构 - 修改项目设置,使用 Python 3.10环境
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
<div class="sidebar">
|
|
<div class="sidebar-inner">
|
|
<ul class="main-menu">
|
|
<% if (page.type == 'book-en-us') { %>
|
|
<%- partial('partials/main_menu_en', { context: 'nav' }) %>
|
|
<% } else {%>
|
|
<%- partial('partials/main_menu', { context: 'nav' }) %>
|
|
<% } %>
|
|
</ul>
|
|
<div class="list">
|
|
<h2>
|
|
<% if (page.type == 'book-en-us') { %>
|
|
<%-
|
|
type === 'exercises'
|
|
? 'Exercises'
|
|
: type === 'book-zh-cn'
|
|
? 'Main'
|
|
: type === 'answers'
|
|
? 'Reference Answers'
|
|
: type === 'about'
|
|
? 'About'
|
|
: (type.charAt(0).toUpperCase() + type.slice(1))
|
|
%>
|
|
<% } else {%>
|
|
<%-
|
|
type === 'exercises'
|
|
? '习题'
|
|
: type === 'book-zh-cn'
|
|
? '正文'
|
|
: type === 'answers'
|
|
? '参考答案'
|
|
: type === 'about'
|
|
? '关于'
|
|
: (type.charAt(0).toUpperCase() + type.slice(1))
|
|
%>
|
|
<% } %>
|
|
</h2>
|
|
<%- partial('partials/toc', { type: type }) %>
|
|
</div>
|
|
</div>
|
|
</div>
|