Skip to content

Commit

Permalink
Improve config
Browse files Browse the repository at this point in the history
  • Loading branch information
fmind committed Mar 20, 2024
1 parent 0b1a752 commit 0029ac8
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish
on:
push:
branches:
- main
permissions:
contents: write
concurrency:
cancel-in-progress: true
group: publish-workflow
jobs:
pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pipx install invoke poetry
shell: bash
- uses: actions/setup-python@v5
with:
python-version: 3.12
cache: poetry
- run: poetry install
- run: poetry run invoke deploy --force
29 changes: 27 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,32 @@ repo_url: https://github.com/MLOPS-University/mlops-coding-course
site_name: MLOps Coding Course
site_description: Learn how to create, develop, and maintain a state-of-the-art MLOps code base.
site_autor: MLOps University
copyright: CC BY
# site_url: TODO
site_url: https://mlops-university.github.io/mlops-coding-course/
edit_uri: edit/main/docs/
theme:
name: material
palette:
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: purple
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: purple
toggle:
icon: material/brightness-4
name: Switch to system preference
features:
- content.code.copy
markdown_extensions:
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version = "0.0.1"
package-mode = false
description = "Learn how to create, develop, and maintain a state-of-the-art MLOps code base."
repository = "https://github.com/MLOps-University/mlops-coding-course"
documentation = "https://github.com/MLOps-University/mlops-coding-course"
documentation = "https://mlops-university.github.io/mlops-coding-course/"
authors = ["Médéric HURIER <[email protected]>"]
readme = "README.md"
license = "CC BY"
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ def serve(ctx: Context) -> None:
@task
def deploy(ctx: Context) -> None:
"""Deploy the documentation."""
ctx.run("poetry run mkdiocs gh-deploy")
ctx.run("poetry run mkdocs gh-deploy")

0 comments on commit 0029ac8

Please sign in to comment.