Skip to content

Commit

Permalink
Add examples as embeded notebooks in the docs/
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarobartt committed Sep 12, 2024
1 parent 03e9020 commit e54ecc3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ on:
- .github/workflows/doc-build.yml

jobs:
build:
build:
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@main
with:
commit_sha: ${{ github.sha }}
package: Google-Cloud-Containers
package_name: google-cloud
additional_args: --not_python_module
notebooks_folder: examples
convert_notebooks: true
secrets:
token: ${{ secrets.HUGGINGFACE_PUSH }}
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
2 changes: 2 additions & 0 deletions .github/workflows/doc-pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ jobs:
package: Google-Cloud-Containers
package_name: google-cloud
additional_args: --not_python_module
notebooks_folder: examples
convert_notebooks: true
8 changes: 6 additions & 2 deletions docs/source/_toctree.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
- sections:
- local: index
title: Hugging Face on Google Cloud
- local: index
title: Hugging Face on Google Cloud
title: Getting Started
- sections:
- local: notebooks
title: Examples
title: Examples

0 comments on commit e54ecc3

Please sign in to comment.