Skip to content

Commit

Permalink
Rename g3doc->docs; fix bad links; add bazel-* to .gitignore;
Browse files Browse the repository at this point in the history
update python; run on push to master
  • Loading branch information
peytondmurray committed Oct 1, 2024
1 parent 260a824 commit b96b18b
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 19 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/cd-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: deploy-docs
on:
workflow_dispatch:
push:
# Uncomment these lines before merge
# branches:
# - master
branches:
- master
pull_request:
permissions:
contents: write
Expand All @@ -15,16 +14,10 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4

- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
if: (github.event_name != 'pull_request')

- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.12'
cache: 'pip'
cache-dependency-path: |
setup.py
Expand All @@ -44,8 +37,11 @@ jobs:
run: pip install -r requirements-docs.txt

- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force
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 --verbose
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,7 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
#.idea/

# Bazel build files
bazel-*
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion g3doc/index.md → docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ ml-metadata (MLMD) | schema_version

The MLMD library has a high-level API that you can readily use with your ML
pipelines. See the
[MLMD API documentation](api/mlmd.md)
[MLMD API documentation](api/mlmd/mlmd.md)
for more details.

Check out
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 3 additions & 5 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ site_name: "ML Metadata"
repo_name: "ML Metadata"
repo_url: https://github.com/google/ml-metadata

docs_dir: g3doc

theme:
name: material
palette:
Expand Down Expand Up @@ -110,11 +108,11 @@ nav:
- Tutorial: https://tensorflow.github.io/tfx/tutorials/mlmd/mlmd_tutorial/
- API:
- mlmd:
- Overview: api/mlmd/
- Overview: api/mlmd/index.md
- mlmd: api/mlmd/mlmd.md
- mlmd.errors:
- Overview: api/mlmd.errors/
- Overview: api/mlmd.errors/index.md
- mlmd.errors: api/mlmd.errors/mlmd.errors.md
- mlmd.proto:
- Overview: api/mlmd.proto/
- Overview: api/mlmd.proto/index.md
- mlmd.proto: api/mlmd.proto/mlmd.proto.md

0 comments on commit b96b18b

Please sign in to comment.