Skip to content

Commit

Permalink
Set dynamic manifest path
Browse files Browse the repository at this point in the history
  • Loading branch information
klaasnicolaas committed Oct 29, 2024
1 parent 9ba6e79 commit 947bc1a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
path: docs/build

consolidate:
name: Consolidate firmwares
name: Consolidate
runs-on: ubuntu-latest
needs:
- build-firmware
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
run: |
mkdir output
cp -R site/* output/
cp -R firmwares/* output/firmware/
cp -R firmwares output/firmware/
# - name: Move manifest files to root and modify paths
# run: |
# for device in firmwares/*; do
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This guide will walk you through the steps needed to set up your Onju Voice PCB
Use the method below to provide your Onju Voice PCB with the correct firmware.

<Tabs>
<TabItem value="usb" label={<><icon icon={faUsb} size="lg"/> USB</>}>
<TabItem value="usb" label={<><icon icon={faUsb} size="lg"/> Onju Voice</>}>

_Make sure this page is opened in a Chromium-based browser on a desktop. The software installation does not work with a tablet or phone._

Expand All @@ -40,7 +40,7 @@ _Make sure this page is opened in a Chromium-based browser on a desktop. The sof
9. Congratulations 🎉 You have successfully installed the firmware on your Onju Voice Satellite.
- The LEDs on the Onju Voice PCB should now be blinking green.

<ESPHomeButton />
<ESPHomeButton manifestUrl="/firmware/onju-voice/manifest.json" />
</TabItem>
</Tabs>

Expand Down
7 changes: 5 additions & 2 deletions docs/src/components/ESPWebTools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ const loadEspWebToolsScript = () => (
/>
);

export default function ESPHomeButton() {
const manifestUrl = useBaseUrl("/onju-voice/manifest.json");
interface ESPHomeButtonProps {
manifestUrl: string;
}

export default function ESPHomeButton({ manifestUrl }: ESPHomeButtonProps) {
return (
<>
<Head>{loadEspWebToolsScript()}</Head>
Expand Down

0 comments on commit 947bc1a

Please sign in to comment.