Skip to content

Commit

Permalink
[all lang] add orphan option to avoid sphinx build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cake17 committed Sep 12, 2015
1 parent ecb1f3d commit dce8b38
Show file tree
Hide file tree
Showing 18 changed files with 71 additions and 3 deletions.
10 changes: 10 additions & 0 deletions en/contributing/documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,16 @@ Cross Referencing Links
The link's text would be the title that the link preceded. You can also
provide custom link text using ``:ref:`Link text <label-name>```.

Prevent Sphinx to Output Warnings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Sphinx will output warnings if a file is not referenced in a toc-tree. It's
a great way to ensure that all files have a link directed to them, but
sometimes, you don't need to insert a link for a file, eg. for our
`epub-contents` and `pdf-contents` files. In those cases, you can add
``:orphan:`` at the top of the file, and the warnings will stop to alert you
that the file is not in the toc-tree.

Describing Classes and their Contents
-------------------------------------

Expand Down
2 changes: 2 additions & 0 deletions en/epub-contents.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

Contents
########

Expand Down
2 changes: 2 additions & 0 deletions en/pdf-contents.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

Contents
########

Expand Down
2 changes: 2 additions & 0 deletions es/epub-contents.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

Contents
########

Expand Down
2 changes: 2 additions & 0 deletions es/pdf-contents.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

Contents
########

Expand Down
10 changes: 10 additions & 0 deletions fr/contributing/documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,16 @@ Les liens croisés de référencement
lien. Vous pouvez aussi fournir un texte de lien sur mesure en utilisant
``:ref:`Texte de lien <nom-label>```.

Prevent Sphinx to Output Warnings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Sphinx will output warnings if a file is not referenced in a toc-tree. It's
a great way to ensure that all files have a link directed to them, but
sometimes, you don't need to insert a link for a file, eg. for our
`epub-contents` and `pdf-contents` files. In those cases, you can add
``:orphan:`` at the top of the file, and the warnings will stop to alert you
that the file is not in the toc-tree.

Description des classes et de leur contenu
------------------------------------------

Expand Down
2 changes: 2 additions & 0 deletions fr/epub-contents.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

Contenu
#######

Expand Down
2 changes: 2 additions & 0 deletions fr/pdf-contents.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

Contenu
#######

Expand Down
10 changes: 10 additions & 0 deletions ja/contributing/documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,16 @@ ReST(Re Structured Text)はmarkdownやtextileと同様のプレーンテキス
リンクのテキストはリンクの先にあるタイトルになります。
また、 ``:ref:`リンクテキスト <ラベル名>``` として自由にリンクのテキストを指定することができます。

Prevent Sphinx to Output Warnings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Sphinx will output warnings if a file is not referenced in a toc-tree. It's
a great way to ensure that all files have a link directed to them, but
sometimes, you don't need to insert a link for a file, eg. for our
`epub-contents` and `pdf-contents` files. In those cases, you can add
``:orphan:`` at the top of the file, and the warnings will stop to alert you
that the file is not in the toc-tree.

クラスとその内容を記述する
--------------------------

Expand Down
2 changes: 2 additions & 0 deletions ja/epub-contents.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

コンテンツ
############

Expand Down
2 changes: 2 additions & 0 deletions ja/pdf-contents.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

Contents
########

Expand Down
2 changes: 2 additions & 0 deletions pt/epub-contents.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

Conteúdo
########

Expand Down
2 changes: 2 additions & 0 deletions pt/pdf-contents.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

Conteúdo
########

Expand Down
2 changes: 2 additions & 0 deletions tr/epub-contents.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

Contents
########

Expand Down
2 changes: 2 additions & 0 deletions tr/pdf-contents.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

Contents
########

Expand Down
16 changes: 13 additions & 3 deletions zh/contributing/documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

给文档做贡献是很简单的。这些文件都托管在 https://github.com/cakephp/docs。请自行
复制(*fork*)代码仓库,加入你的更改/改进/翻译,然后发出拉取请求来提交你的改动。你
甚至可以在 GitHub 上在线地编辑文档,而完全不用下载文件--在任何页面上的"Improve
甚至可以在 GitHub 上在线地编辑文档,而完全不用下载文件--在任何页面上的"Improve
this Doc"按键将会引导你进入该页面的 GitHub 在线编辑器。

翻译
Expand Down Expand Up @@ -36,7 +36,7 @@ this Doc"按键将会引导你进入该页面的 GitHub 在线编辑器。

这份新的 CakePHP 文档是以
`ReST formatted text <http://en.wikipedia.org/wiki/ReStructuredText>`_ 格式写的。
ReST (Re Structured Text)是与 markdown 或者 textile 类似的纯文本标记语法。在为
ReST (Re Structured Text)是与 markdown 或者 textile 类似的纯文本标记语法。在为
CakePHP 的文档做出贡献时,为了保持一致性,建议你遵循下面的准则,来你格式化和组织
你的文字。

Expand Down Expand Up @@ -168,10 +168,20 @@ CakePHP 的文档做出贡献时,为了保持一致性,建议你遵循下面
在其他地方你可以用 ``:ref:`标签名称``` 引用上面的小节。链接的文字可以是标签之后的
标题。你也可以使用 ``:ref:`链接文字 <标签名称>``` 的方式来提供自定义的链接文字。

Prevent Sphinx to Output Warnings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Sphinx will output warnings if a file is not referenced in a toc-tree. It's
a great way to ensure that all files have a link directed to them, but
sometimes, you don't need to insert a link for a file, eg. for our
`epub-contents` and `pdf-contents` files. In those cases, you can add
``:orphan:`` at the top of the file, and the warnings will stop to alert you
that the file is not in the toc-tree.

描述类和它们的内容
------------------

CakePHP 文档使用 `phpdomain <http://pypi.python.org/pypi/sphinxcontrib-phpdomain>`_
CakePHP 文档使用 `phpdomain <http://pypi.python.org/pypi/sphinxcontrib-phpdomain>`_
提供自定义指令描述 PHP 对象和结构。我们必须使用这些指令和角色,才能保证正确的索引
和交叉引用。

Expand Down
2 changes: 2 additions & 0 deletions zh/epub-contents.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

Contents
########

Expand Down
2 changes: 2 additions & 0 deletions zh/pdf-contents.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

Contents
########

Expand Down

0 comments on commit dce8b38

Please sign in to comment.