mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
HTML dev docs (#15678)
Co-authored-by: Pierric Cistac <Pierrci@users.noreply.github.com>
This commit is contained in:
parent
3f76bf54ff
commit
a1efc82362
2 changed files with 19 additions and 5 deletions
11
.github/workflows/build_dev_documentation.yml
vendored
11
.github/workflows/build_dev_documentation.yml
vendored
|
|
@ -30,6 +30,10 @@ jobs:
|
|||
repository: 'huggingface/notebooks'
|
||||
path: notebooks
|
||||
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
|
||||
- name: Set env
|
||||
run: echo "WRITE=$(cat /mnt/WRITE)" >> $GITHUB_ENV
|
||||
|
||||
|
|
@ -95,9 +99,6 @@ jobs:
|
|||
git config --global user.name "Hugging Face Doc Builder"
|
||||
git config --global user.email docs@huggingface.co
|
||||
|
||||
cd doc-builder
|
||||
git pull origin main
|
||||
cd ..
|
||||
|
||||
cd notebooks
|
||||
git pull origin master
|
||||
|
|
@ -109,7 +110,9 @@ jobs:
|
|||
|
||||
- name: Make documentation
|
||||
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
|
||||
run: |
|
||||
|
|
|
|||
13
.github/workflows/build_documentation.yml
vendored
13
.github/workflows/build_documentation.yml
vendored
|
|
@ -15,6 +15,15 @@ jobs:
|
|||
shell: bash -l {0}
|
||||
|
||||
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
|
||||
with:
|
||||
repository: 'huggingface/doc-build'
|
||||
|
|
@ -77,7 +86,9 @@ jobs:
|
|||
|
||||
- name: Make documentation
|
||||
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
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue