-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into build-package
- Loading branch information
Showing
12 changed files
with
271 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: deploy-docs | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'master' | ||
pull_request: | ||
permissions: | ||
contents: write | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
cache: 'pip' | ||
cache-dependency-path: | | ||
setup.py | ||
- name: Save time for cache for mkdocs | ||
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | ||
|
||
- name: Caching | ||
uses: actions/cache@v4 | ||
with: | ||
key: mkdocs-material-${{ env.cache_id }} | ||
path: .cache | ||
restore-keys: | | ||
mkdocs-material- | ||
- name: Install Dependencies | ||
run: pip install -r requirements-docs.txt | ||
|
||
- name: Deploy to GitHub Pages | ||
if: (github.event_name != 'pull_request') | ||
run: | | ||
git config user.name github-actions[bot] | ||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | ||
mkdocs gh-deploy --force | ||
- name: Build docs to check for errors | ||
run: mkdocs build | ||
if: (github.event_name == 'pull_request') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
site_name: "ML Metadata" | ||
repo_name: "ML Metadata" | ||
repo_url: https://github.com/google/ml-metadata | ||
|
||
theme: | ||
name: material | ||
palette: | ||
# Palette toggle for automatic mode | ||
- media: "(prefers-color-scheme)" | ||
primary: custom | ||
accent: custom | ||
toggle: | ||
icon: material/brightness-auto | ||
name: Switch to light mode | ||
|
||
# Palette toggle for light mode | ||
- media: "(prefers-color-scheme: light)" | ||
primary: custom | ||
accent: custom | ||
scheme: default | ||
toggle: | ||
icon: material/brightness-7 | ||
name: Switch to dark mode | ||
|
||
# Palette toggle for dark mode | ||
- media: "(prefers-color-scheme: dark)" | ||
primary: custom | ||
accent: custom | ||
scheme: slate | ||
toggle: | ||
icon: material/brightness-4 | ||
name: Switch to system preference | ||
favicon: images/favicon.png | ||
|
||
features: | ||
- content.code.copy | ||
- content.code.select | ||
plugins: | ||
- search | ||
- autorefs | ||
- mkdocstrings: | ||
default_handler: python | ||
handlers: | ||
python: | ||
options: | ||
show_source: true | ||
show_root_heading: true | ||
unwrap_annotated: true | ||
show_symbol_type_toc: true | ||
show_symbol_type_heading: true | ||
merge_init_into_class: true | ||
show_signature_annotations: true | ||
separate_signature: true | ||
signature_crossrefs: true | ||
group_by_category: true | ||
show_category_heading: true | ||
inherited_members: true | ||
show_submodules: true | ||
show_object_full_path: false | ||
show_root_full_path: true | ||
docstring_section_style: "spacy" | ||
summary: true | ||
filters: | ||
- "!^_" | ||
- "^__init__$" | ||
- "^__call__$" | ||
- "!^logger" | ||
- "!_test$" | ||
extensions: | ||
- griffe_inherited_docstrings | ||
import: | ||
- https://docs.python.org/3/objects.inv | ||
- caption: | ||
figure: | ||
ignore_alt: true | ||
|
||
markdown_extensions: | ||
- admonition | ||
- attr_list | ||
- toc: | ||
permalink: true | ||
- pymdownx.highlight: | ||
anchor_linenums: true | ||
linenums: false | ||
line_spans: __span | ||
pygments_lang_class: true | ||
- pymdownx.inlinehilite | ||
- pymdownx.snippets | ||
- pymdownx.superfences | ||
- pymdownx.arithmatex: | ||
generic: true | ||
- md_in_html | ||
- pymdownx.emoji: | ||
emoji_index: !!python/name:material.extensions.emoji.twemoji | ||
emoji_generator: !!python/name:material.extensions.emoji.to_svg | ||
|
||
extra_css: | ||
- stylesheets/extra.css | ||
|
||
extra_javascript: | ||
- javascripts/mathjax.js | ||
- https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js | ||
|
||
watch: | ||
- ml_metadata | ||
nav: | ||
- Guide: index.md | ||
- Tutorial: https://tensorflow.github.io/tfx/tutorials/mlmd/mlmd_tutorial/ | ||
- API: | ||
- mlmd: | ||
- Overview: api/mlmd/index.md | ||
- mlmd: api/mlmd/mlmd.md | ||
- mlmd.errors: | ||
- Overview: api/mlmd.errors/index.md | ||
- mlmd.errors: api/mlmd.errors/mlmd.errors.md | ||
- mlmd.proto: | ||
- Overview: api/mlmd.proto/index.md | ||
- mlmd.proto: api/mlmd.proto/mlmd.proto.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.