Skip to content

Commit

Permalink
Migrate docs to a custom domain (#7698)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecLad committed Apr 3, 2024
1 parent 73c7081 commit 69f5de4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
force_orphan: true
cname: docs.cvat.ai
2 changes: 1 addition & 1 deletion site/build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,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,
)

Expand Down
2 changes: 1 addition & 1 deletion site/layouts/404.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta http-equiv="refresh" content="0; URL=/cvat/page_404">
<meta http-equiv="refresh" content="0; URL=/page_404">
</head>
</html>

0 comments on commit 69f5de4

Please sign in to comment.