Skip to content

Follow the upstream. #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/cover-2nd-en-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/cover-2nd-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion book/en-us/06-regex.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ and is also the core matching syntax of a regular expression. See the table belo
| `\`| Marks the next character as either a special character, or a literal character, or a backward reference, or an octal escape character. For example, `n` Matches the character `n`. `\n` matches newline characters. The sequence `\\` Matches the `'\'` character, while `\(` matches the `'('` character.|
|`^`| Matches the beginning of the input string, unless it is used in a square bracket expression, at which point it indicates that the set of characters is not accepted. |
|`{`| Marks the beginning of a qualifier expression. |
|`\`| Indicates a choice between the two. |
|`\|`| Indicates a choice between the two. |

### Quantifiers

Expand Down
4 changes: 2 additions & 2 deletions book/zh-cn/05-pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ struct B;
struct A {
std::shared_ptr<B> pointer;
~A() {
std::cout << "A 被销毁" << std::end;
std::cout << "A 被销毁" << std::endl;
}
};
struct B {
std::shared_ptr<A> pointer;
~B() {
std::cout << "B 被销毁" << std::end;
std::cout << "B 被销毁" << std::endl;
}
};
int main() {
Expand Down
2 changes: 1 addition & 1 deletion book/zh-cn/06-regex.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ order: 6
| `\`| 将下一个字符标记为或特殊字符、或原义字符、或向后引用、或八进制转义符。例如, `n` 匹配字符 `n`。`\n` 匹配换行符。序列 `\\` 匹配 `'\'` 字符,而 `\(` 则匹配 `'('` 字符。|
|`^`| 匹配输入字符串的开始位置,除非在方括号表达式中使用,此时它表示不接受该字符集合。|
|`{`| 标记限定符表达式的开始。|
|`\`| 指明两项之间的一个选择。|
|`\|`| 指明两项之间的一个选择。|

### 限定符

Expand Down
1 change: 0 additions & 1 deletion pdf/en-us/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pdf: markdown
@echo "Compiling PDF file..."
pandoc -f markdown+smart -s $(filename).md -o $(filename).pdf \
--title-prefix $(title) \
--listings -H meta/cpp-listings.tex \
--template=meta/template.tex \
--pdf-engine=`which xelatex`
@echo "Done."
Expand Down
26 changes: 0 additions & 26 deletions pdf/en-us/meta/cpp-listings.tex

This file was deleted.

2 changes: 0 additions & 2 deletions pdf/en-us/meta/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
\bibliography{$biblio-files$}
$endif$
$endif$
$if(listings)$
\usepackage{listings}
$endif$
$if(lhs)$
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
$endif$
Expand Down
1 change: 0 additions & 1 deletion pdf/zh-cn/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pdf: markdown
@echo "Compiling PDF file..."
pandoc -f markdown+smart -s $(filename).md -o $(filename).pdf \
--title-prefix $(title) \
--listings -H meta/cpp-listings.tex \
--template=meta/template.tex \
--pdf-engine=`which xelatex`
@echo "Done."
Expand Down
26 changes: 0 additions & 26 deletions pdf/zh-cn/meta/cpp-listings.tex

This file was deleted.

3 changes: 1 addition & 2 deletions pdf/zh-cn/meta/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@
\bibliography{$biblio-files$}
$endif$
$endif$
$if(listings)$
\usepackage{textcomp}
\usepackage{listings}
$endif$
$if(lhs)$
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
$endif$
Expand Down
5 changes: 5 additions & 0 deletions website/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ all: clean
node install.js
python3 filter.py
cp ../assets/cover-2nd.png ./src/modern-cpp/assets/cover-2nd.png
cp ../assets/cover-2nd-logo.png ./src/modern-cpp/assets/cover-2nd-logo.png
cp ../assets/cover-2nd-en.png ./src/modern-cpp/assets/cover-2nd-en.png
cp ../assets/cover-2nd-en-logo.png ./src/modern-cpp/assets/cover-2nd-en-logo.png
cp ../assets/alipay.jpg ./src/modern-cpp/assets/alipay.jpg
cp ../assets/wechat.jpg ./src/modern-cpp/assets/wechat.jpg
cp ../assets/donate.md ./src/modern-cpp/about/
Expand All @@ -16,6 +18,9 @@ s: all
node_modules/serve/bin/serve.js ./public
clean:
rm -rf ./src/modern-cpp/assets/cover-2nd.png \
./src/modern-cpp/assets/cover-2nd-en.png \
./src/modern-cpp/assets/cover-2nd-logo.png \
./src/modern-cpp/assets/cover-2nd-en-logo.png \
./src/modern-cpp/assets/figures \
./src/modern-cpp/assets/alipay.jpg \
./src/modern-cpp/assets/wechat.jpg \
Expand Down
Loading