Skip to content

Commit

Permalink
Update web app base URL
Browse files Browse the repository at this point in the history
  • Loading branch information
waacton committed Apr 22, 2024
1 parent bcd9a8d commit f8453cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
# this is the only other customised part of the default Jekyll workflow
# which copies the colour-picker app folder which was excluded from Jekyll
# (because it is a Blazor app and has no business being processed by Jekyll)
# NOTE: the destination folder ./_site/[app-folder] translates to website.xyz/[repo-name]/[app-folder]
# so colour-picker/index.html will need to have <base href="/[repo-name]/[app-folder]/" /> i.e.. <base href="/Unicolour/colour-picker/" />
# NOTE: the destination folder ./_site/[app-folder] translates to [custom-domain.xyz]/[app-folder]
# so /colour-picker/index.html will need to have <base href="/[app-folder]/" /> i.e.. <base href="/colour-picker/" />
- name: Copy Blazor folder
run: |
sudo cp -r ./docs/colour-picker/. ./_site/colour-picker
Expand Down
2 changes: 1 addition & 1 deletion Example.Web/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unicolour Picker</title>
<base href="/" /> <!-- needs to be /Unicolour/colour-picker/ when deployed -->
<base href="/" /> <!-- needs to be /colour-picker/ when deployed -->
<link rel="stylesheet" href="css/app.css" />
<link rel="icon" type="image/png" href="favicon.png" />
</head>
Expand Down
2 changes: 1 addition & 1 deletion docs/colour-picker/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unicolour Picker</title>
<base href="/Unicolour/colour-picker/" /> <!-- needs to be /Unicolour/colour-picker/ when deployed -->
<base href="/colour-picker/" /> <!-- needs to be /colour-picker/ when deployed -->
<link rel="stylesheet" href="css/app.css" />
<link rel="icon" type="image/png" href="favicon.png" />
</head>
Expand Down

0 comments on commit f8453cd

Please sign in to comment.