diff --git a/.github/workflows/pr-link-scan.yml b/.github/workflows/pr-link-scan.yml index edc1d5f7d14..dc0b7ac68b6 100644 --- a/.github/workflows/pr-link-scan.yml +++ b/.github/workflows/pr-link-scan.yml @@ -40,11 +40,11 @@ jobs: fail="FALSE" merged_commit=$(git log -1 --format='%H') changed_files="$(git diff --name-status --diff-filter=ARM $BASE_SHA ${merged_commit} | awk '/\.md$/ {print $NF}')" - + echo "no_proxy=$no_proxy" echo "http_proxy=$http_proxy" echo "https_proxy=$https_proxy" - + if [ -n "$changed_files" ]; then for changed_file in $changed_files; do # echo $changed_file @@ -118,11 +118,11 @@ jobs: merged_commit=$(git log -1 --format='%H') changed_files="$(git diff --name-status --diff-filter=ARM $BASE_SHA ${merged_commit} | awk '/\.md$/ {print $NF}')" png_lines=$(grep -Eo '\]\([^)]+\)' --include='*.md' -r .|grep -Ev 'http' | grep -Ev 'shape=' | grep -Ev 'mailto:inc.maintainers@intel.com') - + echo "no_proxy=$no_proxy" echo "http_proxy=$http_proxy" echo "https_proxy=$https_proxy" - + if [ -n "$png_lines" ]; then for png_line in $png_lines; do # echo "No.1----->png_line is $png_line" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eb752d2319c..205f4ddd12f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,9 @@ on: push: branches: - master + pull_request: + branches: + - master jobs: build: @@ -18,16 +21,18 @@ jobs: pull-requests: write contents: write steps: - - uses: actions/checkout@v3 - - name: Build Online Document - run: | - git config --local --get remote.origin.url - cd docs/build_docs - bash build.sh latest + - uses: actions/checkout@v3 + + - name: Build Online Document + run: | + git config --local --get remote.origin.url + cd docs/build_docs + bash build.sh latest - - name: Push to github - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./build_tmp/gh-pages - publish_branch: gh-pages + - name: Push to github + if: ${{ github.event_name == 'push' }} + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build_tmp/gh-pages + publish_branch: gh-pages diff --git a/docs/source/api-doc/api_2.rst b/docs/source/api-doc/api_2.rst index 1b7fb80f418..e0711f577a0 100644 --- a/docs/source/api-doc/api_2.rst +++ b/docs/source/api-doc/api_2.rst @@ -9,7 +9,6 @@ quantization.rst mix_precision.rst training.rst - benchmark.rst config.rst objective.rst diff --git a/docs/source/api-doc/api_3.rst b/docs/source/api-doc/api_3.rst index 7c01e073f0b..7642d7939bd 100644 --- a/docs/source/api-doc/api_3.rst +++ b/docs/source/api-doc/api_3.rst @@ -18,10 +18,3 @@ tf_quantization_common.rst tf_quantization_config.rst tf_quantization_autotune.rst - -**Other Modules:** - -.. toctree:: - :maxdepth: 1 - - benchmark.rst diff --git a/docs/source/api-doc/benchmark.rst b/docs/source/api-doc/benchmark.rst deleted file mode 100644 index c774174b482..00000000000 --- a/docs/source/api-doc/benchmark.rst +++ /dev/null @@ -1,6 +0,0 @@ -Benchmark -========= - -.. autoapisummary:: - - neural_compressor.benchmark