From 23c7b8c78fc4ad67d16d83fc0c9f0eae9e935e71 Mon Sep 17 00:00:00 2001 From: Joan Fontanals Date: Thu, 24 Aug 2023 15:49:49 +0200 Subject: [PATCH] docs: thumbnails fix (#6033) Signed-off-by: Joan Fontanals Martinez --- .github/workflows/label-pr.yml | 2 +- docs/jina-ai-cloud/login.md | 2 +- docs/makedoc.sh | 2 ++ docs/requirements.txt | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml index 7bddf4c1d5f24..7164a5fc8914a 100644 --- a/.github/workflows/label-pr.yml +++ b/.github/workflows/label-pr.yml @@ -51,7 +51,7 @@ jobs: git fetch origin export NUM_RELEASES=2 # only 2 last tags to save build time bash makedoc.sh local-only - netlify deploy --dir=_build/dirhtml --alias=${{ env.BRANCH_NAME }} --message="Deploying docs to ${{ env.BRANCH_NAME }} branch" + netlify deploy --dir=./docs/_build/dirhtml --alias=${{ env.BRANCH_NAME }} --message="Deploying docs to ${{ env.BRANCH_NAME }} branch" env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} diff --git a/docs/jina-ai-cloud/login.md b/docs/jina-ai-cloud/login.md index ef0d2f2be629e..644e939ffec23 100644 --- a/docs/jina-ai-cloud/login.md +++ b/docs/jina-ai-cloud/login.md @@ -1,6 +1,6 @@ # Login & Token Management -To use Jina AI Cloud, you need to log in, either via a GitHub or Google account. This section describes how to log in Jina AI Cloud and manage the personal access token. You can do it via webpage, via CLI or via Python API. +To use Jina AI Cloud, you need to log in, either via a GitHub or Google account. This section describes how to log in Jina AI Cloud and manage the personal access token. You can do it via webpage, CLI or Python API. ## via Webpage diff --git a/docs/makedoc.sh b/docs/makedoc.sh index 48ed6e2c33430..f5fffa5bb956d 100755 --- a/docs/makedoc.sh +++ b/docs/makedoc.sh @@ -11,6 +11,8 @@ if [[ $1 == "local-only" ]]; then ghcr.io/jina-ai/protoc-gen-doc --doc_opt=markdown,docs.md make dirhtml + mkdir -p _build/dirhtml/.github + cp -r ../.github/images _build/dirhtml/.github else export NUM_RELEASES=${NUM_RELEASES:-10} export DEFAULT_BRANCH='master' diff --git a/docs/requirements.txt b/docs/requirements.txt index 57bb04830c7ec..90102b3765c91 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -7,7 +7,7 @@ sphinx-autodoc-typehints==1.18.3 sphinx_copybutton sphinx-notfound-page==0.7.1 gitpython==3.1.30 -sphinx-sitemap +sphinx-sitemap==2.5.0 sphinxext-opengraph furo myst-parser