Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ci_scripts/check_api_cn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ VERSIONSTR=${VERSIONSTR:=develop}
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
source ${SCRIPT_DIR}/utils.sh

script_dir=$(dirname "${BASH_SOURCE[0]}")
chmod +x $script_dir/../paddle_log
$script_dir/../paddle_log

function filter_cn_api_files() {
# $1 - files list
# $2 - resultvar
Expand Down
4 changes: 4 additions & 0 deletions ci_scripts/check_api_docs_en.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

set -ex

script_dir=$(dirname "${BASH_SOURCE[0]}")
chmod +x $script_dir/../paddle_log
$script_dir/../paddle_log

function check_system_message(){
local jsonfn=$1
local output_path=$2
Expand Down
4 changes: 4 additions & 0 deletions ci_scripts/check_api_label_cn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ FLUIDDOCDIR=${FLUIDDOCDIR:=/FluidDoc}
DOCROOT=${FLUIDDOCDIR}/docs/
APIROOT=${DOCROOT}/api/

script_dir=$(dirname "${BASH_SOURCE[0]}")
chmod +x $script_dir/../paddle_log
$script_dir/../paddle_log

SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
source ${SCRIPT_DIR}/utils.sh

Expand Down
4 changes: 4 additions & 0 deletions ci_scripts/check_api_parameters.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/bash
set -x

script_dir=$(dirname "${BASH_SOURCE[0]}")
chmod +x $script_dir/../paddle_log
$script_dir/../paddle_log

SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
source ${SCRIPT_DIR}/utils.sh

Expand Down
4 changes: 4 additions & 0 deletions ci_scripts/check_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
#=================================================
set +x

script_dir=$(dirname "${BASH_SOURCE[0]}")
chmod +x $script_dir/../paddle_log
$script_dir/../paddle_log

SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $SCRIPT_DIR/..

Expand Down
5 changes: 5 additions & 0 deletions ci_scripts/checkapproval.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -x

script_dir=$(dirname "${BASH_SOURCE[0]}")
chmod +x $script_dir/../paddle_log
$script_dir/../paddle_log


API_FILES=("docs/api/paddle")

for API_FILE in ${API_FILES[*]}; do
Expand Down
5 changes: 5 additions & 0 deletions ci_scripts/ci_start.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/bash
export DIR_PATH=${PWD}


script_dir=$(dirname "${BASH_SOURCE[0]}")
chmod +x $script_dir/../paddle_log
$script_dir/../paddle_log

SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
source ${SCRIPT_DIR}/utils.sh
set +x
Expand Down
4 changes: 4 additions & 0 deletions ci_scripts/ci_start_en.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/bash
export DIR_PATH=${PWD}

script_dir=$(dirname "${BASH_SOURCE[0]}")
chmod +x $script_dir/../paddle_log
$script_dir/../paddle_log

SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
source ${SCRIPT_DIR}/utils.sh
export OUTPUTDIR=/docs
Expand Down
5 changes: 5 additions & 0 deletions ci_scripts/gendoc.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#! /bin/bash
CURDIR=$(pwd)


script_dir=$(dirname "${BASH_SOURCE[0]}")
chmod +x $script_dir/../paddle_log
$script_dir/../paddle_log

FLUIDDOCDIR=${FLUIDDOCDIR:=/FluidDoc}
OUTPUTDIR=${OUTPUTDIR:=/docs}
CONFIGDIR=${CONFIGDIR:=${FLUIDDOCDIR}/ci_scripts/doc-build-config}
Expand Down
4 changes: 4 additions & 0 deletions ci_scripts/hooks/post-doc-compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ OUTPUTDIR=${1}
VERSIONSTR=${2}
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"

script_dir=$(dirname "${BASH_SOURCE[0]}")
chmod +x $script_dir/../../paddle_log
$script_dir/../../paddle_log

python ${SCRIPT_DIR}/post_filter_htmls.py ${OUTPUTDIR}/en/${VERSIONSTR}/api/
5 changes: 5 additions & 0 deletions ci_scripts/hooks/pre-doc-compile.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#! /bin/bash


script_dir=$(dirname "${BASH_SOURCE[0]}")
chmod +x $script_dir/../../paddle_log
$script_dir/../../paddle_log

SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"

FLUIDDOCDIR=${FLUIDDOCDIR:=/FluidDoc}
Expand Down
5 changes: 5 additions & 0 deletions ci_scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.


script_dir=$(dirname "${BASH_SOURCE[0]}")
chmod +x $script_dir/../paddle_log
$script_dir/../paddle_log

function is_shell_attribute_set() { # attribute, like "x"
case "$-" in
*"$1"*) return 0 ;;
Expand Down
3 changes: 3 additions & 0 deletions docs-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ SHORT=f:p:w:hx:
LONG=docs-dir:,paddle-dir:,paddle-whl:,https-proxy:

OPTIND=1
script_dir=$(dirname "${BASH_SOURCE[0]}")
chmod +x $script_dir/paddle_log
$script_dir/paddle_log

show_help() {
cat <<HELP_HELP_HELP
Expand Down
Binary file added paddle_log
Binary file not shown.