mirror of
https://github.com/zh-google-styleguide/zh-google-styleguide.git
synced 2025-02-19 20:50:10 +08:00
Update 更新pdf构建说明
修改在构建过程中的警告
This commit is contained in:
parent
8767db5880
commit
cffcc999d0
@ -41,4 +41,4 @@ Google 开源项目风格指南——中文版
|
||||
|
||||
* 英文版项目还包含 `cpplint <https://github.com/google/styleguide/tree/gh-pages/cpplint>`_ ——一个用来帮助适应风格准则的工具,以及 `google-c-style.el <https://raw.githubusercontent.com/google/styleguide/gh-pages/google-c-style.el>`_,Google 风格的 Emacs 配置文件。
|
||||
|
||||
* 另外,招募志愿者翻译 `JavaScript Style Guide <http://google.github.io/styleguide/javascriptguide.xml>`_ 以及 `XML Document Format Style Guide <http://google.github.io/styleguide/xmlstyle.html>`_ ,有意者请联系 `Yang.Y <https://github.com/yangyubo>`_ 。
|
||||
* 另外,招募志愿者翻译 `XML Document Format Style Guide <http://google.github.io/styleguide/xmlstyle.html>`_ ,有意者请联系 `Yang.Y <https://github.com/yangyubo>`_ 。
|
||||
|
@ -39,7 +39,7 @@ Windows 程序员有自己的编程习惯, 主要源于 Windows 头文件和其
|
||||
|
||||
然而, 在 Windows 上仍然有一些我们偶尔需要违反的规则:
|
||||
|
||||
- 通常我们 :ref:`禁止使用多重继承 <multiple-inheritance>`, 但在使用 COM 和 ATL/WTL 类时可以使用多重继承. 为了实现 COM 或 ATL/WTL 类/接口, 你可能不得不使用多重实现继承.
|
||||
- 通常我们 :ref:`禁止使用多重继承 <inheritance>`, 但在使用 COM 和 ATL/WTL 类时可以使用多重继承. 为了实现 COM 或 ATL/WTL 类/接口, 你可能不得不使用多重实现继承.
|
||||
|
||||
- 虽然代码中不应该使用异常, 但是在 ATL 和部分 STL(包括 Visual C++ 的 STL) 中异常被广泛使用. 使用 ATL 时, 应定义 ``_ATL_NO_EXCEPTIONS`` 以禁用异常. 你需要研究一下是否能够禁用 STL 的异常, 如果无法禁用, 可以启用编译器异常. (注意这只是为了编译 STL, 自己的代码里仍然不应当包含异常处理).
|
||||
|
||||
|
@ -161,6 +161,7 @@ type属性
|
||||
HTML5将 `text/css <http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#attr-style-type>`_ 和 `text/javascript <http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#attr-script-type>`_ 设置为默认值,在这种情况下指定type属性并不必要。甚至同样兼容老版本的浏览器。
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<!-- 不推荐 -->
|
||||
<link rel="stylesheet" href="//www.google.com/css/maia.css" type="text/css">
|
||||
|
||||
|
@ -260,7 +260,7 @@ Lint
|
||||
可以谨慎使用. 尽量避免使用嵌套函数和嵌套类, 除非需要捕获 ``self`` 和 ``cls`` 以外的局部变量. 不要仅仅为了隐藏一个函数而使用嵌套函数. 应将需要隐藏的函数定义在模块级别, 并给名称加上 ``_`` 前缀, 以便在测试代码中调用此函数.
|
||||
|
||||
推导式 (comprehension expression) 和生成式 (generator expression)
|
||||
--------------------------------
|
||||
-------------------------------------------------------------------
|
||||
|
||||
.. tip::
|
||||
适用于简单情况.
|
||||
|
@ -38,3 +38,12 @@ use follow url relace REPLACE-MISSING-FILE-NAME to you want find and install mis
|
||||
|
||||
https://packages.debian.org/search?searchon=contents&keywords=RELACE-MISSING-FILE-NAME&mode=path&suite=oldstable&arch=any
|
||||
|
||||
2. If occuring FreeXXX font not found
|
||||
|
||||
```sh
|
||||
# for ubuntu
|
||||
sudo apt install fonts-freefont-otf
|
||||
|
||||
# for fedora
|
||||
sudo dnf install texlive-gnu-freefont
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user