File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11import os .path
2+ import re
23from pathlib import Path
34from 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
You can’t perform that action at this time.
0 commit comments