diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 08b7f5d0f..8039f9d48 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -41,8 +41,18 @@ jobs: - name: ๐Ÿ“œ Setup Poetry uses: abatilo/actions-poetry@3765cf608f2d4a72178a9fc5b918668e542b89b1 # v4.0.0 + - name: ๐Ÿ”‘ Create GitHub App token (mkdocs) + id: mkdocs_token + uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1 + with: + app-id: ${{ secrets.MKDOCS_APP_ID }} + private-key: ${{ secrets.MKDOCS_PEM }} + owner: roboflow + repositories: mkdocs-material-insiders + - name: ๐Ÿ“ฆ Install dependencies run: | + poetry config http-basic.github.com roboflow ${steps.mkdocs_token.outputs.token} poetry install --with=docs - name: โš™๏ธ Configure git for github-actions diff --git a/.github/workflows/test-doc.yml b/.github/workflows/test-doc.yml index 6b2012d8f..831008366 100644 --- a/.github/workflows/test-doc.yml +++ b/.github/workflows/test-doc.yml @@ -31,8 +31,18 @@ jobs: - name: ๐Ÿ“œ Setup Poetry uses: abatilo/actions-poetry@3765cf608f2d4a72178a9fc5b918668e542b89b1 # v4.0.0 + - name: ๐Ÿ”‘ Create GitHub App token (mkdocs) + id: mkdocs_token + uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1 + with: + app-id: ${{ secrets.MKDOCS_APP_ID }} + private-key: ${{ secrets.MKDOCS_PEM }} + owner: roboflow + repositories: mkdocs-material-insiders + - name: ๐Ÿ—๏ธ Install dependencies run: | + poetry config http-basic.github.com roboflow ${steps.mkdocs_token.outputs.token} poetry install --with=docs - name: ๐Ÿงช Test Docs Build diff --git a/poetry.lock b/poetry.lock index 2767d2a18..476b69389 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2547,16 +2547,14 @@ pygments = ">2.12.0" [[package]] name = "mkdocs-material" -version = "9.5.49" +version = "9.5.49+insiders.4.53.14" description = "Documentation that simply works" optional = false python-versions = ">=3.8" groups = ["docs"] markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" -files = [ - {file = "mkdocs_material-9.5.49-py3-none-any.whl", hash = "sha256:c3c2d8176b18198435d3a3e119011922f3e11424074645c24019c2dcf08a360e"}, - {file = "mkdocs_material-9.5.49.tar.gz", hash = "sha256:3671bb282b4f53a1c72e08adbe04d2481a98f85fed392530051f80ff94a9621d"}, -] +files = [] +develop = false [package.dependencies] babel = ">=2.10,<3.0" @@ -2564,6 +2562,7 @@ cairosvg = {version = ">=2.6,<3.0", optional = true, markers = "extra == \"imagi colorama = ">=0.4,<1.0" jinja2 = ">=3.0,<4.0" markdown = ">=3.2,<4.0" +mergedeep = ">=1.3,<2.0" mkdocs = ">=1.6,<2.0" mkdocs-material-extensions = ">=1.3,<2.0" paginate = ">=0.5,<1.0" @@ -2578,6 +2577,12 @@ git = ["mkdocs-git-committers-plugin-2 (>=1.1,<2.0)", "mkdocs-git-revision-date- imaging = ["cairosvg (>=2.6,<3.0)", "pillow (>=10.2,<11.0)"] recommended = ["mkdocs-minify-plugin (>=0.7,<1.0)", "mkdocs-redirects (>=1.2,<2.0)", "mkdocs-rss-plugin (>=1.6,<2.0)"] +[package.source] +type = "git" +url = "https://github.com/roboflow/mkdocs-material-insiders.git" +reference = "9.5.49-insiders-4.53.14" +resolved_reference = "3358a2b93829a322a3f45b0cee5dcee4681fdc98" + [[package]] name = "mkdocs-material-extensions" version = "1.3.1" @@ -5102,4 +5107,4 @@ metrics = ["pandas", "pandas"] [metadata] lock-version = "2.1" python-versions = ">=3.8" -content-hash = "d47160f903210fd29e15d3eb43b663f0c40004b1a5853395de597b68f9bb56ab" +content-hash = "5f3b79b1abace707199d369bede2820f4438b80bed18a1c1e165b3103d1182e3" diff --git a/pyproject.toml b/pyproject.toml index 019ea3d8c..05b9c02b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,10 +6,10 @@ version = "0.26.0rc3" readme = "README.md" requires-python = ">=3.8" authors = [ - { name = "Piotr Skalski", email = "piotr.skalski92@gmail.com" } + { name = "Piotr Skalski", email = "piotr@roboflow.com" } ] maintainers = [ - { name = "Piotr Skalski", email = "piotr.skalski92@gmail.com" }, + { name = "Piotr Skalski", email = "piotr@roboflow.com" }, ] keywords = [ "machine-learning", @@ -79,7 +79,7 @@ nbconvert = ">=7.14.2" docutils = "!=0.21" [tool.poetry.group.docs.dependencies] -mkdocs-material = { extras = ["imaging"], version = "^9.5.5" } +mkdocs-material = { git = "https://github.com/roboflow/mkdocs-material-insiders.git", rev = "9.5.49-insiders-4.53.14", extras = ["imaging"]} mkdocstrings = ">=0.25.2,<0.27.0" mkdocstrings-python = ">=1.10.9" mike = ">=2.0.0"