Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
a1efc823
Unverified
Commit
a1efc823
authored
Feb 23, 2022
by
Eliott C
Committed by
GitHub
Feb 23, 2022
Browse files
HTML dev docs (#15678)
Co-authored-by:
Pierric Cistac
<
Pierrci@users.noreply.github.com
>
parent
3f76bf54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
.github/workflows/build_dev_documentation.yml
.github/workflows/build_dev_documentation.yml
+7
-4
.github/workflows/build_documentation.yml
.github/workflows/build_documentation.yml
+12
-1
No files found.
.github/workflows/build_dev_documentation.yml
View file @
a1efc823
...
...
@@ -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
:
|
...
...
.github/workflows/build_documentation.yml
View file @
a1efc823
...
...
@@ -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
:
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment