From c6df405ee057cf533c59412b19a9b149b5b8cd0e Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Mon, 5 Mar 2018 18:56:17 +0800 Subject: [PATCH 1/4] create doc/v2 directory --- doc/dev/contribute_to_paddle_en.md | 1 - doc/{ => v2}/CMakeLists.txt | 0 .../build_and_install/build_from_source_cn.rst | 0 .../build_and_install/build_from_source_en.rst | 0 .../build_and_install/docker_install_cn.rst | 0 .../build_and_install/docker_install_en.rst | 0 doc/{ => v2}/build_and_install/index_cn.rst | 0 doc/{ => v2}/build_and_install/index_en.rst | 0 doc/{ => v2}/build_and_install/paddleci.png | Bin doc/{ => v2}/build_and_install/pip_install_cn.rst | 0 doc/{ => v2}/build_and_install/pip_install_en.rst | 0 doc/{ => v2}/dev/FullyConnected.jpg | Bin doc/{ => v2}/dev/contribute_to_paddle_cn.md | 0 doc/v2/dev/contribute_to_paddle_en.md | 1 + doc/{ => v2}/dev/index_cn.rst | 0 doc/{ => v2}/dev/index_en.rst | 0 doc/{ => v2}/dev/new_layer_cn.rst | 0 doc/{ => v2}/dev/new_layer_en.rst | 0 doc/{ => v2}/dev/new_op_cn.md | 0 doc/{ => v2}/dev/new_op_en.md | 0 doc/{ => v2}/dev/new_op_kernel_en.md | 0 doc/{ => v2}/dev/use_eigen_cn.md | 0 doc/{ => v2}/dev/use_eigen_en.md | 0 doc/{ => v2}/dev/write_docs_cn.rst | 0 doc/{ => v2}/dev/write_docs_en.rst | 0 doc/{ => v2}/faq/build_and_install/index_cn.rst | 0 doc/{ => v2}/faq/build_and_install/index_en.rst | 0 doc/{ => v2}/faq/cluster/index_cn.rst | 0 doc/{ => v2}/faq/cluster/index_en.rst | 0 doc/{ => v2}/faq/index_cn.rst | 0 doc/{ => v2}/faq/index_en.rst | 0 doc/{ => v2}/faq/local/index_cn.rst | 0 doc/{ => v2}/faq/local/index_en.rst | 0 doc/{ => v2}/faq/local/src/reduce_min_pool_size.py | 0 doc/{ => v2}/faq/local/src/word2vec_config.py | 0 doc/{ => v2}/faq/local/src/word2vec_dataprovider.py | 0 doc/{ => v2}/faq/model/index_cn.rst | 0 doc/{ => v2}/faq/model/index_en.rst | 0 doc/{ => v2}/faq/parameter/index_cn.rst | 0 doc/{ => v2}/faq/parameter/index_en.rst | 0 doc/{ => v2}/getstarted/concepts/src/infer.py | 0 doc/{ => v2}/getstarted/concepts/src/train.py | 0 .../getstarted/concepts/use_concepts_cn.rst | 0 .../getstarted/concepts/use_concepts_en.rst | 0 doc/{ => v2}/getstarted/index_cn.rst | 0 doc/{ => v2}/getstarted/index_en.rst | 0 doc/{ => v2}/getstarted/quickstart_cn.rst | 0 doc/{ => v2}/getstarted/quickstart_en.rst | 0 doc/{ => v2}/howto/capi/compile_paddle_lib_cn.md | 0 doc/{ => v2}/howto/capi/compile_paddle_lib_en.md | 0 doc/{ => v2}/howto/capi/images/csr.png | Bin doc/{ => v2}/howto/capi/images/sequence_data.png | Bin doc/{ => v2}/howto/capi/images/workflow_of_CAPI.png | Bin doc/{ => v2}/howto/capi/index_cn.rst | 0 doc/{ => v2}/howto/capi/index_en.rst | 0 .../howto/capi/organization_of_the_inputs_cn.md | 0 .../howto/capi/organization_of_the_inputs_en.md | 0 doc/{ => v2}/howto/capi/workflow_of_capi_cn.md | 0 doc/{ => v2}/howto/capi/workflow_of_capi_en.md | 0 doc/{ => v2}/howto/cluster/cmd_argument_cn.md | 0 doc/{ => v2}/howto/cluster/cmd_argument_en.md | 0 .../howto/cluster/fluid_cluster_train_en.md | 0 doc/{ => v2}/howto/cluster/index_cn.rst | 0 doc/{ => v2}/howto/cluster/index_en.rst | 0 .../howto/cluster/multi_cluster/fabric_cn.md | 0 .../howto/cluster/multi_cluster/fabric_en.md | 0 .../howto/cluster/multi_cluster/index_cn.rst | 0 .../howto/cluster/multi_cluster/index_en.rst | 0 .../howto/cluster/multi_cluster/k8s_aws_cn.md | 0 .../howto/cluster/multi_cluster/k8s_aws_en.md | 0 doc/{ => v2}/howto/cluster/multi_cluster/k8s_cn.md | 0 .../cluster/multi_cluster/k8s_distributed_cn.md | 0 .../cluster/multi_cluster/k8s_distributed_en.md | 0 doc/{ => v2}/howto/cluster/multi_cluster/k8s_en.md | 0 .../howto/cluster/multi_cluster/openmpi_cn.md | 0 .../howto/cluster/multi_cluster/openmpi_en.md | 0 .../multi_cluster/src/add_security_group.png | Bin .../howto/cluster/multi_cluster/src/create_efs.png | Bin .../cluster/multi_cluster/src/k8s-paddle-arch.png | Bin .../cluster/multi_cluster/src/k8s_data/Dockerfile | 0 .../cluster/multi_cluster/src/k8s_data/README.md | 0 .../cluster/multi_cluster/src/k8s_data/get_data.sh | 0 .../cluster/multi_cluster/src/k8s_train/Dockerfile | 0 .../cluster/multi_cluster/src/k8s_train/README.md | 0 .../cluster/multi_cluster/src/k8s_train/start.sh | 0 .../multi_cluster/src/k8s_train/start_paddle.py | 0 .../multi_cluster/src/pserver_and_trainer.png | Bin .../multi_cluster/src/route53_create_recordset.png | Bin .../multi_cluster/src/route53_create_zone.png | Bin .../multi_cluster/src/worker_security_group.png | Bin doc/{ => v2}/howto/cluster/preparations_cn.md | 0 doc/{ => v2}/howto/cluster/preparations_en.md | 0 doc/{ => v2}/howto/cluster/src/Dockerfile | 0 doc/{ => v2}/howto/cluster/src/efs_mount.png | Bin doc/{ => v2}/howto/cluster/src/managed_policy.png | Bin doc/{ => v2}/howto/cluster/src/ps_cn.png | Bin doc/{ => v2}/howto/cluster/src/ps_en.png | Bin doc/{ => v2}/howto/cluster/src/trainer.png | Bin doc/{ => v2}/howto/cluster/src/trainer_cn.png | Bin .../howto/cluster/src/word2vec/api_train_v2.py | 0 .../cluster/src/word2vec/api_train_v2_cluster.py | 0 doc/{ => v2}/howto/cluster/src/word2vec/prepare.py | 0 doc/{ => v2}/howto/cmd_parameter/arguments_cn.md | 0 doc/{ => v2}/howto/cmd_parameter/arguments_en.md | 0 .../howto/cmd_parameter/detail_introduction_cn.md | 0 .../howto/cmd_parameter/detail_introduction_en.md | 0 doc/{ => v2}/howto/cmd_parameter/index_cn.rst | 0 doc/{ => v2}/howto/cmd_parameter/index_en.rst | 0 doc/{ => v2}/howto/cmd_parameter/use_case_cn.md | 0 doc/{ => v2}/howto/cmd_parameter/use_case_en.md | 0 doc/{ => v2}/howto/index_cn.rst | 0 doc/{ => v2}/howto/index_en.rst | 0 doc/{ => v2}/howto/optimization/cpu_profiling_cn.md | 0 doc/{ => v2}/howto/optimization/cpu_profiling_en.md | 0 .../howto/optimization/gpu_profiling_cn.rst | 0 .../howto/optimization/gpu_profiling_en.rst | 0 doc/{ => v2}/howto/optimization/nvvp1.png | Bin doc/{ => v2}/howto/optimization/nvvp2.png | Bin doc/{ => v2}/howto/optimization/nvvp3.png | Bin doc/{ => v2}/howto/optimization/nvvp4.png | Bin doc/{ => v2}/howto/optimization/pprof_1.png | Bin doc/{ => v2}/howto/optimization/pprof_2.png | Bin doc/{ => v2}/howto/read_source.md | 0 doc/{ => v2}/howto/rnn/hierarchical_layer_cn.rst | 0 doc/{ => v2}/howto/rnn/hierarchical_layer_en.rst | 0 doc/{ => v2}/howto/rnn/hrnn_rnn_api_compare_cn.rst | 0 doc/{ => v2}/howto/rnn/hrnn_rnn_api_compare_en.rst | 0 doc/{ => v2}/howto/rnn/index_cn.rst | 0 doc/{ => v2}/howto/rnn/index_en.rst | 0 doc/{ => v2}/howto/rnn/recurrent_group_cn.md | 0 doc/{ => v2}/howto/rnn/recurrent_group_en.md | 0 doc/{ => v2}/howto/rnn/rnn_config_cn.rst | 0 doc/{ => v2}/howto/rnn/rnn_config_en.rst | 0 doc/{ => v2}/howto/rnn/src/bi_lstm.jpg | Bin .../rnn/src/encoder-decoder-attention-model.png | Bin doc/{ => v2}/howto/rnn/src/glossary_rnn.dot | 0 .../howto/rnn/src/glossary_rnn_with_memory.dot | 0 .../rnn/src/simple_full_hierarchical_recurrent.dot | 0 .../howto/rnn/src/simple_full_recurrent.dot | 0 doc/{ => v2}/index_cn.rst | 0 doc/{ => v2}/index_en.rst | 0 141 files changed, 1 insertion(+), 1 deletion(-) delete mode 120000 doc/dev/contribute_to_paddle_en.md rename doc/{ => v2}/CMakeLists.txt (100%) rename doc/{ => v2}/build_and_install/build_from_source_cn.rst (100%) rename doc/{ => v2}/build_and_install/build_from_source_en.rst (100%) rename doc/{ => v2}/build_and_install/docker_install_cn.rst (100%) rename doc/{ => v2}/build_and_install/docker_install_en.rst (100%) rename doc/{ => v2}/build_and_install/index_cn.rst (100%) rename doc/{ => v2}/build_and_install/index_en.rst (100%) rename doc/{ => v2}/build_and_install/paddleci.png (100%) rename doc/{ => v2}/build_and_install/pip_install_cn.rst (100%) rename doc/{ => v2}/build_and_install/pip_install_en.rst (100%) rename doc/{ => v2}/dev/FullyConnected.jpg (100%) rename doc/{ => v2}/dev/contribute_to_paddle_cn.md (100%) create mode 120000 doc/v2/dev/contribute_to_paddle_en.md rename doc/{ => v2}/dev/index_cn.rst (100%) rename doc/{ => v2}/dev/index_en.rst (100%) rename doc/{ => v2}/dev/new_layer_cn.rst (100%) rename doc/{ => v2}/dev/new_layer_en.rst (100%) rename doc/{ => v2}/dev/new_op_cn.md (100%) rename doc/{ => v2}/dev/new_op_en.md (100%) rename doc/{ => v2}/dev/new_op_kernel_en.md (100%) rename doc/{ => v2}/dev/use_eigen_cn.md (100%) rename doc/{ => v2}/dev/use_eigen_en.md (100%) rename doc/{ => v2}/dev/write_docs_cn.rst (100%) rename doc/{ => v2}/dev/write_docs_en.rst (100%) rename doc/{ => v2}/faq/build_and_install/index_cn.rst (100%) rename doc/{ => v2}/faq/build_and_install/index_en.rst (100%) rename doc/{ => v2}/faq/cluster/index_cn.rst (100%) rename doc/{ => v2}/faq/cluster/index_en.rst (100%) rename doc/{ => v2}/faq/index_cn.rst (100%) rename doc/{ => v2}/faq/index_en.rst (100%) rename doc/{ => v2}/faq/local/index_cn.rst (100%) rename doc/{ => v2}/faq/local/index_en.rst (100%) rename doc/{ => v2}/faq/local/src/reduce_min_pool_size.py (100%) rename doc/{ => v2}/faq/local/src/word2vec_config.py (100%) rename doc/{ => v2}/faq/local/src/word2vec_dataprovider.py (100%) rename doc/{ => v2}/faq/model/index_cn.rst (100%) rename doc/{ => v2}/faq/model/index_en.rst (100%) rename doc/{ => v2}/faq/parameter/index_cn.rst (100%) rename doc/{ => v2}/faq/parameter/index_en.rst (100%) rename doc/{ => v2}/getstarted/concepts/src/infer.py (100%) rename doc/{ => v2}/getstarted/concepts/src/train.py (100%) rename doc/{ => v2}/getstarted/concepts/use_concepts_cn.rst (100%) rename doc/{ => v2}/getstarted/concepts/use_concepts_en.rst (100%) rename doc/{ => v2}/getstarted/index_cn.rst (100%) rename doc/{ => v2}/getstarted/index_en.rst (100%) rename doc/{ => v2}/getstarted/quickstart_cn.rst (100%) rename doc/{ => v2}/getstarted/quickstart_en.rst (100%) rename doc/{ => v2}/howto/capi/compile_paddle_lib_cn.md (100%) rename doc/{ => v2}/howto/capi/compile_paddle_lib_en.md (100%) rename doc/{ => v2}/howto/capi/images/csr.png (100%) rename doc/{ => v2}/howto/capi/images/sequence_data.png (100%) rename doc/{ => v2}/howto/capi/images/workflow_of_CAPI.png (100%) rename doc/{ => v2}/howto/capi/index_cn.rst (100%) rename doc/{ => v2}/howto/capi/index_en.rst (100%) rename doc/{ => v2}/howto/capi/organization_of_the_inputs_cn.md (100%) rename doc/{ => v2}/howto/capi/organization_of_the_inputs_en.md (100%) rename doc/{ => v2}/howto/capi/workflow_of_capi_cn.md (100%) rename doc/{ => v2}/howto/capi/workflow_of_capi_en.md (100%) rename doc/{ => v2}/howto/cluster/cmd_argument_cn.md (100%) rename doc/{ => v2}/howto/cluster/cmd_argument_en.md (100%) rename doc/{ => v2}/howto/cluster/fluid_cluster_train_en.md (100%) rename doc/{ => v2}/howto/cluster/index_cn.rst (100%) rename doc/{ => v2}/howto/cluster/index_en.rst (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/fabric_cn.md (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/fabric_en.md (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/index_cn.rst (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/index_en.rst (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/k8s_aws_cn.md (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/k8s_aws_en.md (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/k8s_cn.md (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/k8s_distributed_cn.md (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/k8s_distributed_en.md (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/k8s_en.md (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/openmpi_cn.md (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/openmpi_en.md (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/src/add_security_group.png (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/src/create_efs.png (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/src/k8s-paddle-arch.png (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/src/k8s_data/Dockerfile (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/src/k8s_data/README.md (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/src/k8s_data/get_data.sh (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/src/k8s_train/Dockerfile (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/src/k8s_train/README.md (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/src/k8s_train/start.sh (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/src/k8s_train/start_paddle.py (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/src/pserver_and_trainer.png (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/src/route53_create_recordset.png (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/src/route53_create_zone.png (100%) rename doc/{ => v2}/howto/cluster/multi_cluster/src/worker_security_group.png (100%) rename doc/{ => v2}/howto/cluster/preparations_cn.md (100%) rename doc/{ => v2}/howto/cluster/preparations_en.md (100%) rename doc/{ => v2}/howto/cluster/src/Dockerfile (100%) rename doc/{ => v2}/howto/cluster/src/efs_mount.png (100%) rename doc/{ => v2}/howto/cluster/src/managed_policy.png (100%) rename doc/{ => v2}/howto/cluster/src/ps_cn.png (100%) rename doc/{ => v2}/howto/cluster/src/ps_en.png (100%) rename doc/{ => v2}/howto/cluster/src/trainer.png (100%) rename doc/{ => v2}/howto/cluster/src/trainer_cn.png (100%) rename doc/{ => v2}/howto/cluster/src/word2vec/api_train_v2.py (100%) rename doc/{ => v2}/howto/cluster/src/word2vec/api_train_v2_cluster.py (100%) rename doc/{ => v2}/howto/cluster/src/word2vec/prepare.py (100%) rename doc/{ => v2}/howto/cmd_parameter/arguments_cn.md (100%) rename doc/{ => v2}/howto/cmd_parameter/arguments_en.md (100%) rename doc/{ => v2}/howto/cmd_parameter/detail_introduction_cn.md (100%) rename doc/{ => v2}/howto/cmd_parameter/detail_introduction_en.md (100%) rename doc/{ => v2}/howto/cmd_parameter/index_cn.rst (100%) rename doc/{ => v2}/howto/cmd_parameter/index_en.rst (100%) rename doc/{ => v2}/howto/cmd_parameter/use_case_cn.md (100%) rename doc/{ => v2}/howto/cmd_parameter/use_case_en.md (100%) rename doc/{ => v2}/howto/index_cn.rst (100%) rename doc/{ => v2}/howto/index_en.rst (100%) rename doc/{ => v2}/howto/optimization/cpu_profiling_cn.md (100%) rename doc/{ => v2}/howto/optimization/cpu_profiling_en.md (100%) rename doc/{ => v2}/howto/optimization/gpu_profiling_cn.rst (100%) rename doc/{ => v2}/howto/optimization/gpu_profiling_en.rst (100%) rename doc/{ => v2}/howto/optimization/nvvp1.png (100%) rename doc/{ => v2}/howto/optimization/nvvp2.png (100%) rename doc/{ => v2}/howto/optimization/nvvp3.png (100%) rename doc/{ => v2}/howto/optimization/nvvp4.png (100%) rename doc/{ => v2}/howto/optimization/pprof_1.png (100%) rename doc/{ => v2}/howto/optimization/pprof_2.png (100%) rename doc/{ => v2}/howto/read_source.md (100%) rename doc/{ => v2}/howto/rnn/hierarchical_layer_cn.rst (100%) rename doc/{ => v2}/howto/rnn/hierarchical_layer_en.rst (100%) rename doc/{ => v2}/howto/rnn/hrnn_rnn_api_compare_cn.rst (100%) rename doc/{ => v2}/howto/rnn/hrnn_rnn_api_compare_en.rst (100%) rename doc/{ => v2}/howto/rnn/index_cn.rst (100%) rename doc/{ => v2}/howto/rnn/index_en.rst (100%) rename doc/{ => v2}/howto/rnn/recurrent_group_cn.md (100%) rename doc/{ => v2}/howto/rnn/recurrent_group_en.md (100%) rename doc/{ => v2}/howto/rnn/rnn_config_cn.rst (100%) rename doc/{ => v2}/howto/rnn/rnn_config_en.rst (100%) rename doc/{ => v2}/howto/rnn/src/bi_lstm.jpg (100%) rename doc/{ => v2}/howto/rnn/src/encoder-decoder-attention-model.png (100%) rename doc/{ => v2}/howto/rnn/src/glossary_rnn.dot (100%) rename doc/{ => v2}/howto/rnn/src/glossary_rnn_with_memory.dot (100%) rename doc/{ => v2}/howto/rnn/src/simple_full_hierarchical_recurrent.dot (100%) rename doc/{ => v2}/howto/rnn/src/simple_full_recurrent.dot (100%) rename doc/{ => v2}/index_cn.rst (100%) rename doc/{ => v2}/index_en.rst (100%) diff --git a/doc/dev/contribute_to_paddle_en.md b/doc/dev/contribute_to_paddle_en.md deleted file mode 120000 index f939e75f21..0000000000 --- a/doc/dev/contribute_to_paddle_en.md +++ /dev/null @@ -1 +0,0 @@ -../../CONTRIBUTING.md \ No newline at end of file diff --git a/doc/CMakeLists.txt b/doc/v2/CMakeLists.txt similarity index 100% rename from doc/CMakeLists.txt rename to doc/v2/CMakeLists.txt diff --git a/doc/build_and_install/build_from_source_cn.rst b/doc/v2/build_and_install/build_from_source_cn.rst similarity index 100% rename from doc/build_and_install/build_from_source_cn.rst rename to doc/v2/build_and_install/build_from_source_cn.rst diff --git a/doc/build_and_install/build_from_source_en.rst b/doc/v2/build_and_install/build_from_source_en.rst similarity index 100% rename from doc/build_and_install/build_from_source_en.rst rename to doc/v2/build_and_install/build_from_source_en.rst diff --git a/doc/build_and_install/docker_install_cn.rst b/doc/v2/build_and_install/docker_install_cn.rst similarity index 100% rename from doc/build_and_install/docker_install_cn.rst rename to doc/v2/build_and_install/docker_install_cn.rst diff --git a/doc/build_and_install/docker_install_en.rst b/doc/v2/build_and_install/docker_install_en.rst similarity index 100% rename from doc/build_and_install/docker_install_en.rst rename to doc/v2/build_and_install/docker_install_en.rst diff --git a/doc/build_and_install/index_cn.rst b/doc/v2/build_and_install/index_cn.rst similarity index 100% rename from doc/build_and_install/index_cn.rst rename to doc/v2/build_and_install/index_cn.rst diff --git a/doc/build_and_install/index_en.rst b/doc/v2/build_and_install/index_en.rst similarity index 100% rename from doc/build_and_install/index_en.rst rename to doc/v2/build_and_install/index_en.rst diff --git a/doc/build_and_install/paddleci.png b/doc/v2/build_and_install/paddleci.png similarity index 100% rename from doc/build_and_install/paddleci.png rename to doc/v2/build_and_install/paddleci.png diff --git a/doc/build_and_install/pip_install_cn.rst b/doc/v2/build_and_install/pip_install_cn.rst similarity index 100% rename from doc/build_and_install/pip_install_cn.rst rename to doc/v2/build_and_install/pip_install_cn.rst diff --git a/doc/build_and_install/pip_install_en.rst b/doc/v2/build_and_install/pip_install_en.rst similarity index 100% rename from doc/build_and_install/pip_install_en.rst rename to doc/v2/build_and_install/pip_install_en.rst diff --git a/doc/dev/FullyConnected.jpg b/doc/v2/dev/FullyConnected.jpg similarity index 100% rename from doc/dev/FullyConnected.jpg rename to doc/v2/dev/FullyConnected.jpg diff --git a/doc/dev/contribute_to_paddle_cn.md b/doc/v2/dev/contribute_to_paddle_cn.md similarity index 100% rename from doc/dev/contribute_to_paddle_cn.md rename to doc/v2/dev/contribute_to_paddle_cn.md diff --git a/doc/v2/dev/contribute_to_paddle_en.md b/doc/v2/dev/contribute_to_paddle_en.md new file mode 120000 index 0000000000..c97564d93a --- /dev/null +++ b/doc/v2/dev/contribute_to_paddle_en.md @@ -0,0 +1 @@ +../../../CONTRIBUTING.md \ No newline at end of file diff --git a/doc/dev/index_cn.rst b/doc/v2/dev/index_cn.rst similarity index 100% rename from doc/dev/index_cn.rst rename to doc/v2/dev/index_cn.rst diff --git a/doc/dev/index_en.rst b/doc/v2/dev/index_en.rst similarity index 100% rename from doc/dev/index_en.rst rename to doc/v2/dev/index_en.rst diff --git a/doc/dev/new_layer_cn.rst b/doc/v2/dev/new_layer_cn.rst similarity index 100% rename from doc/dev/new_layer_cn.rst rename to doc/v2/dev/new_layer_cn.rst diff --git a/doc/dev/new_layer_en.rst b/doc/v2/dev/new_layer_en.rst similarity index 100% rename from doc/dev/new_layer_en.rst rename to doc/v2/dev/new_layer_en.rst diff --git a/doc/dev/new_op_cn.md b/doc/v2/dev/new_op_cn.md similarity index 100% rename from doc/dev/new_op_cn.md rename to doc/v2/dev/new_op_cn.md diff --git a/doc/dev/new_op_en.md b/doc/v2/dev/new_op_en.md similarity index 100% rename from doc/dev/new_op_en.md rename to doc/v2/dev/new_op_en.md diff --git a/doc/dev/new_op_kernel_en.md b/doc/v2/dev/new_op_kernel_en.md similarity index 100% rename from doc/dev/new_op_kernel_en.md rename to doc/v2/dev/new_op_kernel_en.md diff --git a/doc/dev/use_eigen_cn.md b/doc/v2/dev/use_eigen_cn.md similarity index 100% rename from doc/dev/use_eigen_cn.md rename to doc/v2/dev/use_eigen_cn.md diff --git a/doc/dev/use_eigen_en.md b/doc/v2/dev/use_eigen_en.md similarity index 100% rename from doc/dev/use_eigen_en.md rename to doc/v2/dev/use_eigen_en.md diff --git a/doc/dev/write_docs_cn.rst b/doc/v2/dev/write_docs_cn.rst similarity index 100% rename from doc/dev/write_docs_cn.rst rename to doc/v2/dev/write_docs_cn.rst diff --git a/doc/dev/write_docs_en.rst b/doc/v2/dev/write_docs_en.rst similarity index 100% rename from doc/dev/write_docs_en.rst rename to doc/v2/dev/write_docs_en.rst diff --git a/doc/faq/build_and_install/index_cn.rst b/doc/v2/faq/build_and_install/index_cn.rst similarity index 100% rename from doc/faq/build_and_install/index_cn.rst rename to doc/v2/faq/build_and_install/index_cn.rst diff --git a/doc/faq/build_and_install/index_en.rst b/doc/v2/faq/build_and_install/index_en.rst similarity index 100% rename from doc/faq/build_and_install/index_en.rst rename to doc/v2/faq/build_and_install/index_en.rst diff --git a/doc/faq/cluster/index_cn.rst b/doc/v2/faq/cluster/index_cn.rst similarity index 100% rename from doc/faq/cluster/index_cn.rst rename to doc/v2/faq/cluster/index_cn.rst diff --git a/doc/faq/cluster/index_en.rst b/doc/v2/faq/cluster/index_en.rst similarity index 100% rename from doc/faq/cluster/index_en.rst rename to doc/v2/faq/cluster/index_en.rst diff --git a/doc/faq/index_cn.rst b/doc/v2/faq/index_cn.rst similarity index 100% rename from doc/faq/index_cn.rst rename to doc/v2/faq/index_cn.rst diff --git a/doc/faq/index_en.rst b/doc/v2/faq/index_en.rst similarity index 100% rename from doc/faq/index_en.rst rename to doc/v2/faq/index_en.rst diff --git a/doc/faq/local/index_cn.rst b/doc/v2/faq/local/index_cn.rst similarity index 100% rename from doc/faq/local/index_cn.rst rename to doc/v2/faq/local/index_cn.rst diff --git a/doc/faq/local/index_en.rst b/doc/v2/faq/local/index_en.rst similarity index 100% rename from doc/faq/local/index_en.rst rename to doc/v2/faq/local/index_en.rst diff --git a/doc/faq/local/src/reduce_min_pool_size.py b/doc/v2/faq/local/src/reduce_min_pool_size.py similarity index 100% rename from doc/faq/local/src/reduce_min_pool_size.py rename to doc/v2/faq/local/src/reduce_min_pool_size.py diff --git a/doc/faq/local/src/word2vec_config.py b/doc/v2/faq/local/src/word2vec_config.py similarity index 100% rename from doc/faq/local/src/word2vec_config.py rename to doc/v2/faq/local/src/word2vec_config.py diff --git a/doc/faq/local/src/word2vec_dataprovider.py b/doc/v2/faq/local/src/word2vec_dataprovider.py similarity index 100% rename from doc/faq/local/src/word2vec_dataprovider.py rename to doc/v2/faq/local/src/word2vec_dataprovider.py diff --git a/doc/faq/model/index_cn.rst b/doc/v2/faq/model/index_cn.rst similarity index 100% rename from doc/faq/model/index_cn.rst rename to doc/v2/faq/model/index_cn.rst diff --git a/doc/faq/model/index_en.rst b/doc/v2/faq/model/index_en.rst similarity index 100% rename from doc/faq/model/index_en.rst rename to doc/v2/faq/model/index_en.rst diff --git a/doc/faq/parameter/index_cn.rst b/doc/v2/faq/parameter/index_cn.rst similarity index 100% rename from doc/faq/parameter/index_cn.rst rename to doc/v2/faq/parameter/index_cn.rst diff --git a/doc/faq/parameter/index_en.rst b/doc/v2/faq/parameter/index_en.rst similarity index 100% rename from doc/faq/parameter/index_en.rst rename to doc/v2/faq/parameter/index_en.rst diff --git a/doc/getstarted/concepts/src/infer.py b/doc/v2/getstarted/concepts/src/infer.py similarity index 100% rename from doc/getstarted/concepts/src/infer.py rename to doc/v2/getstarted/concepts/src/infer.py diff --git a/doc/getstarted/concepts/src/train.py b/doc/v2/getstarted/concepts/src/train.py similarity index 100% rename from doc/getstarted/concepts/src/train.py rename to doc/v2/getstarted/concepts/src/train.py diff --git a/doc/getstarted/concepts/use_concepts_cn.rst b/doc/v2/getstarted/concepts/use_concepts_cn.rst similarity index 100% rename from doc/getstarted/concepts/use_concepts_cn.rst rename to doc/v2/getstarted/concepts/use_concepts_cn.rst diff --git a/doc/getstarted/concepts/use_concepts_en.rst b/doc/v2/getstarted/concepts/use_concepts_en.rst similarity index 100% rename from doc/getstarted/concepts/use_concepts_en.rst rename to doc/v2/getstarted/concepts/use_concepts_en.rst diff --git a/doc/getstarted/index_cn.rst b/doc/v2/getstarted/index_cn.rst similarity index 100% rename from doc/getstarted/index_cn.rst rename to doc/v2/getstarted/index_cn.rst diff --git a/doc/getstarted/index_en.rst b/doc/v2/getstarted/index_en.rst similarity index 100% rename from doc/getstarted/index_en.rst rename to doc/v2/getstarted/index_en.rst diff --git a/doc/getstarted/quickstart_cn.rst b/doc/v2/getstarted/quickstart_cn.rst similarity index 100% rename from doc/getstarted/quickstart_cn.rst rename to doc/v2/getstarted/quickstart_cn.rst diff --git a/doc/getstarted/quickstart_en.rst b/doc/v2/getstarted/quickstart_en.rst similarity index 100% rename from doc/getstarted/quickstart_en.rst rename to doc/v2/getstarted/quickstart_en.rst diff --git a/doc/howto/capi/compile_paddle_lib_cn.md b/doc/v2/howto/capi/compile_paddle_lib_cn.md similarity index 100% rename from doc/howto/capi/compile_paddle_lib_cn.md rename to doc/v2/howto/capi/compile_paddle_lib_cn.md diff --git a/doc/howto/capi/compile_paddle_lib_en.md b/doc/v2/howto/capi/compile_paddle_lib_en.md similarity index 100% rename from doc/howto/capi/compile_paddle_lib_en.md rename to doc/v2/howto/capi/compile_paddle_lib_en.md diff --git a/doc/howto/capi/images/csr.png b/doc/v2/howto/capi/images/csr.png similarity index 100% rename from doc/howto/capi/images/csr.png rename to doc/v2/howto/capi/images/csr.png diff --git a/doc/howto/capi/images/sequence_data.png b/doc/v2/howto/capi/images/sequence_data.png similarity index 100% rename from doc/howto/capi/images/sequence_data.png rename to doc/v2/howto/capi/images/sequence_data.png diff --git a/doc/howto/capi/images/workflow_of_CAPI.png b/doc/v2/howto/capi/images/workflow_of_CAPI.png similarity index 100% rename from doc/howto/capi/images/workflow_of_CAPI.png rename to doc/v2/howto/capi/images/workflow_of_CAPI.png diff --git a/doc/howto/capi/index_cn.rst b/doc/v2/howto/capi/index_cn.rst similarity index 100% rename from doc/howto/capi/index_cn.rst rename to doc/v2/howto/capi/index_cn.rst diff --git a/doc/howto/capi/index_en.rst b/doc/v2/howto/capi/index_en.rst similarity index 100% rename from doc/howto/capi/index_en.rst rename to doc/v2/howto/capi/index_en.rst diff --git a/doc/howto/capi/organization_of_the_inputs_cn.md b/doc/v2/howto/capi/organization_of_the_inputs_cn.md similarity index 100% rename from doc/howto/capi/organization_of_the_inputs_cn.md rename to doc/v2/howto/capi/organization_of_the_inputs_cn.md diff --git a/doc/howto/capi/organization_of_the_inputs_en.md b/doc/v2/howto/capi/organization_of_the_inputs_en.md similarity index 100% rename from doc/howto/capi/organization_of_the_inputs_en.md rename to doc/v2/howto/capi/organization_of_the_inputs_en.md diff --git a/doc/howto/capi/workflow_of_capi_cn.md b/doc/v2/howto/capi/workflow_of_capi_cn.md similarity index 100% rename from doc/howto/capi/workflow_of_capi_cn.md rename to doc/v2/howto/capi/workflow_of_capi_cn.md diff --git a/doc/howto/capi/workflow_of_capi_en.md b/doc/v2/howto/capi/workflow_of_capi_en.md similarity index 100% rename from doc/howto/capi/workflow_of_capi_en.md rename to doc/v2/howto/capi/workflow_of_capi_en.md diff --git a/doc/howto/cluster/cmd_argument_cn.md b/doc/v2/howto/cluster/cmd_argument_cn.md similarity index 100% rename from doc/howto/cluster/cmd_argument_cn.md rename to doc/v2/howto/cluster/cmd_argument_cn.md diff --git a/doc/howto/cluster/cmd_argument_en.md b/doc/v2/howto/cluster/cmd_argument_en.md similarity index 100% rename from doc/howto/cluster/cmd_argument_en.md rename to doc/v2/howto/cluster/cmd_argument_en.md diff --git a/doc/howto/cluster/fluid_cluster_train_en.md b/doc/v2/howto/cluster/fluid_cluster_train_en.md similarity index 100% rename from doc/howto/cluster/fluid_cluster_train_en.md rename to doc/v2/howto/cluster/fluid_cluster_train_en.md diff --git a/doc/howto/cluster/index_cn.rst b/doc/v2/howto/cluster/index_cn.rst similarity index 100% rename from doc/howto/cluster/index_cn.rst rename to doc/v2/howto/cluster/index_cn.rst diff --git a/doc/howto/cluster/index_en.rst b/doc/v2/howto/cluster/index_en.rst similarity index 100% rename from doc/howto/cluster/index_en.rst rename to doc/v2/howto/cluster/index_en.rst diff --git a/doc/howto/cluster/multi_cluster/fabric_cn.md b/doc/v2/howto/cluster/multi_cluster/fabric_cn.md similarity index 100% rename from doc/howto/cluster/multi_cluster/fabric_cn.md rename to doc/v2/howto/cluster/multi_cluster/fabric_cn.md diff --git a/doc/howto/cluster/multi_cluster/fabric_en.md b/doc/v2/howto/cluster/multi_cluster/fabric_en.md similarity index 100% rename from doc/howto/cluster/multi_cluster/fabric_en.md rename to doc/v2/howto/cluster/multi_cluster/fabric_en.md diff --git a/doc/howto/cluster/multi_cluster/index_cn.rst b/doc/v2/howto/cluster/multi_cluster/index_cn.rst similarity index 100% rename from doc/howto/cluster/multi_cluster/index_cn.rst rename to doc/v2/howto/cluster/multi_cluster/index_cn.rst diff --git a/doc/howto/cluster/multi_cluster/index_en.rst b/doc/v2/howto/cluster/multi_cluster/index_en.rst similarity index 100% rename from doc/howto/cluster/multi_cluster/index_en.rst rename to doc/v2/howto/cluster/multi_cluster/index_en.rst diff --git a/doc/howto/cluster/multi_cluster/k8s_aws_cn.md b/doc/v2/howto/cluster/multi_cluster/k8s_aws_cn.md similarity index 100% rename from doc/howto/cluster/multi_cluster/k8s_aws_cn.md rename to doc/v2/howto/cluster/multi_cluster/k8s_aws_cn.md diff --git a/doc/howto/cluster/multi_cluster/k8s_aws_en.md b/doc/v2/howto/cluster/multi_cluster/k8s_aws_en.md similarity index 100% rename from doc/howto/cluster/multi_cluster/k8s_aws_en.md rename to doc/v2/howto/cluster/multi_cluster/k8s_aws_en.md diff --git a/doc/howto/cluster/multi_cluster/k8s_cn.md b/doc/v2/howto/cluster/multi_cluster/k8s_cn.md similarity index 100% rename from doc/howto/cluster/multi_cluster/k8s_cn.md rename to doc/v2/howto/cluster/multi_cluster/k8s_cn.md diff --git a/doc/howto/cluster/multi_cluster/k8s_distributed_cn.md b/doc/v2/howto/cluster/multi_cluster/k8s_distributed_cn.md similarity index 100% rename from doc/howto/cluster/multi_cluster/k8s_distributed_cn.md rename to doc/v2/howto/cluster/multi_cluster/k8s_distributed_cn.md diff --git a/doc/howto/cluster/multi_cluster/k8s_distributed_en.md b/doc/v2/howto/cluster/multi_cluster/k8s_distributed_en.md similarity index 100% rename from doc/howto/cluster/multi_cluster/k8s_distributed_en.md rename to doc/v2/howto/cluster/multi_cluster/k8s_distributed_en.md diff --git a/doc/howto/cluster/multi_cluster/k8s_en.md b/doc/v2/howto/cluster/multi_cluster/k8s_en.md similarity index 100% rename from doc/howto/cluster/multi_cluster/k8s_en.md rename to doc/v2/howto/cluster/multi_cluster/k8s_en.md diff --git a/doc/howto/cluster/multi_cluster/openmpi_cn.md b/doc/v2/howto/cluster/multi_cluster/openmpi_cn.md similarity index 100% rename from doc/howto/cluster/multi_cluster/openmpi_cn.md rename to doc/v2/howto/cluster/multi_cluster/openmpi_cn.md diff --git a/doc/howto/cluster/multi_cluster/openmpi_en.md b/doc/v2/howto/cluster/multi_cluster/openmpi_en.md similarity index 100% rename from doc/howto/cluster/multi_cluster/openmpi_en.md rename to doc/v2/howto/cluster/multi_cluster/openmpi_en.md diff --git a/doc/howto/cluster/multi_cluster/src/add_security_group.png b/doc/v2/howto/cluster/multi_cluster/src/add_security_group.png similarity index 100% rename from doc/howto/cluster/multi_cluster/src/add_security_group.png rename to doc/v2/howto/cluster/multi_cluster/src/add_security_group.png diff --git a/doc/howto/cluster/multi_cluster/src/create_efs.png b/doc/v2/howto/cluster/multi_cluster/src/create_efs.png similarity index 100% rename from doc/howto/cluster/multi_cluster/src/create_efs.png rename to doc/v2/howto/cluster/multi_cluster/src/create_efs.png diff --git a/doc/howto/cluster/multi_cluster/src/k8s-paddle-arch.png b/doc/v2/howto/cluster/multi_cluster/src/k8s-paddle-arch.png similarity index 100% rename from doc/howto/cluster/multi_cluster/src/k8s-paddle-arch.png rename to doc/v2/howto/cluster/multi_cluster/src/k8s-paddle-arch.png diff --git a/doc/howto/cluster/multi_cluster/src/k8s_data/Dockerfile b/doc/v2/howto/cluster/multi_cluster/src/k8s_data/Dockerfile similarity index 100% rename from doc/howto/cluster/multi_cluster/src/k8s_data/Dockerfile rename to doc/v2/howto/cluster/multi_cluster/src/k8s_data/Dockerfile diff --git a/doc/howto/cluster/multi_cluster/src/k8s_data/README.md b/doc/v2/howto/cluster/multi_cluster/src/k8s_data/README.md similarity index 100% rename from doc/howto/cluster/multi_cluster/src/k8s_data/README.md rename to doc/v2/howto/cluster/multi_cluster/src/k8s_data/README.md diff --git a/doc/howto/cluster/multi_cluster/src/k8s_data/get_data.sh b/doc/v2/howto/cluster/multi_cluster/src/k8s_data/get_data.sh similarity index 100% rename from doc/howto/cluster/multi_cluster/src/k8s_data/get_data.sh rename to doc/v2/howto/cluster/multi_cluster/src/k8s_data/get_data.sh diff --git a/doc/howto/cluster/multi_cluster/src/k8s_train/Dockerfile b/doc/v2/howto/cluster/multi_cluster/src/k8s_train/Dockerfile similarity index 100% rename from doc/howto/cluster/multi_cluster/src/k8s_train/Dockerfile rename to doc/v2/howto/cluster/multi_cluster/src/k8s_train/Dockerfile diff --git a/doc/howto/cluster/multi_cluster/src/k8s_train/README.md b/doc/v2/howto/cluster/multi_cluster/src/k8s_train/README.md similarity index 100% rename from doc/howto/cluster/multi_cluster/src/k8s_train/README.md rename to doc/v2/howto/cluster/multi_cluster/src/k8s_train/README.md diff --git a/doc/howto/cluster/multi_cluster/src/k8s_train/start.sh b/doc/v2/howto/cluster/multi_cluster/src/k8s_train/start.sh similarity index 100% rename from doc/howto/cluster/multi_cluster/src/k8s_train/start.sh rename to doc/v2/howto/cluster/multi_cluster/src/k8s_train/start.sh diff --git a/doc/howto/cluster/multi_cluster/src/k8s_train/start_paddle.py b/doc/v2/howto/cluster/multi_cluster/src/k8s_train/start_paddle.py similarity index 100% rename from doc/howto/cluster/multi_cluster/src/k8s_train/start_paddle.py rename to doc/v2/howto/cluster/multi_cluster/src/k8s_train/start_paddle.py diff --git a/doc/howto/cluster/multi_cluster/src/pserver_and_trainer.png b/doc/v2/howto/cluster/multi_cluster/src/pserver_and_trainer.png similarity index 100% rename from doc/howto/cluster/multi_cluster/src/pserver_and_trainer.png rename to doc/v2/howto/cluster/multi_cluster/src/pserver_and_trainer.png diff --git a/doc/howto/cluster/multi_cluster/src/route53_create_recordset.png b/doc/v2/howto/cluster/multi_cluster/src/route53_create_recordset.png similarity index 100% rename from doc/howto/cluster/multi_cluster/src/route53_create_recordset.png rename to doc/v2/howto/cluster/multi_cluster/src/route53_create_recordset.png diff --git a/doc/howto/cluster/multi_cluster/src/route53_create_zone.png b/doc/v2/howto/cluster/multi_cluster/src/route53_create_zone.png similarity index 100% rename from doc/howto/cluster/multi_cluster/src/route53_create_zone.png rename to doc/v2/howto/cluster/multi_cluster/src/route53_create_zone.png diff --git a/doc/howto/cluster/multi_cluster/src/worker_security_group.png b/doc/v2/howto/cluster/multi_cluster/src/worker_security_group.png similarity index 100% rename from doc/howto/cluster/multi_cluster/src/worker_security_group.png rename to doc/v2/howto/cluster/multi_cluster/src/worker_security_group.png diff --git a/doc/howto/cluster/preparations_cn.md b/doc/v2/howto/cluster/preparations_cn.md similarity index 100% rename from doc/howto/cluster/preparations_cn.md rename to doc/v2/howto/cluster/preparations_cn.md diff --git a/doc/howto/cluster/preparations_en.md b/doc/v2/howto/cluster/preparations_en.md similarity index 100% rename from doc/howto/cluster/preparations_en.md rename to doc/v2/howto/cluster/preparations_en.md diff --git a/doc/howto/cluster/src/Dockerfile b/doc/v2/howto/cluster/src/Dockerfile similarity index 100% rename from doc/howto/cluster/src/Dockerfile rename to doc/v2/howto/cluster/src/Dockerfile diff --git a/doc/howto/cluster/src/efs_mount.png b/doc/v2/howto/cluster/src/efs_mount.png similarity index 100% rename from doc/howto/cluster/src/efs_mount.png rename to doc/v2/howto/cluster/src/efs_mount.png diff --git a/doc/howto/cluster/src/managed_policy.png b/doc/v2/howto/cluster/src/managed_policy.png similarity index 100% rename from doc/howto/cluster/src/managed_policy.png rename to doc/v2/howto/cluster/src/managed_policy.png diff --git a/doc/howto/cluster/src/ps_cn.png b/doc/v2/howto/cluster/src/ps_cn.png similarity index 100% rename from doc/howto/cluster/src/ps_cn.png rename to doc/v2/howto/cluster/src/ps_cn.png diff --git a/doc/howto/cluster/src/ps_en.png b/doc/v2/howto/cluster/src/ps_en.png similarity index 100% rename from doc/howto/cluster/src/ps_en.png rename to doc/v2/howto/cluster/src/ps_en.png diff --git a/doc/howto/cluster/src/trainer.png b/doc/v2/howto/cluster/src/trainer.png similarity index 100% rename from doc/howto/cluster/src/trainer.png rename to doc/v2/howto/cluster/src/trainer.png diff --git a/doc/howto/cluster/src/trainer_cn.png b/doc/v2/howto/cluster/src/trainer_cn.png similarity index 100% rename from doc/howto/cluster/src/trainer_cn.png rename to doc/v2/howto/cluster/src/trainer_cn.png diff --git a/doc/howto/cluster/src/word2vec/api_train_v2.py b/doc/v2/howto/cluster/src/word2vec/api_train_v2.py similarity index 100% rename from doc/howto/cluster/src/word2vec/api_train_v2.py rename to doc/v2/howto/cluster/src/word2vec/api_train_v2.py diff --git a/doc/howto/cluster/src/word2vec/api_train_v2_cluster.py b/doc/v2/howto/cluster/src/word2vec/api_train_v2_cluster.py similarity index 100% rename from doc/howto/cluster/src/word2vec/api_train_v2_cluster.py rename to doc/v2/howto/cluster/src/word2vec/api_train_v2_cluster.py diff --git a/doc/howto/cluster/src/word2vec/prepare.py b/doc/v2/howto/cluster/src/word2vec/prepare.py similarity index 100% rename from doc/howto/cluster/src/word2vec/prepare.py rename to doc/v2/howto/cluster/src/word2vec/prepare.py diff --git a/doc/howto/cmd_parameter/arguments_cn.md b/doc/v2/howto/cmd_parameter/arguments_cn.md similarity index 100% rename from doc/howto/cmd_parameter/arguments_cn.md rename to doc/v2/howto/cmd_parameter/arguments_cn.md diff --git a/doc/howto/cmd_parameter/arguments_en.md b/doc/v2/howto/cmd_parameter/arguments_en.md similarity index 100% rename from doc/howto/cmd_parameter/arguments_en.md rename to doc/v2/howto/cmd_parameter/arguments_en.md diff --git a/doc/howto/cmd_parameter/detail_introduction_cn.md b/doc/v2/howto/cmd_parameter/detail_introduction_cn.md similarity index 100% rename from doc/howto/cmd_parameter/detail_introduction_cn.md rename to doc/v2/howto/cmd_parameter/detail_introduction_cn.md diff --git a/doc/howto/cmd_parameter/detail_introduction_en.md b/doc/v2/howto/cmd_parameter/detail_introduction_en.md similarity index 100% rename from doc/howto/cmd_parameter/detail_introduction_en.md rename to doc/v2/howto/cmd_parameter/detail_introduction_en.md diff --git a/doc/howto/cmd_parameter/index_cn.rst b/doc/v2/howto/cmd_parameter/index_cn.rst similarity index 100% rename from doc/howto/cmd_parameter/index_cn.rst rename to doc/v2/howto/cmd_parameter/index_cn.rst diff --git a/doc/howto/cmd_parameter/index_en.rst b/doc/v2/howto/cmd_parameter/index_en.rst similarity index 100% rename from doc/howto/cmd_parameter/index_en.rst rename to doc/v2/howto/cmd_parameter/index_en.rst diff --git a/doc/howto/cmd_parameter/use_case_cn.md b/doc/v2/howto/cmd_parameter/use_case_cn.md similarity index 100% rename from doc/howto/cmd_parameter/use_case_cn.md rename to doc/v2/howto/cmd_parameter/use_case_cn.md diff --git a/doc/howto/cmd_parameter/use_case_en.md b/doc/v2/howto/cmd_parameter/use_case_en.md similarity index 100% rename from doc/howto/cmd_parameter/use_case_en.md rename to doc/v2/howto/cmd_parameter/use_case_en.md diff --git a/doc/howto/index_cn.rst b/doc/v2/howto/index_cn.rst similarity index 100% rename from doc/howto/index_cn.rst rename to doc/v2/howto/index_cn.rst diff --git a/doc/howto/index_en.rst b/doc/v2/howto/index_en.rst similarity index 100% rename from doc/howto/index_en.rst rename to doc/v2/howto/index_en.rst diff --git a/doc/howto/optimization/cpu_profiling_cn.md b/doc/v2/howto/optimization/cpu_profiling_cn.md similarity index 100% rename from doc/howto/optimization/cpu_profiling_cn.md rename to doc/v2/howto/optimization/cpu_profiling_cn.md diff --git a/doc/howto/optimization/cpu_profiling_en.md b/doc/v2/howto/optimization/cpu_profiling_en.md similarity index 100% rename from doc/howto/optimization/cpu_profiling_en.md rename to doc/v2/howto/optimization/cpu_profiling_en.md diff --git a/doc/howto/optimization/gpu_profiling_cn.rst b/doc/v2/howto/optimization/gpu_profiling_cn.rst similarity index 100% rename from doc/howto/optimization/gpu_profiling_cn.rst rename to doc/v2/howto/optimization/gpu_profiling_cn.rst diff --git a/doc/howto/optimization/gpu_profiling_en.rst b/doc/v2/howto/optimization/gpu_profiling_en.rst similarity index 100% rename from doc/howto/optimization/gpu_profiling_en.rst rename to doc/v2/howto/optimization/gpu_profiling_en.rst diff --git a/doc/howto/optimization/nvvp1.png b/doc/v2/howto/optimization/nvvp1.png similarity index 100% rename from doc/howto/optimization/nvvp1.png rename to doc/v2/howto/optimization/nvvp1.png diff --git a/doc/howto/optimization/nvvp2.png b/doc/v2/howto/optimization/nvvp2.png similarity index 100% rename from doc/howto/optimization/nvvp2.png rename to doc/v2/howto/optimization/nvvp2.png diff --git a/doc/howto/optimization/nvvp3.png b/doc/v2/howto/optimization/nvvp3.png similarity index 100% rename from doc/howto/optimization/nvvp3.png rename to doc/v2/howto/optimization/nvvp3.png diff --git a/doc/howto/optimization/nvvp4.png b/doc/v2/howto/optimization/nvvp4.png similarity index 100% rename from doc/howto/optimization/nvvp4.png rename to doc/v2/howto/optimization/nvvp4.png diff --git a/doc/howto/optimization/pprof_1.png b/doc/v2/howto/optimization/pprof_1.png similarity index 100% rename from doc/howto/optimization/pprof_1.png rename to doc/v2/howto/optimization/pprof_1.png diff --git a/doc/howto/optimization/pprof_2.png b/doc/v2/howto/optimization/pprof_2.png similarity index 100% rename from doc/howto/optimization/pprof_2.png rename to doc/v2/howto/optimization/pprof_2.png diff --git a/doc/howto/read_source.md b/doc/v2/howto/read_source.md similarity index 100% rename from doc/howto/read_source.md rename to doc/v2/howto/read_source.md diff --git a/doc/howto/rnn/hierarchical_layer_cn.rst b/doc/v2/howto/rnn/hierarchical_layer_cn.rst similarity index 100% rename from doc/howto/rnn/hierarchical_layer_cn.rst rename to doc/v2/howto/rnn/hierarchical_layer_cn.rst diff --git a/doc/howto/rnn/hierarchical_layer_en.rst b/doc/v2/howto/rnn/hierarchical_layer_en.rst similarity index 100% rename from doc/howto/rnn/hierarchical_layer_en.rst rename to doc/v2/howto/rnn/hierarchical_layer_en.rst diff --git a/doc/howto/rnn/hrnn_rnn_api_compare_cn.rst b/doc/v2/howto/rnn/hrnn_rnn_api_compare_cn.rst similarity index 100% rename from doc/howto/rnn/hrnn_rnn_api_compare_cn.rst rename to doc/v2/howto/rnn/hrnn_rnn_api_compare_cn.rst diff --git a/doc/howto/rnn/hrnn_rnn_api_compare_en.rst b/doc/v2/howto/rnn/hrnn_rnn_api_compare_en.rst similarity index 100% rename from doc/howto/rnn/hrnn_rnn_api_compare_en.rst rename to doc/v2/howto/rnn/hrnn_rnn_api_compare_en.rst diff --git a/doc/howto/rnn/index_cn.rst b/doc/v2/howto/rnn/index_cn.rst similarity index 100% rename from doc/howto/rnn/index_cn.rst rename to doc/v2/howto/rnn/index_cn.rst diff --git a/doc/howto/rnn/index_en.rst b/doc/v2/howto/rnn/index_en.rst similarity index 100% rename from doc/howto/rnn/index_en.rst rename to doc/v2/howto/rnn/index_en.rst diff --git a/doc/howto/rnn/recurrent_group_cn.md b/doc/v2/howto/rnn/recurrent_group_cn.md similarity index 100% rename from doc/howto/rnn/recurrent_group_cn.md rename to doc/v2/howto/rnn/recurrent_group_cn.md diff --git a/doc/howto/rnn/recurrent_group_en.md b/doc/v2/howto/rnn/recurrent_group_en.md similarity index 100% rename from doc/howto/rnn/recurrent_group_en.md rename to doc/v2/howto/rnn/recurrent_group_en.md diff --git a/doc/howto/rnn/rnn_config_cn.rst b/doc/v2/howto/rnn/rnn_config_cn.rst similarity index 100% rename from doc/howto/rnn/rnn_config_cn.rst rename to doc/v2/howto/rnn/rnn_config_cn.rst diff --git a/doc/howto/rnn/rnn_config_en.rst b/doc/v2/howto/rnn/rnn_config_en.rst similarity index 100% rename from doc/howto/rnn/rnn_config_en.rst rename to doc/v2/howto/rnn/rnn_config_en.rst diff --git a/doc/howto/rnn/src/bi_lstm.jpg b/doc/v2/howto/rnn/src/bi_lstm.jpg similarity index 100% rename from doc/howto/rnn/src/bi_lstm.jpg rename to doc/v2/howto/rnn/src/bi_lstm.jpg diff --git a/doc/howto/rnn/src/encoder-decoder-attention-model.png b/doc/v2/howto/rnn/src/encoder-decoder-attention-model.png similarity index 100% rename from doc/howto/rnn/src/encoder-decoder-attention-model.png rename to doc/v2/howto/rnn/src/encoder-decoder-attention-model.png diff --git a/doc/howto/rnn/src/glossary_rnn.dot b/doc/v2/howto/rnn/src/glossary_rnn.dot similarity index 100% rename from doc/howto/rnn/src/glossary_rnn.dot rename to doc/v2/howto/rnn/src/glossary_rnn.dot diff --git a/doc/howto/rnn/src/glossary_rnn_with_memory.dot b/doc/v2/howto/rnn/src/glossary_rnn_with_memory.dot similarity index 100% rename from doc/howto/rnn/src/glossary_rnn_with_memory.dot rename to doc/v2/howto/rnn/src/glossary_rnn_with_memory.dot diff --git a/doc/howto/rnn/src/simple_full_hierarchical_recurrent.dot b/doc/v2/howto/rnn/src/simple_full_hierarchical_recurrent.dot similarity index 100% rename from doc/howto/rnn/src/simple_full_hierarchical_recurrent.dot rename to doc/v2/howto/rnn/src/simple_full_hierarchical_recurrent.dot diff --git a/doc/howto/rnn/src/simple_full_recurrent.dot b/doc/v2/howto/rnn/src/simple_full_recurrent.dot similarity index 100% rename from doc/howto/rnn/src/simple_full_recurrent.dot rename to doc/v2/howto/rnn/src/simple_full_recurrent.dot diff --git a/doc/index_cn.rst b/doc/v2/index_cn.rst similarity index 100% rename from doc/index_cn.rst rename to doc/v2/index_cn.rst diff --git a/doc/index_en.rst b/doc/v2/index_en.rst similarity index 100% rename from doc/index_en.rst rename to doc/v2/index_en.rst From bcf5b62970b09825bb17307b0354025a4cd96c93 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Tue, 6 Mar 2018 10:03:56 +0800 Subject: [PATCH 2/4] refine CMakeLists.txt and build_doc.sh --- doc/CMakeLists.txt | 2 ++ doc/v2/CMakeLists.txt | 6 ++---- doc/v2/howto/optimization/gpu_profiling_cn.rst | 6 +++--- doc/v2/howto/optimization/gpu_profiling_en.rst | 6 +++--- paddle/scripts/travis/build_doc.sh | 8 ++++---- 5 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 doc/CMakeLists.txt diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 index 0000000000..cdd8de78ce --- /dev/null +++ b/doc/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory(api) +add_subdirectory(v2) diff --git a/doc/v2/CMakeLists.txt b/doc/v2/CMakeLists.txt index 58ce5d61c9..50714258f3 100644 --- a/doc/v2/CMakeLists.txt +++ b/doc/v2/CMakeLists.txt @@ -16,7 +16,7 @@ set(SPHINX_CACHE_DIR_EN "${CMAKE_CURRENT_BINARY_DIR}/en/_doctrees") set(SPHINX_HTML_DIR_EN "${CMAKE_CURRENT_BINARY_DIR}/en/html") configure_file( - "${CMAKE_CURRENT_SOURCE_DIR}/templates/conf.py.en.in" + "${CMAKE_CURRENT_SOURCE_DIR}/../templates/conf.py.en.in" "${BINARY_BUILD_DIR_EN}/conf.py" @ONLY) @@ -37,7 +37,7 @@ set(SPHINX_CACHE_DIR_CN "${CMAKE_CURRENT_BINARY_DIR}/cn/_doctrees") set(SPHINX_HTML_DIR_CN "${CMAKE_CURRENT_BINARY_DIR}/cn/html") configure_file( - "${CMAKE_CURRENT_SOURCE_DIR}/templates/conf.py.cn.in" + "${CMAKE_CURRENT_SOURCE_DIR}/../templates/conf.py.cn.in" "${BINARY_BUILD_DIR_CN}/conf.py" @ONLY) @@ -47,5 +47,3 @@ sphinx_add_target(paddle_docs_cn ${SPHINX_CACHE_DIR_CN} ${CMAKE_CURRENT_SOURCE_DIR} ${SPHINX_HTML_DIR_CN}) - -add_subdirectory(api) diff --git a/doc/v2/howto/optimization/gpu_profiling_cn.rst b/doc/v2/howto/optimization/gpu_profiling_cn.rst index 0239eef4f1..25bcaccb69 100644 --- a/doc/v2/howto/optimization/gpu_profiling_cn.rst +++ b/doc/v2/howto/optimization/gpu_profiling_cn.rst @@ -55,7 +55,7 @@ above profilers. :code:`paddle/math/test` 目录中的 :code:`test_GpuProfiler` 就是用于展示上述分析工具的用法。 -.. literalinclude:: ../../../paddle/math/tests/test_GpuProfiler.cpp +.. literalinclude:: ../../../../paddle/math/tests/test_GpuProfiler.cpp :language: c++ :lines: 137-151 :linenos: @@ -83,7 +83,7 @@ program crashes when CPU version of PaddlePaddle invokes them. 1. 加入 :code:`REGISTER_TIMER_INFO` 和 :code:`printAllStatus` 函数(如高亮部分)。 - .. literalinclude:: ../../../paddle/math/tests/test_GpuProfiler.cpp + .. literalinclude:: ../../../../paddle/math/tests/test_GpuProfiler.cpp :language: c++ :lines: 137-151 :emphasize-lines: 8-12,14 @@ -130,7 +130,7 @@ nvprof 工具 1. 将 :code:`REGISTER_GPU_PROFILER` 函数加到代码中(参考强调部分)。 - .. literalinclude:: ../../../paddle/math/tests/test_GpuProfiler.cpp + .. literalinclude:: ../../../../paddle/math/tests/test_GpuProfiler.cpp :language: c++ :lines: 137-151 :emphasize-lines: 6-7 diff --git a/doc/v2/howto/optimization/gpu_profiling_en.rst b/doc/v2/howto/optimization/gpu_profiling_en.rst index ed208ceaf7..50adb7da24 100644 --- a/doc/v2/howto/optimization/gpu_profiling_en.rst +++ b/doc/v2/howto/optimization/gpu_profiling_en.rst @@ -54,7 +54,7 @@ In this tutorial, we will focus on nvprof and nvvp. :code:`test_GpuProfiler` from :code:`paddle/math/tests` directory will be used to evaluate above profilers. -.. literalinclude:: ../../../paddle/math/tests/test_GpuProfiler.cpp +.. literalinclude:: ../../../../paddle/math/tests/test_GpuProfiler.cpp :language: c++ :lines: 137-151 :linenos: @@ -80,7 +80,7 @@ As a simple example, consider the following: 1. Add :code:`REGISTER_TIMER_INFO` and :code:`printAllStatus` functions (see the emphasize-lines). - .. literalinclude:: ../../../paddle/math/tests/test_GpuProfiler.cpp + .. literalinclude:: ../../../../paddle/math/tests/test_GpuProfiler.cpp :language: c++ :lines: 137-151 :emphasize-lines: 8-12,14 @@ -127,7 +127,7 @@ To use this command line profiler **nvprof**, you can simply issue the following 1. Add :code:`REGISTER_GPU_PROFILER` function (see the emphasize-lines). - .. literalinclude:: ../../../paddle/math/tests/test_GpuProfiler.cpp + .. literalinclude:: ../../../../paddle/math/tests/test_GpuProfiler.cpp :language: c++ :lines: 137-151 :emphasize-lines: 6-7 diff --git a/paddle/scripts/travis/build_doc.sh b/paddle/scripts/travis/build_doc.sh index aa223d87ba..70c821fad9 100755 --- a/paddle/scripts/travis/build_doc.sh +++ b/paddle/scripts/travis/build_doc.sh @@ -12,8 +12,8 @@ make -j `nproc` copy_paddle_pybind make -j `nproc` paddle_docs paddle_docs_cn paddle_api_docs # check websites for broken links -linkchecker doc/en/html/index.html -linkchecker doc/cn/html/index.html +linkchecker doc/v2/en/html/index.html +linkchecker doc/v2/cn/html/index.html linkchecker doc/api/en/html/index.html # Parse Github URL @@ -55,8 +55,8 @@ function deploy_docs() { set +e rm -rf ${DIR}/doc ${DIR}/doc_cn ${DIR}/api_doc set -e - cp -r ../doc/cn/html ${DIR}/doc_cn - cp -r ../doc/en/html ${DIR}/doc + cp -r ../doc/v2/cn/html ${DIR}/doc_cn + cp -r ../doc/v2/en/html ${DIR}/doc cp -r ../doc/api/en/html ${DIR}/api_doc git add . } From 2f786776a83f5a1473033b1bda58cd2e6e1095d9 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Tue, 6 Mar 2018 10:54:18 +0800 Subject: [PATCH 3/4] create doc/fluid directory --- doc/{v2 => fluid}/dev/new_op_cn.md | 0 doc/{v2 => fluid}/dev/new_op_en.md | 0 doc/{v2 => fluid}/dev/new_op_kernel_en.md | 0 doc/{v2 => fluid}/dev/use_eigen_cn.md | 0 doc/{v2 => fluid}/dev/use_eigen_en.md | 0 doc/{v2 => fluid}/howto/cluster/fluid_cluster_train_en.md | 0 doc/{v2 => fluid}/howto/optimization/cpu_profiling_cn.md | 0 doc/{v2 => fluid}/howto/optimization/cpu_profiling_en.md | 0 doc/{v2/howto => fluid}/read_source.md | 0 9 files changed, 0 insertions(+), 0 deletions(-) rename doc/{v2 => fluid}/dev/new_op_cn.md (100%) rename doc/{v2 => fluid}/dev/new_op_en.md (100%) rename doc/{v2 => fluid}/dev/new_op_kernel_en.md (100%) rename doc/{v2 => fluid}/dev/use_eigen_cn.md (100%) rename doc/{v2 => fluid}/dev/use_eigen_en.md (100%) rename doc/{v2 => fluid}/howto/cluster/fluid_cluster_train_en.md (100%) rename doc/{v2 => fluid}/howto/optimization/cpu_profiling_cn.md (100%) rename doc/{v2 => fluid}/howto/optimization/cpu_profiling_en.md (100%) rename doc/{v2/howto => fluid}/read_source.md (100%) diff --git a/doc/v2/dev/new_op_cn.md b/doc/fluid/dev/new_op_cn.md similarity index 100% rename from doc/v2/dev/new_op_cn.md rename to doc/fluid/dev/new_op_cn.md diff --git a/doc/v2/dev/new_op_en.md b/doc/fluid/dev/new_op_en.md similarity index 100% rename from doc/v2/dev/new_op_en.md rename to doc/fluid/dev/new_op_en.md diff --git a/doc/v2/dev/new_op_kernel_en.md b/doc/fluid/dev/new_op_kernel_en.md similarity index 100% rename from doc/v2/dev/new_op_kernel_en.md rename to doc/fluid/dev/new_op_kernel_en.md diff --git a/doc/v2/dev/use_eigen_cn.md b/doc/fluid/dev/use_eigen_cn.md similarity index 100% rename from doc/v2/dev/use_eigen_cn.md rename to doc/fluid/dev/use_eigen_cn.md diff --git a/doc/v2/dev/use_eigen_en.md b/doc/fluid/dev/use_eigen_en.md similarity index 100% rename from doc/v2/dev/use_eigen_en.md rename to doc/fluid/dev/use_eigen_en.md diff --git a/doc/v2/howto/cluster/fluid_cluster_train_en.md b/doc/fluid/howto/cluster/fluid_cluster_train_en.md similarity index 100% rename from doc/v2/howto/cluster/fluid_cluster_train_en.md rename to doc/fluid/howto/cluster/fluid_cluster_train_en.md diff --git a/doc/v2/howto/optimization/cpu_profiling_cn.md b/doc/fluid/howto/optimization/cpu_profiling_cn.md similarity index 100% rename from doc/v2/howto/optimization/cpu_profiling_cn.md rename to doc/fluid/howto/optimization/cpu_profiling_cn.md diff --git a/doc/v2/howto/optimization/cpu_profiling_en.md b/doc/fluid/howto/optimization/cpu_profiling_en.md similarity index 100% rename from doc/v2/howto/optimization/cpu_profiling_en.md rename to doc/fluid/howto/optimization/cpu_profiling_en.md diff --git a/doc/v2/howto/read_source.md b/doc/fluid/read_source.md similarity index 100% rename from doc/v2/howto/read_source.md rename to doc/fluid/read_source.md From 41cbfbba5b61474172b139eb586a992bef6ded17 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Tue, 6 Mar 2018 11:05:51 +0800 Subject: [PATCH 4/4] * fix html_static_path warning * add write_new_layers in rst tree --- doc/templates/conf.py.cn.in | 2 +- doc/templates/conf.py.en.in | 2 +- doc/v2/dev/index_cn.rst | 1 + doc/v2/dev/index_en.rst | 1 + doc/v2/dev/new_layer_cn.rst | 6 +++--- doc/v2/howto/index_en.rst | 1 + 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/templates/conf.py.cn.in b/doc/templates/conf.py.cn.in index 32b2071385..260b6c9fd1 100644 --- a/doc/templates/conf.py.cn.in +++ b/doc/templates/conf.py.cn.in @@ -121,7 +121,7 @@ html_theme = 'sphinx_rtd_theme' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['@PADDLE_SOURCE_DIR@/doc_theme/static'] +#html_static_path = [] # Output file base name for HTML help builder. htmlhelp_basename = project + 'doc' diff --git a/doc/templates/conf.py.en.in b/doc/templates/conf.py.en.in index a454e80c61..e5757b86b4 100644 --- a/doc/templates/conf.py.en.in +++ b/doc/templates/conf.py.en.in @@ -121,7 +121,7 @@ html_theme = 'sphinx_rtd_theme' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['@PADDLE_SOURCE_DIR@/doc_theme/static'] +#html_static_path = [] # Output file base name for HTML help builder. htmlhelp_basename = project + 'doc' diff --git a/doc/v2/dev/index_cn.rst b/doc/v2/dev/index_cn.rst index 487db868bb..c488191b81 100644 --- a/doc/v2/dev/index_cn.rst +++ b/doc/v2/dev/index_cn.rst @@ -6,3 +6,4 @@ contribute_to_paddle_cn.md write_docs_cn.rst + new_layer_cn.rst diff --git a/doc/v2/dev/index_en.rst b/doc/v2/dev/index_en.rst index 5fdc30a2d6..549f5fa9aa 100644 --- a/doc/v2/dev/index_en.rst +++ b/doc/v2/dev/index_en.rst @@ -6,3 +6,4 @@ Development contribute_to_paddle_en.md write_docs_en.rst + new_layer_en.rst diff --git a/doc/v2/dev/new_layer_cn.rst b/doc/v2/dev/new_layer_cn.rst index 75037e693b..0ded1c262a 100644 --- a/doc/v2/dev/new_layer_cn.rst +++ b/doc/v2/dev/new_layer_cn.rst @@ -1,6 +1,6 @@ -================ -实现新的网络层 -================ +================== +如何实现新的网络层 +================== 这份教程展示了如何在PaddlePaddle中实现一个自定义的网络层。在这里我们使用全连接层作为例子来展示实现新网络层所需要的四个步骤。 diff --git a/doc/v2/howto/index_en.rst b/doc/v2/howto/index_en.rst index ae8b86f75b..2079be766f 100644 --- a/doc/v2/howto/index_en.rst +++ b/doc/v2/howto/index_en.rst @@ -6,5 +6,6 @@ HOW TO cmd_parameter/index_en.rst cluster/index_en.rst + capi/index_en.rst rnn/index_en.rst optimization/gpu_profiling_en.rst