From cf51d006e44035d31c2d4f327b6fc9f826e3382e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=A4=A7=E4=BB=99?= <1900919313@qq.com> Date: Mon, 12 Aug 2024 11:05:46 +0800 Subject: [PATCH] c --- .github/workflows/deploy.yaml | 4 ++++ docs/.vitepress/sidebar/index.ts | 39 ++++++++++++++++++++++---------- 2 files changed, 31 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 71f3596..7ea47a7 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -5,6 +5,10 @@ on: branches: - master +concurrency: + group: ${{ github.ref }} # 使用分支名称作为并发组 + cancel-in-progress: true # 启用取消正在进行的工作流 + jobs: deploy: runs-on: ubuntu-latest diff --git a/docs/.vitepress/sidebar/index.ts b/docs/.vitepress/sidebar/index.ts index a247193..8b2dd7b 100644 --- a/docs/.vitepress/sidebar/index.ts +++ b/docs/.vitepress/sidebar/index.ts @@ -16,11 +16,10 @@ export const sidebar: DefaultTheme.Sidebar = { { text: '函数', link: `/notes/01_c-basic/07_${commonDirectoryName}/` }, { text: '预处理器', link: `/notes/01_c-basic/08_${commonDirectoryName}/` }, { text: '自定义数据类型', link: `/notes/01_c-basic/09_${commonDirectoryName}/` }, - { text: '字符串和时间', link: `/notes/01_c-basic/10_${commonDirectoryName}/` }, - { text: '内存管理', link: `/notes/01_c-basic/11_${commonDirectoryName}/` }, - { text: '文件操作', link: `/notes/01_c-basic/12_${commonDirectoryName}/` }, - { text: '调试工具和调试技巧(gdb和make)', link: `/notes/01_c-basic/13_${commonDirectoryName}/` }, - { text: '常用库函数', link: `/notes/01_c-basic/14_${commonDirectoryName}/` }, + { text: '内存管理', link: `/notes/01_c-basic/10_${commonDirectoryName}/` }, + { text: '文件操作', link: `/notes/01_c-basic/11_${commonDirectoryName}/` }, + { text: '调试工具和调试技巧(gdb和make)', link: `/notes/02_c-basic/13_${commonDirectoryName}/` }, + { text: '常用库函数', link: `/notes/01_c-basic/13_${commonDirectoryName}/` }, ] }, { @@ -40,16 +39,16 @@ export const sidebar: DefaultTheme.Sidebar = { items: [ { text: 'meson', collapsed: true, items: [ - { text: 'Gradle 入门', link: `/notes/03_build/01_${commonDirectoryName}/` }, + { text: 'meson 入门', link: `/notes/03_build/01_${commonDirectoryName}/` }, ] }, { - text: 'cmake', collapsed: true, items: [ - { text: 'Gradle 入门', link: `/notes/03_build/01_${commonDirectoryName}/` }, + text: 'Cmake', collapsed: true, items: [ + { text: 'Cmake 入门', link: `/notes/03_build/01_${commonDirectoryName}/` }, ] }, { - text: 'conan ', link: '/notes/03_build/01_${commonDirectoryName}/' + text: 'Conan ', link: '/notes/03_build/01_${commonDirectoryName}/' }, { text: 'Gradle', collapsed: true, items: [ @@ -66,14 +65,30 @@ export const sidebar: DefaultTheme.Sidebar = { ] }, { - text: 'C++ 核心编程', + text: 'C++ 基础', collapsed: true, items: [ - + { text: 'C++ 入门', link: `/notes/05_cpp/01_${commonDirectoryName}/` }, + { text: '变量、数据类型、运算符', link: `/notes/05_cpp/02_${commonDirectoryName}/` }, + { text: '流程控制', link: `/notes/05_cpp/03_${commonDirectoryName}/` }, + { text: '数组', link: `/notes/05_cpp/04_${commonDirectoryName}/` }, + { text: '指针', link: `/notes/05_cpp/05_${commonDirectoryName}/` }, + { text: '函数', link: `/notes/05_cpp/06_${commonDirectoryName}/` }, + { text: '自定义数据类型', link: `/notes/05_cpp/07_${commonDirectoryName}/` }, + { text: '类和对象', link: `/notes/05_cpp/08_${commonDirectoryName}/` }, + { text: 'C++ 引用', link: `/notes/05_cpp/09_${commonDirectoryName}/` }, + { text: '继承和派生', link: `/notes/05_cpp/10_${commonDirectoryName}/` }, + { text: 'C++ 多态和虚函数', link: `/notes/05_cpp/11_${commonDirectoryName}/` }, + { text: '运算符重载', link: `/notes/05_cpp/12_${commonDirectoryName}/` }, + { text: '模板', link: `/notes/05_cpp/13_${commonDirectoryName}/` }, + { text: 'C++ 异常', link: `/notes/05_cpp/14_${commonDirectoryName}/` }, + { text: '面向对象进阶', link: `/notes/05_cpp/15_${commonDirectoryName}/` }, + { text: '文件操作和 IO 流', link: `/notes/05_cpp/16_${commonDirectoryName}/` }, + { text: 'STL(标准模板库)', link: `/notes/05_cpp/17_${commonDirectoryName}/` }, ] }, { - text: 'C++ 标准库', + text: 'C++ 高级', collapsed: true, items: [