From d5f3f93e8177de13659bedb3467208a196d360b7 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Wed, 25 Jan 2023 15:10:01 +0300 Subject: [PATCH] Allow the documentation website to be indexed by search engines (#5623) Our HTML documentation template slaps a `` on every page unless the `HUGO_ENV` environment variable is set to `production`, thereby excluding the entire documentation website from web search results. Set the variable to fix it. This behavior is inherited from Docsy, although they have changed it since: . --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4d718074..0d961034 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -399,6 +399,8 @@ jobs: pip install -r site/requirements.txt python site/process_sdk_docs.py --input-dir /tmp/cvat_sdk/docs/ --site-root site/ python site/build_docs.py + env: + HUGO_ENV: production - name: Deploy uses: peaceiris/actions-gh-pages@v3