From a65ef6be5079b7581a28bc5f8112bf4e51856dcd Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Thu, 28 Mar 2024 20:11:45 +0200 Subject: [PATCH] Migrate docs to a custom domain --- .github/workflows/docs.yml | 1 + site/build_docs.py | 2 +- site/layouts/404.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5267c922c87c..4a7317287819 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -64,3 +64,4 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public force_orphan: true + cname: docs.cvat.ai diff --git a/site/build_docs.py b/site/build_docs.py index d4720ad8b0e0..0525fcfd459a 100755 --- a/site/build_docs.py +++ b/site/build_docs.py @@ -148,7 +148,7 @@ def run_hugo( output_dir / tag.name, # This variable is no longer needed by the current version, # but it was required in v2.11.2 and older. - extra_env_vars={VERSION_URL_ENV_VAR: f"/cvat/{tag.name}/docs"}, + extra_env_vars={VERSION_URL_ENV_VAR: f"/{tag.name}/docs"}, executable=hugo, ) diff --git a/site/layouts/404.html b/site/layouts/404.html index 0755dd2dfd32..5e9b89e1c64b 100644 --- a/site/layouts/404.html +++ b/site/layouts/404.html @@ -1,6 +1,6 @@ - +