Skip to content

Commit 140edd2

Browse files
authored
Merge pull request #879 from luotao1/build
add exclude_patterns for conf.py.in
2 parents a6dcac1 + 0764bb4 commit 140edd2

File tree

12 files changed

+18
-18
lines changed

12 files changed

+18
-18
lines changed

cmake/FindSphinx.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function( Sphinx_add_target target_name builder conf cache source destination )
7272
${source}
7373
${destination}
7474
COMMENT "Generating sphinx documentation: ${builder}"
75+
COMMAND ln -s ${destination}/index_*.html ${destination}/index.html
7576
)
7677

7778
set_property(
@@ -143,4 +144,4 @@ function( Sphinx_add_targets target_base_name conf source base_destination )
143144

144145
add_dependencies( ${target_base_name}_linkcheck ${_dependencies} )
145146
endif()
146-
endfunction()
147+
endfunction()

doc/api/data_provider/pydataprovider2_en.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. _api_pydataprovider2_en:
1+
.. _api_pydataprovider2:
22

33
PyDataProvider2
44
===============
@@ -104,7 +104,7 @@ And PaddlePadle will do all of the rest things\:
104104

105105
Is this cool?
106106

107-
.. _api_pydataprovider2_en_sequential_model:
107+
.. _api_pydataprovider2_sequential_model:
108108

109109
DataProvider for the sequential model
110110
-------------------------------------

doc/api/predict/swig_py_paddle_en.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ python's :code:`help()` function. Let's walk through the above python script:
2323

2424
* At the beginning, use :code:`swig_paddle.initPaddle()` to initialize
2525
PaddlePaddle with command line arguments, for more about command line arguments
26-
see :ref:`cmd_detail_introduction_en` .
26+
see :ref:`cmd_detail_introduction` .
2727
* Parse the configuration file that is used in training with :code:`parse_config()`.
2828
Because data to predict with always have no label, and output of prediction work
2929
normally is the output layer rather than the cost layer, so you should modify
@@ -36,7 +36,7 @@ python's :code:`help()` function. Let's walk through the above python script:
3636
- Note: As swig_paddle can only accept C++ matrices, we offer a utility
3737
class DataProviderConverter that can accept the same input data with
3838
PyDataProvider2, for more information please refer to document
39-
of :ref:`api_pydataprovider2_en` .
39+
of :ref:`api_pydataprovider2` .
4040
* Do the prediction with :code:`forwardTest()`, which takes the converted
4141
input data and outputs the activations of the output layer.
4242

doc/conf.py.cn.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ language = 'zh_CN'
7979

8080
# List of patterns, relative to source directory, that match files and
8181
# directories to ignore when looking for source files.
82-
exclude_patterns = ['_build']
82+
exclude_patterns = ['_build', '**/*_en*', '*_en*']
8383

8484
# The reST default role (used for this markup: `text`) to use for all
8585
# documents.

doc/conf.py.en.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ language = None
8080

8181
# List of patterns, relative to source directory, that match files and
8282
# directories to ignore when looking for source files.
83-
exclude_patterns = ['_build']
83+
exclude_patterns = ['_build', '**/*_cn*', '*_cn*']
8484

8585
# The reST default role (used for this markup: `text`) to use for all
8686
# documents.

doc/howto/cmd_parameter/detail_introduction_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
```eval_rst
2-
.. _cmd_detail_introduction_en:
2+
.. _cmd_detail_introduction:
33
```
44

55
# Detail Description

doc/howto/cmd_parameter/index_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
```eval_rst
2-
.. _cmd_line_index_en:
2+
.. _cmd_line_index:
33
```
44
# How to Set Command-line Parameters
55

doc/howto/deep_model/rnn/rnn_en.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Then at the :code:`process` function, each :code:`yield` function will return th
3030
yield src_ids, trg_ids, trg_ids_next
3131
3232
33-
For more details description of how to write a data provider, please refer to :ref:`api_pydataprovider2_en` . The full data provider file is located at :code:`demo/seqToseq/dataprovider.py`.
33+
For more details description of how to write a data provider, please refer to :ref:`api_pydataprovider2` . The full data provider file is located at :code:`demo/seqToseq/dataprovider.py`.
3434

3535
===============================================
3636
Configure Recurrent Neural Network Architecture
@@ -246,6 +246,6 @@ The code is listed below:
246246
outputs(beam_gen)
247247
248248
249-
Notice that this generation technique is only useful for decoder like generation process. If you are working on sequence tagging tasks, please refer to :ref:`semantic_role_labeling_en` for more details.
249+
Notice that this generation technique is only useful for decoder like generation process. If you are working on sequence tagging tasks, please refer to :ref:`semantic_role_labeling` for more details.
250250

251251
The full configuration file is located at :code:`demo/seqToseq/seqToseq_net.py`.

doc/tutorials/rec/ml_dataset_en.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
```eval_rst
2-
.. _demo_ml_dataset_en:
3-
2+
.. _demo_ml_dataset:
43
```
54

65
# MovieLens Dataset

doc/tutorials/rec/ml_regression_en.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Data Preparation
1616
````````````````
1717
Download and extract dataset
1818
''''''''''''''''''''''''''''
19-
We use :ref:`demo_ml_dataset_en` here.
19+
We use :ref:`demo_ml_dataset` here.
2020
To download and unzip the dataset, simply run the following commands.
2121

2222
.. code-block:: bash
@@ -264,7 +264,7 @@ In this :code:`dataprovider.py`, we should set\:
264264
* use_seq\: Whether this :code:`dataprovider.py` in sequence mode or not.
265265
* process\: Return each sample of data to :code:`paddle`.
266266

267-
The data provider details document see :ref:`api_pydataprovider2_en`.
267+
The data provider details document see :ref:`api_pydataprovider2`.
268268

269269
Train
270270
`````
@@ -280,7 +280,7 @@ The run.sh is shown as follow:
280280
It just start a paddle training process, write the log to `log.txt`,
281281
then print it on screen.
282282

283-
Each command line argument in :code:`run.sh`, please refer to the :ref:`cmd_line_index_en` page. The short description of these arguments is shown as follow.
283+
Each command line argument in :code:`run.sh`, please refer to the :ref:`cmd_line_index` page. The short description of these arguments is shown as follow.
284284

285285
* config\: Tell paddle which file is neural network configuration.
286286
* save_dir\: Tell paddle save model into './output'

0 commit comments

Comments
 (0)