Skip to content

A straightforward method for training your LLM, from downloading data to generating text.

ci(docs): keep MkDocs below 2.0

FareedKhan-dev629101eee6fe
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0cd4991..6a6253c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -83,4 +83,4 @@ jobs:
- uses: actions/checkout@v7
- uses: astral-sh/[email protected] # this action publishes no floating major tag
- name: Build the documentation site (strict, catches broken links)
- run: uvx --with mkdocs-material --with pymdown-extensions mkdocs build --strict --site-dir site
+ run: uvx --from "mkdocs>=1.6,<2" --with "mkdocs-material>=9.5,<10" --with pymdown-extensions mkdocs build --strict --site-dir site
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index dea0af5..a6ee8f2 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -33,7 +33,7 @@ jobs:
with:
python-version: "3.12"
- name: Install docs dependencies
- run: pip install mkdocs mkdocs-material pymdown-extensions
+ run: pip install "mkdocs>=1.6,<2" "mkdocs-material>=9.5,<10" pymdown-extensions # MkDocs 2 drops themes and plugins
- name: Build the site (strict)
run: mkdocs build --strict --site-dir ./site
- uses: actions/configure-pages@v6
diff --git a/pyproject.toml b/pyproject.toml
index 58c29a4..1447054 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -30,9 +30,9 @@ train = ["datasets", "wandb"]
# The Streamlit control-panel UI.
ui = ["streamlit", "pandas", "altair"]
# The MkDocs Material documentation site.
-docs = ["mkdocs", "mkdocs-material", "pymdown-extensions"]
+docs = ["mkdocs>=1.6,<2", "mkdocs-material>=9.5,<10", "pymdown-extensions"]
# Everything, for development.
-all = ["datasets", "wandb", "streamlit", "pandas", "altair", "mkdocs", "mkdocs-material", "pymdown-extensions"]
+all = ["datasets", "wandb", "streamlit", "pandas", "altair", "mkdocs>=1.6,<2", "mkdocs-material>=9.5,<10", "pymdown-extensions"]
[dependency-groups]
# Tests, linting and type checking: `uv sync` installs this group by default.