"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "faf03541e260c27db94b114a8ab1f125c0f790bf"
Unverified Commit a1efc823 authored by Eliott C's avatar Eliott C Committed by GitHub
Browse files

HTML dev docs (#15678)


Co-authored-by: default avatarPierric Cistac <Pierrci@users.noreply.github.com>
parent 3f76bf54
...@@ -30,6 +30,10 @@ jobs: ...@@ -30,6 +30,10 @@ jobs:
repository: 'huggingface/notebooks' repository: 'huggingface/notebooks'
path: notebooks path: notebooks
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Set env - name: Set env
run: echo "WRITE=$(cat /mnt/WRITE)" >> $GITHUB_ENV run: echo "WRITE=$(cat /mnt/WRITE)" >> $GITHUB_ENV
...@@ -95,9 +99,6 @@ jobs: ...@@ -95,9 +99,6 @@ jobs:
git config --global user.name "Hugging Face Doc Builder" git config --global user.name "Hugging Face Doc Builder"
git config --global user.email docs@huggingface.co git config --global user.email docs@huggingface.co
cd doc-builder
git pull origin main
cd ..
cd notebooks cd notebooks
git pull origin master git pull origin master
...@@ -109,7 +110,9 @@ jobs: ...@@ -109,7 +110,9 @@ jobs:
- name: Make documentation - name: Make documentation
run: | run: |
doc-builder build transformers transformers/docs/source --build_dir doc-build-dev --notebook_dir notebooks/transformers_doc --clean --version pr_$PR_NUMBER cd doc-builder
doc-builder build transformers ../transformers/docs/source --build_dir ../doc-build-dev --notebook_dir notebooks/transformers_doc --clean --version pr_$PR_NUMBER --html
cd ..
- name: Push to repositories - name: Push to repositories
run: | run: |
......
...@@ -15,6 +15,15 @@ jobs: ...@@ -15,6 +15,15 @@ jobs:
shell: bash -l {0} shell: bash -l {0}
steps: steps:
- uses: actions/setup-node@v2
with:
node-version: '14'
- uses: actions/checkout@v2
with:
repository: 'huggingface/doc-builder'
path: doc-builder
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
repository: 'huggingface/doc-build' repository: 'huggingface/doc-build'
...@@ -77,7 +86,9 @@ jobs: ...@@ -77,7 +86,9 @@ jobs:
- name: Make documentation - name: Make documentation
run: | run: |
doc-builder build transformers transformers/docs/source --build_dir doc-build --notebook_dir notebooks/transformers_doc --clean cd doc-builder
doc-builder build transformers ../transformers/docs/source --build_dir ../doc-build --notebook_dir notebooks/transformers_doc --clean --html
cd ..
- name: Push to repositories - name: Push to repositories
run: | run: |
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment