Automatically build doc notebooks (#14718)

* Test workflow

* Build doc

* Make a clean build

* Add doc config

* Restore other workflows

* Final job

* Print something in else statements

* Pull before making changes
This commit is contained in:
Sylvain Gugger
2021-12-10 14:20:56 -05:00
committed by GitHub
parent ae82ee6a48
commit 1b75d7238c
2 changed files with 47 additions and 10 deletions

7
docs/source/_config.py Normal file
View File

@@ -0,0 +1,7 @@
INSTALL_CONTENT = """
# Transformers installation ! pip install transformers datasets # To install from source instead of the last release,
comment the command above and uncomment the following one. # ! pip install
git+https://github.com/huggingface/transformers.git
"""
notebook_first_cells = [{"type": "code", "content": INSTALL_CONTENT}]