From f5ebd1a51328f3cf50262b133ce36be2b1e49171 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Tue, 6 Mar 2018 14:00:46 +0800 Subject: [PATCH] fix document deployment --- .travis.yml | 2 +- doc/CMakeLists.txt | 1 - doc/v2/CMakeLists.txt | 2 ++ doc/{ => v2}/api/CMakeLists.txt | 2 +- doc/{api/v2 => v2/api}/config/activation.rst | 0 doc/{api/v2 => v2/api}/config/attr.rst | 0 doc/{api/v2 => v2/api}/config/evaluators.rst | 0 doc/{api/v2 => v2/api}/config/layer.rst | 0 doc/{api/v2 => v2/api}/config/networks.rst | 0 doc/{api/v2 => v2/api}/config/optimizer.rst | 0 doc/{api/v2 => v2/api}/config/pooling.rst | 0 doc/{api/v2 => v2/api}/data.rst | 0 doc/{api/v2 => v2/api}/data/data_reader.rst | 0 doc/{api/v2 => v2/api}/data/dataset.rst | 0 doc/{api/v2 => v2/api}/data/image.rst | 0 doc/{ => v2}/api/fluid/data_feeder.rst | 0 doc/{ => v2}/api/fluid/evaluator.rst | 0 doc/{ => v2}/api/fluid/executor.rst | 0 doc/{ => v2}/api/fluid/gen_doc.py | 0 doc/{ => v2}/api/fluid/gen_doc.sh | 0 doc/{ => v2}/api/fluid/index.rst | 0 doc/{ => v2}/api/fluid/initializer.rst | 0 doc/{ => v2}/api/fluid/io.rst | 0 doc/{ => v2}/api/fluid/layers.rst | 0 doc/{ => v2}/api/fluid/nets.rst | 0 doc/{ => v2}/api/fluid/optimizer.rst | 0 doc/{ => v2}/api/fluid/param_attr.rst | 0 doc/{ => v2}/api/fluid/profiler.rst | 0 doc/{ => v2}/api/fluid/regularizer.rst | 0 doc/{ => v2}/api/index_en.rst | 6 +++--- doc/{api/v2 => v2/api}/model_configs.rst | 0 doc/{ => v2}/api/overview.rst | 0 doc/{api/v2 => v2/api}/run_logic.rst | 0 33 files changed, 7 insertions(+), 6 deletions(-) rename doc/{ => v2}/api/CMakeLists.txt (90%) rename doc/{api/v2 => v2/api}/config/activation.rst (100%) rename doc/{api/v2 => v2/api}/config/attr.rst (100%) rename doc/{api/v2 => v2/api}/config/evaluators.rst (100%) rename doc/{api/v2 => v2/api}/config/layer.rst (100%) rename doc/{api/v2 => v2/api}/config/networks.rst (100%) rename doc/{api/v2 => v2/api}/config/optimizer.rst (100%) rename doc/{api/v2 => v2/api}/config/pooling.rst (100%) rename doc/{api/v2 => v2/api}/data.rst (100%) rename doc/{api/v2 => v2/api}/data/data_reader.rst (100%) rename doc/{api/v2 => v2/api}/data/dataset.rst (100%) rename doc/{api/v2 => v2/api}/data/image.rst (100%) rename doc/{ => v2}/api/fluid/data_feeder.rst (100%) rename doc/{ => v2}/api/fluid/evaluator.rst (100%) rename doc/{ => v2}/api/fluid/executor.rst (100%) rename doc/{ => v2}/api/fluid/gen_doc.py (100%) rename doc/{ => v2}/api/fluid/gen_doc.sh (100%) rename doc/{ => v2}/api/fluid/index.rst (100%) rename doc/{ => v2}/api/fluid/initializer.rst (100%) rename doc/{ => v2}/api/fluid/io.rst (100%) rename doc/{ => v2}/api/fluid/layers.rst (100%) rename doc/{ => v2}/api/fluid/nets.rst (100%) rename doc/{ => v2}/api/fluid/optimizer.rst (100%) rename doc/{ => v2}/api/fluid/param_attr.rst (100%) rename doc/{ => v2}/api/fluid/profiler.rst (100%) rename doc/{ => v2}/api/fluid/regularizer.rst (100%) rename doc/{ => v2}/api/index_en.rst (55%) rename doc/{api/v2 => v2/api}/model_configs.rst (100%) rename doc/{ => v2}/api/overview.rst (100%) rename doc/{api/v2 => v2/api}/run_logic.rst (100%) diff --git a/.travis.yml b/.travis.yml index ed566016ec6..9dd5f48164a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -56,7 +56,7 @@ script: export DEPLOY_DOCS_SH=https://raw.githubusercontent.com/PaddlePaddle/PaddlePaddle.org/master/scripts/deploy/deploy_docs.sh export DOCS_DIR=`pwd` cd .. - curl $DEPLOY_DOCS_SH | bash -s $CONTENT_DEC_PASSWD $TRAVIS_BRANCH $DOCS_DIR $DOCS_DIR/build/doc + curl $DEPLOY_DOCS_SH | bash -s $CONTENT_DEC_PASSWD $TRAVIS_BRANCH $DOCS_DIR $DOCS_DIR/build/doc/v2 notifications: email: on_success: change diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index cdd8de78cef..da67701ec1a 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,2 +1 @@ -add_subdirectory(api) add_subdirectory(v2) diff --git a/doc/v2/CMakeLists.txt b/doc/v2/CMakeLists.txt index 50714258f30..286fe8845cd 100644 --- a/doc/v2/CMakeLists.txt +++ b/doc/v2/CMakeLists.txt @@ -47,3 +47,5 @@ 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/api/CMakeLists.txt b/doc/v2/api/CMakeLists.txt similarity index 90% rename from doc/api/CMakeLists.txt rename to doc/v2/api/CMakeLists.txt index 4e0bc1d5b8e..2ad589e8a26 100644 --- a/doc/api/CMakeLists.txt +++ b/doc/v2/api/CMakeLists.txt @@ -8,7 +8,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) diff --git a/doc/api/v2/config/activation.rst b/doc/v2/api/config/activation.rst similarity index 100% rename from doc/api/v2/config/activation.rst rename to doc/v2/api/config/activation.rst diff --git a/doc/api/v2/config/attr.rst b/doc/v2/api/config/attr.rst similarity index 100% rename from doc/api/v2/config/attr.rst rename to doc/v2/api/config/attr.rst diff --git a/doc/api/v2/config/evaluators.rst b/doc/v2/api/config/evaluators.rst similarity index 100% rename from doc/api/v2/config/evaluators.rst rename to doc/v2/api/config/evaluators.rst diff --git a/doc/api/v2/config/layer.rst b/doc/v2/api/config/layer.rst similarity index 100% rename from doc/api/v2/config/layer.rst rename to doc/v2/api/config/layer.rst diff --git a/doc/api/v2/config/networks.rst b/doc/v2/api/config/networks.rst similarity index 100% rename from doc/api/v2/config/networks.rst rename to doc/v2/api/config/networks.rst diff --git a/doc/api/v2/config/optimizer.rst b/doc/v2/api/config/optimizer.rst similarity index 100% rename from doc/api/v2/config/optimizer.rst rename to doc/v2/api/config/optimizer.rst diff --git a/doc/api/v2/config/pooling.rst b/doc/v2/api/config/pooling.rst similarity index 100% rename from doc/api/v2/config/pooling.rst rename to doc/v2/api/config/pooling.rst diff --git a/doc/api/v2/data.rst b/doc/v2/api/data.rst similarity index 100% rename from doc/api/v2/data.rst rename to doc/v2/api/data.rst diff --git a/doc/api/v2/data/data_reader.rst b/doc/v2/api/data/data_reader.rst similarity index 100% rename from doc/api/v2/data/data_reader.rst rename to doc/v2/api/data/data_reader.rst diff --git a/doc/api/v2/data/dataset.rst b/doc/v2/api/data/dataset.rst similarity index 100% rename from doc/api/v2/data/dataset.rst rename to doc/v2/api/data/dataset.rst diff --git a/doc/api/v2/data/image.rst b/doc/v2/api/data/image.rst similarity index 100% rename from doc/api/v2/data/image.rst rename to doc/v2/api/data/image.rst diff --git a/doc/api/fluid/data_feeder.rst b/doc/v2/api/fluid/data_feeder.rst similarity index 100% rename from doc/api/fluid/data_feeder.rst rename to doc/v2/api/fluid/data_feeder.rst diff --git a/doc/api/fluid/evaluator.rst b/doc/v2/api/fluid/evaluator.rst similarity index 100% rename from doc/api/fluid/evaluator.rst rename to doc/v2/api/fluid/evaluator.rst diff --git a/doc/api/fluid/executor.rst b/doc/v2/api/fluid/executor.rst similarity index 100% rename from doc/api/fluid/executor.rst rename to doc/v2/api/fluid/executor.rst diff --git a/doc/api/fluid/gen_doc.py b/doc/v2/api/fluid/gen_doc.py similarity index 100% rename from doc/api/fluid/gen_doc.py rename to doc/v2/api/fluid/gen_doc.py diff --git a/doc/api/fluid/gen_doc.sh b/doc/v2/api/fluid/gen_doc.sh similarity index 100% rename from doc/api/fluid/gen_doc.sh rename to doc/v2/api/fluid/gen_doc.sh diff --git a/doc/api/fluid/index.rst b/doc/v2/api/fluid/index.rst similarity index 100% rename from doc/api/fluid/index.rst rename to doc/v2/api/fluid/index.rst diff --git a/doc/api/fluid/initializer.rst b/doc/v2/api/fluid/initializer.rst similarity index 100% rename from doc/api/fluid/initializer.rst rename to doc/v2/api/fluid/initializer.rst diff --git a/doc/api/fluid/io.rst b/doc/v2/api/fluid/io.rst similarity index 100% rename from doc/api/fluid/io.rst rename to doc/v2/api/fluid/io.rst diff --git a/doc/api/fluid/layers.rst b/doc/v2/api/fluid/layers.rst similarity index 100% rename from doc/api/fluid/layers.rst rename to doc/v2/api/fluid/layers.rst diff --git a/doc/api/fluid/nets.rst b/doc/v2/api/fluid/nets.rst similarity index 100% rename from doc/api/fluid/nets.rst rename to doc/v2/api/fluid/nets.rst diff --git a/doc/api/fluid/optimizer.rst b/doc/v2/api/fluid/optimizer.rst similarity index 100% rename from doc/api/fluid/optimizer.rst rename to doc/v2/api/fluid/optimizer.rst diff --git a/doc/api/fluid/param_attr.rst b/doc/v2/api/fluid/param_attr.rst similarity index 100% rename from doc/api/fluid/param_attr.rst rename to doc/v2/api/fluid/param_attr.rst diff --git a/doc/api/fluid/profiler.rst b/doc/v2/api/fluid/profiler.rst similarity index 100% rename from doc/api/fluid/profiler.rst rename to doc/v2/api/fluid/profiler.rst diff --git a/doc/api/fluid/regularizer.rst b/doc/v2/api/fluid/regularizer.rst similarity index 100% rename from doc/api/fluid/regularizer.rst rename to doc/v2/api/fluid/regularizer.rst diff --git a/doc/api/index_en.rst b/doc/v2/api/index_en.rst similarity index 55% rename from doc/api/index_en.rst rename to doc/v2/api/index_en.rst index fc8dbd07eba..b11cd449aff 100644 --- a/doc/api/index_en.rst +++ b/doc/v2/api/index_en.rst @@ -5,7 +5,7 @@ API :maxdepth: 1 overview.rst - v2/model_configs.rst - v2/data.rst - v2/run_logic.rst + model_configs.rst + data.rst + run_logic.rst fluid/index.rst diff --git a/doc/api/v2/model_configs.rst b/doc/v2/api/model_configs.rst similarity index 100% rename from doc/api/v2/model_configs.rst rename to doc/v2/api/model_configs.rst diff --git a/doc/api/overview.rst b/doc/v2/api/overview.rst similarity index 100% rename from doc/api/overview.rst rename to doc/v2/api/overview.rst diff --git a/doc/api/v2/run_logic.rst b/doc/v2/api/run_logic.rst similarity index 100% rename from doc/api/v2/run_logic.rst rename to doc/v2/api/run_logic.rst -- GitLab