Skip to content

Commit 15dca35

Browse files
committed
feat(docs): add Giscus comments and Furo layout fixes
1 parent 70bf620 commit 15dca35

3 files changed

Lines changed: 31 additions & 12 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<img src="https://readme-typing-svg.demolab.com?font=Fira+Code&size=32&letterSpacing=&pause=1000&center=true&vCenter=true&width=1024&height=100&lines=Modern+C%2B%2B+Full-Stack+Tutorial" alt="Typing SVG" />
33
</div>
44

5-
<!-- <div align="center">
6-
<a href="https://github.com/YOUR_USERNAME/YOUR_REPOSITORY/actions/workflows/ci.yml"><img src="https://github.com/YOUR_USERNAME/YOUR_REPOSITORY/actions/workflows/ci.yml/badge.svg" alt="Build Status"></a>
7-
<a href="https://github.com/YOUR_USERNAME/YOUR_REPOSITORY/blob/main/LICENSE"><img src="https://img.shields.io/github/license/YOUR_USERNAME/YOUR_REPOSITORY" alt="License"></a>
8-
<a href="https://github.com/YOUR_USERNAME/YOUR_REPOSITORY/commits/main"><img src="https://img.shields.io/github/last-commit/YOUR_USERNAME/YOUR_REPOSITORY" alt="Last Commit"></a>
9-
</div> -->
5+
<div align="center">
6+
<a href="https://github.com/OasisPioneer/Modern-CPP-Full-Stack-Tutorial/actions/workflows/ci.yml"><img src="https://github.com/YOasisPioneer/Modern-CPP-Full-Stack-Tutorial/actions/workflows/ci.yml/badge.svg" alt="Build Status"></a>
7+
<a href="https://github.com/OasisPioneer/Modern-CPP-Full-Stack-Tutorial/blob/main/LICENSE"><img src="https://img.shields.io/github/license/OasisPioneer/Modern-CPP-Full-Stack-Tutorial" alt="License"></a>
8+
<a href="https://github.com/OasisPioneer/Modern-CPP-Full-Stack-Tutorial/commits/main"><img src="https://img.shields.io/github/last-commit/OasisPioneer/Modern-CPP-Full-Stack-Tutorial" alt="Last Commit"></a>
9+
</div>
1010

1111
<div align="center">
1212
<h2>

source/Language Core/Chapter-1/Section-03.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,7 @@ Hello World!
4949

5050
在计算机编程中只会照葫芦画瓢可不行,接下来我们逐行来认识每一段代码为我们后续的学习打下基础。
5151

52-
首先来看第一行:
53-
54-
```CPP
55-
#include <iostream>
56-
```
57-
58-
我们将这行代码拆分为两个部分学习,首先是左侧的 `#include` 这是 C++ 中的预处理指令,预处理器在编译器真正编译代码之前运行,在上方代码中的作用是告知编译器,在编译过程中需要将我们在代码中所用到的一些头文件/工具库包含到当前的程序当中。
52+
首先来看第一行我们将这行代码拆分为两个部分学习,首先是左侧的 `#include` 这是 C++ 中的预处理指令,预处理器在编译器真正编译代码之前运行,在上方代码中的作用是告知编译器,在编译过程中需要将我们在代码中所用到的一些头文件/工具库包含到当前的程序当中。
5953

6054
接下来是右侧部分 `<iostream>` 它是 C++ 中的一个标准库头文件,它包含了输入/输出流(Input/Output Stream)等功能,在上方代码中的作用是告诉编译器,我们需要使用 iostream 库中定义的功能,以便在程序中进行输入和输出操作。
6155

source/_templates/page.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{% extends "!page.html" %}
2+
3+
{% block content %}
4+
{{ super() }}
5+
6+
<hr />
7+
8+
<script src="https://giscus.app/client.js"
9+
data-repo="OasisPioneer/Modern-CPP-Full-Stack-Tutorial"
10+
data-repo-id="R_kgDOQ0uvPA"
11+
data-category="Announcements"
12+
data-category-id="DIC_kwDOQ0uvPM4C0rb_"
13+
data-mapping="pathname"
14+
data-strict="0"
15+
data-reactions-enabled="1"
16+
data-emit-metadata="0"
17+
data-input-position="top"
18+
data-theme="preferred_color_scheme"
19+
data-lang="zh-CN"
20+
data-loading="lazy"
21+
crossorigin="anonymous"
22+
async>
23+
</script>
24+
25+
{% endblock %}

0 commit comments

Comments
 (0)