diff --git a/.gitignore b/.gitignore index f1ea110..0da1067 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# VS Code Config Files +.vscode/ + # JetBrains Webstorm Config Files .idea/ diff --git a/contents.rst b/contents.rst index 7c4c3c7..f1cbb0e 100644 --- a/contents.rst +++ b/contents.rst @@ -13,3 +13,4 @@ google-python-styleguide/contents google-shell-styleguide/contents google-javascript-styleguide/contents + google-typescript-styleguide/contents diff --git a/google-typescript-styleguide/contents.rst b/google-typescript-styleguide/contents.rst new file mode 100644 index 0000000..09b0d7f --- /dev/null +++ b/google-typescript-styleguide/contents.rst @@ -0,0 +1,8 @@ +谷歌 TypeScript 风格指南 +################################################################################ + +.. toctree:: + :caption: 目录 + :numbered: + + index diff --git a/google-typescript-styleguide/index.rst b/google-typescript-styleguide/index.rst new file mode 100644 index 0000000..d5743e6 --- /dev/null +++ b/google-typescript-styleguide/index.rst @@ -0,0 +1,53 @@ +前言 +################################################################################ + +.. _introduction: + +简介 +******************************************************************************** + +这份风格指南基于谷歌的内部版本,并在此基础上做了一些修改,使其具有更广泛的适用性。指南并非定期自动部署,而是由志愿者们根据需求进行维护与更新。 + +指南中的内容包括代码规范与最佳实践两部分。读者可根据所在团队的需求加以参考和选用。 + +指南中对 *必须* 、 *禁止* 、 *应当* 、 *不应* 、 *可以* 等词语的用法遵循 `RFC 2119 `_ 中的定义。文中的所有示例均非适合实际项目的正式用法,只用于对指南中的内容加以说明。 + +.. _about: + +翻译信息 +******************************************************************************** + +.. _about-last-update: + +上次更新日期 +================================================================================ + +2021 年 08 月 28 日。 + +.. _about-author: + +作者 +================================================================================ + +* `TinkerRobot `_ + +.. _about-original: + +原文链接 +================================================================================ + +`Google TypeScript Style Guide `_ + +.. _about-translation: + +中文版链接 +================================================================================ + +`谷歌 TypeScript 风格指南 `_ + +.. _about-changelog: + +修订历史 +================================================================================ + +* **2021 年 08 月 08 日:** `TinkerRobot `_ 提交了第一个版本。