diff --git a/cspell.config.yml b/cspell.config.yml index 06f7a894..055e8f94 100644 --- a/cspell.config.yml +++ b/cspell.config.yml @@ -11,6 +11,7 @@ words: - inlinehilite - libc - linenums + - llms - mkdocs - mypy - Neta diff --git a/docs/examples/index.md b/docs/examples/index.md index 735581d5..bceb6ab3 100644 --- a/docs/examples/index.md +++ b/docs/examples/index.md @@ -12,7 +12,7 @@ Here are some example workflows to get started quickly. === "auto-fix clang-format" ``` yaml - --8<-- ".github/workflows/examples/auto-fix.yml" + {% include "../../.github/workflows/examples/auto-fix.yml" %} ``` 1. See also [`auto-fix`][auto-fix] @@ -22,7 +22,7 @@ Here are some example workflows to get started quickly. === "only clang-tidy" ``` yaml - --8<-- ".github/workflows/examples/only-clang-tidy.yml" + {% include "../../.github/workflows/examples/only-clang-tidy.yml" %} ``` 1. See also [`style`][style] @@ -31,7 +31,7 @@ Here are some example workflows to get started quickly. === "only clang-format" ``` yaml - --8<-- ".github/workflows/examples/only-clang-format.yml" + {% include "../../.github/workflows/examples/only-clang-format.yml" %} ``` 1. See also [`style`][style] @@ -40,7 +40,7 @@ Here are some example workflows to get started quickly. === "only PR comments" ``` yaml - --8<-- ".github/workflows/examples/only-PR-comments.yml" + {% include "../../.github/workflows/examples/only-PR-comments.yml" %} ``` 1. See also our [token permissions document](../permissions.md) @@ -58,7 +58,7 @@ Here are some example workflows to get started quickly. `.github/workflows/cpp-linter.yml` ``` yaml - --8<-- ".github/workflows/examples/fork-PR-comments-lint.yml" + {% include "../../.github/workflows/examples/fork-PR-comments-lint.yml" %} ``` 1. The second workflow finds this one by its `name`. @@ -70,7 +70,7 @@ Here are some example workflows to get started quickly. `.github/workflows/cpp-linter-comment.yml` ``` yaml - --8<-- ".github/workflows/examples/fork-PR-comments-post.yml" + {% include "../../.github/workflows/examples/fork-PR-comments-post.yml" %} ``` 1. Must match the `name` of the first workflow. GitHub runs this workflow from the diff --git a/mkdocs.yml b/mkdocs.yml index b00af67f..3175a8b6 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,5 +1,5 @@ site_name: C/C++ Linter Action -site_description: "Developer documentation from sources." +site_description: "A GitHub Action that runs clang-format and clang-tidy on the C/C++ files a pull request changes." site_url: "https://cpp-linter.github.io/cpp-linter-action" repo_url: "https://github.com/cpp-linter/cpp-linter-action" repo_name: "cpp-linter/cpp-linter-action" @@ -80,6 +80,8 @@ extra_css: plugins: - search + # llms.txt and a Markdown copy of every page, for AI agents (MkDocs NG). + - llms_txt - include-markdown - gen-files: scripts: diff --git a/pyproject.toml b/pyproject.toml index 4b87c611..2bab0014 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,9 +16,15 @@ dev = [ ] docs = [ "markdown-gfm-admonition>=0.1.1", - "mkdocs>=1.6.1", + "mkdocs-ng>=1.11.2", "mkdocs-gen-files>=0.6.1", "mkdocs-include-markdown-plugin>=7.3.1", - "mkdocs-material>=9.8.1", + "mkdocs-ng-material>=9.8.1", "pyyaml>=6.0.3", ] + +[tool.uv] +# mkdocs-ng and mkdocs-ng-material replace mkdocs and mkdocs-material, which +# are no longer maintained. The plugins still depend on "mkdocs"; mkdocs-ng +# provides it, so keep the upstream package out. +override-dependencies = ["mkdocs; sys_platform == 'never'"] diff --git a/uv.lock b/uv.lock index df40d2d7..c609d795 100644 --- a/uv.lock +++ b/uv.lock @@ -6,6 +6,9 @@ resolution-markers = [ "python_full_version < '3.15'", ] +[manifest] +overrides = [{ name = "mkdocs", marker = "sys_platform == 'never'" }] + [[package]] name = "ast-serialize" version = "0.13.1" @@ -323,10 +326,10 @@ dev = [ ] docs = [ { name = "markdown-gfm-admonition" }, - { name = "mkdocs" }, { name = "mkdocs-gen-files" }, { name = "mkdocs-include-markdown-plugin" }, - { name = "mkdocs-material" }, + { name = "mkdocs-ng" }, + { name = "mkdocs-ng-material" }, { name = "pyyaml" }, ] @@ -344,10 +347,10 @@ dev = [ ] docs = [ { name = "markdown-gfm-admonition", specifier = ">=0.1.1" }, - { name = "mkdocs", specifier = ">=1.6.1" }, { name = "mkdocs-gen-files", specifier = ">=0.6.1" }, { name = "mkdocs-include-markdown-plugin", specifier = ">=7.3.1" }, - { name = "mkdocs-material", specifier = ">=9.8.1" }, + { name = "mkdocs-ng", specifier = ">=1.11.2" }, + { name = "mkdocs-ng-material", specifier = ">=9.8.1" }, { name = "pyyaml", specifier = ">=6.0.3" }, ] @@ -727,7 +730,7 @@ version = "1.6.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "click" }, - { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "colorama", marker = "python_version < '0'" }, { name = "ghp-import" }, { name = "jinja2" }, { name = "markdown" }, @@ -750,7 +753,7 @@ name = "mkdocs-gen-files" version = "0.6.1" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "mkdocs" }, + { name = "mkdocs", marker = "sys_platform == 'never'" }, { name = "properdocs" }, ] sdist = { url = "https://files.pythonhosted.org/packages/43/43/428f312149c161cae557eecd35f3c4a82b867998b1d47fb29fdfe927be26/mkdocs_gen_files-0.6.1.tar.gz", hash = "sha256:57d7ff2229e23d077e46d14a33db6d37c8823f6ce1a503c874c1764a71679763", size = 8746, upload-time = "2026-03-16T23:26:09.31Z" } @@ -777,7 +780,7 @@ name = "mkdocs-include-markdown-plugin" version = "7.3.1" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "mkdocs" }, + { name = "mkdocs", marker = "sys_platform == 'never'" }, { name = "wcmatch" }, ] sdist = { url = "https://files.pythonhosted.org/packages/40/3f/d891a714a6e0153872760eed0ee7440512f6bb8effab5dccfb703b2c5ccc/mkdocs_include_markdown_plugin-7.3.1.tar.gz", hash = "sha256:d61f0d50035171ba4524ac36cf55229577e7b62bfb2d23a0b9db3397f59d3f71", size = 25564, upload-time = "2026-11-07T10:11:55.414Z" } @@ -786,7 +789,39 @@ wheels = [ ] [[package]] -name = "mkdocs-material" +name = "mkdocs-material-extensions" +version = "1.3.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/79/9b/9b4c96d6593b2a541e1cb8b34899a6d021d208bb357042823d4d2cabdbe7/mkdocs_material_extensions-1.3.1.tar.gz", hash = "sha256:10c9511cea88f568257f960358a467d12b970e1f7b2c0e5fb2bb48cab1928443", size = 11847, upload-time = "2023-11-22T19:09:45.208Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5b/54/662a4743aa81d9582ee9339d4ffa3c8fd40a4965e033d77b9da9774d3960/mkdocs_material_extensions-1.3.1-py3-none-any.whl", hash = "sha256:adff8b62700b25cb77b53358dad940f3ef973dd6db797907c49e3c2ef3ab4e31", size = 8728, upload-time = "2023-11-22T19:09:43.465Z" }, +] + +[[package]] +name = "mkdocs-ng" +version = "1.11.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "ghp-import" }, + { name = "jinja2" }, + { name = "markdown" }, + { name = "markupsafe" }, + { name = "mkdocs-get-deps" }, + { name = "packaging" }, + { name = "pathspec" }, + { name = "pyyaml" }, + { name = "pyyaml-env-tag" }, + { name = "watchdog" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/5b/17/d68ee38cbb4c6f42f00899a5625fe7bf97109b083a4ab6ba5d479d8e41ee/mkdocs_ng-1.11.2.tar.gz", hash = "sha256:a7cb3cc9a036a69f6b8f4baca3549c7f8d075fe29ec5709712d4ccd76961d0c0", size = 4778180, upload-time = "2026-11-11T19:55:06.552Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/af/03/52eb795202373078606bc083352a2a63409b49e2f3707d6626fd7e45ffb1/mkdocs_ng-1.11.2-py3-none-any.whl", hash = "sha256:508abf745e7328282e82c5074de86b074f59e4d34698abcca8bc7cb7b869c1ff", size = 5252992, upload-time = "2026-11-11T19:55:03.792Z" }, +] + +[[package]] +name = "mkdocs-ng-material" version = "9.8.1" source = { registry = "https://pypi.org/simple" } dependencies = [ @@ -795,25 +830,16 @@ dependencies = [ { name = "colorama" }, { name = "jinja2" }, { name = "markdown" }, - { name = "mkdocs" }, { name = "mkdocs-material-extensions" }, + { name = "mkdocs-ng" }, { name = "paginate" }, { name = "pygments" }, { name = "pymdown-extensions" }, { name = "requests" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e2/b2/dee93bf227b481e28ba4d800c322dffc41b16d524ae84ca8d85aa7ec3a81/mkdocs_material-9.8.1.tar.gz", hash = "sha256:cddae7d77bb98d1d347aa68ee252ab40926171a1b34ba8777c44e16de9629f00", size = 4160481, upload-time = "2026-11-07T13:05:04.482Z" } +sdist = { url = "https://files.pythonhosted.org/packages/00/d1/330313d5023181ba8d9c631f57a8eac21eec843a3f0737ef8c74041442b8/mkdocs_ng_material-9.8.1.tar.gz", hash = "sha256:4c55586883e9e526b1de2852655d81a0a70c6f906b5ab5e57fc6355cd7328fed", size = 4162272, upload-time = "2026-11-11T20:13:01.601Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/70/05/a4011d6a6af86cd03059a5b165cd69a3695ef4bd7bd477c66befe399640a/mkdocs_material-9.8.1-py3-none-any.whl", hash = "sha256:2115af67ee680e1398bdd0ea02e517721e4bba88b342503a93f97ea8eb3de51c", size = 9302217, upload-time = "2026-11-07T13:05:00.747Z" }, -] - -[[package]] -name = "mkdocs-material-extensions" -version = "1.3.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/79/9b/9b4c96d6593b2a541e1cb8b34899a6d021d208bb357042823d4d2cabdbe7/mkdocs_material_extensions-1.3.1.tar.gz", hash = "sha256:10c9511cea88f568257f960358a467d12b970e1f7b2c0e5fb2bb48cab1928443", size = 11847, upload-time = "2023-11-22T19:09:45.208Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/5b/54/662a4743aa81d9582ee9339d4ffa3c8fd40a4965e033d77b9da9774d3960/mkdocs_material_extensions-1.3.1-py3-none-any.whl", hash = "sha256:adff8b62700b25cb77b53358dad940f3ef973dd6db797907c49e3c2ef3ab4e31", size = 8728, upload-time = "2023-11-22T19:09:43.465Z" }, + { url = "https://files.pythonhosted.org/packages/62/d7/1b2b76efa49a8e06de8fca3d7507a3083331a0602b47b0f74849e3abb477/mkdocs_ng_material-9.8.1-py3-none-any.whl", hash = "sha256:4d48514e40c714cca51b632ad7bd0f15bd22118dbd331a073f8220c16ed67878", size = 9862693, upload-time = "2026-11-11T20:12:58.652Z" }, ] [[package]]