Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/deploy_gh_pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main # or master

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20' # or your preferred Node.js version

- name: Install dependencies
run: npm install

- name: Build package
run: npm run build # Replace with your build command, outputting to e.g., 'dist'

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist # Directory containing your built output
publish_branch: gh-pages
4 changes: 4 additions & 0 deletions src/i18n/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ i18n
interpolation: {
escapeValue: false,
},
backend: {
// Path to the translation files
loadPath: import.meta.env.BASE_URL + "locales/{{lng}}/{{ns}}.json",
},
});

export default i18n;
2 changes: 1 addition & 1 deletion src/reactComponents/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default function Header(props: HeaderProps): React.JSX.Element {
<img
height={LOGO_HEIGHT}
style={{objectFit: 'contain'}}
src={isDarkTheme ? "/FIRST_HorzRGB_reverse.png" : "/FIRST_HorzRGB.png"}
src={import.meta.env.BASE_URL + (isDarkTheme ? "/FIRST_HorzRGB_reverse.png" : "/FIRST_HorzRGB.png")}
alt="FIRST Logo"
/>
<Antd.Typography
Expand Down
1 change: 1 addition & 0 deletions vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";

export default defineConfig({
base: '/systemcore-blocks-interface/',
plugins: [react(), tsconfigPaths(), viteStaticCopy({
targets: [
{
Expand Down