Skip to content

Commit ded860f

Browse files
committed
Merge branch 'master' of github.com:ByteInternet/hypernode-docs-next into build_manpage
2 parents 9c6cc4e + 7713da2 commit ded860f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set env for production build
2626
if: github.ref == 'refs/heads/master'
2727
run: |
28-
echo "DOCS_BASE_URL=https://docs.hypernode.io/" >> $GITHUB_ENV
28+
echo "DOCS_BASE_URL=https://docs.hypernode.com/" >> $GITHUB_ENV
2929
- run: hypernode-deploy build -vvv
3030
- name: archive production artifacts
3131
uses: actions/upload-artifact@v3

hypernode/redirect/generate_nginx_redirects.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os.path
2+
import re
23
from pathlib import Path
34
from typing import List
45

@@ -21,6 +22,8 @@ def get_path_for_doc(doc: Path) -> str:
2122
)
2223
path = path.replace("/./", "/")
2324
path = path.replace("/index.html", "/")
25+
base_url = os.getenv("DOCS_BASE_URL", "/")
26+
path = re.sub(r"^/", base_url, path)
2427
return path
2528

2629

0 commit comments

Comments
 (0)