mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 12:44:40 +03:00
fix: encoding & footer
This commit is contained in:
@@ -20,8 +20,8 @@ for index, source in enumerate(source_dir):
|
|||||||
os.makedirs(dst_filepath)
|
os.makedirs(dst_filepath)
|
||||||
print(dst_filepath)
|
print(dst_filepath)
|
||||||
print(dst_filepath + '/index.md')
|
print(dst_filepath + '/index.md')
|
||||||
with open(source+chapter, 'r') as source_file:
|
with open(source+chapter, 'r', encoding='utf-8') as source_file:
|
||||||
with open(dst_filepath + '/index.md', 'w') as output_file:
|
with open(dst_filepath + '/index.md', 'w', encoding='utf-8') as output_file:
|
||||||
for line in source_file:
|
for line in source_file:
|
||||||
if any(keyword in line for keyword in ignores):
|
if any(keyword in line for keyword in ignores):
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<p>
|
<p>
|
||||||
<a href="https://changkun.de">欧长坤</a>版权所有 © 2016-<%- new Date().getFullYear() %>,
|
<a href="https://changkun.de">欧长坤</a> © 2016-<%- new Date().getFullYear() %> 版权所有,
|
||||||
采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议许可</a>,代码使用 <a href="https://opensource.org/licenses/MIT" target="_blank">MIT</a> 协议开源。</a>
|
采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议许可</a>,代码使用 <a href="https://opensource.org/licenses/MIT" target="_blank">MIT</a> 协议开源。</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<p>
|
<p>
|
||||||
<a href="https://changkun.de">欧长坤</a>版权所有 © 2016-<%- new Date().getFullYear() %>,
|
<a href="https://changkun.de">欧长坤</a> © 2016-<%- new Date().getFullYear() %> 版权所有,
|
||||||
采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议许可</a>,代码使用 <a href="https://opensource.org/licenses/MIT" target="_blank">MIT</a> 协议开源。</a>
|
采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议许可</a>,代码使用 <a href="https://opensource.org/licenses/MIT" target="_blank">MIT</a> 协议开源。</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -20,6 +20,10 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="nav-dropdown-container about">
|
||||||
|
<a class="nav-link" href="https://github.com/changkun/modern-cpp-tutorial">GitHub</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="nav-dropdown-container language">
|
<li class="nav-dropdown-container language">
|
||||||
<a class="nav-link">
|
<a class="nav-link">
|
||||||
<span style="content: url(/modern-cpp/images/lang/cn.svg); width: 15px; height: 15px; margin-right: 5px; vertical-align: middle; margin-bottom: 2px;"></span>
|
<span style="content: url(/modern-cpp/images/lang/cn.svg); width: 15px; height: 15px; margin-right: 5px; vertical-align: middle; margin-bottom: 2px;"></span>
|
||||||
|
|||||||
Reference in New Issue
Block a user