Skip to content

Commit 78507bd

Browse files
authored
[docs] Build notebooks from Markdown (huggingface#2570)
* 📝 add mechanism for building colab notebook * 🖍 add notebooks to correct folder * 🖍 fix folder name
1 parent d2a5247 commit 78507bd

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build_documentation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
with:
1414
commit_sha: ${{ github.sha }}
1515
package: diffusers
16+
notebook_folder: diffusers_doc
1617
languages: en ko
1718
secrets:
1819
token: ${{ secrets.HUGGINGFACE_PUSH }}

docs/source/_config.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# docstyle-ignore
2+
INSTALL_CONTENT = """
3+
# Diffusers installation
4+
! pip install diffusers transformers datasets accelerate
5+
# To install from source instead of the last release, comment the command above and uncomment the following one.
6+
# ! pip install git+https://github.com/huggingface/diffusers.git
7+
"""
8+
9+
notebook_first_cells = [{"type": "code", "content": INSTALL_CONTENT}]

0 commit comments

Comments
 (0)