mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-06 03:31:41 +00:00
Serve docs in demo (#2445)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const devMode = process.env.NODE_ENV === "development";
|
const devMode = process.env.NODE_ENV === "development";
|
||||||
|
const docsSrc = import.meta.env.MODE === "demo" ? "https://docs.photonvision.org" : "docs/index.html";
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div style="overflow: hidden; height: 100vh; width: 100%">
|
<div style="overflow: hidden; height: 100vh; width: 100%">
|
||||||
@@ -21,7 +22,7 @@ const devMode = process.env.NODE_ENV === "development";
|
|||||||
</div>
|
</div>
|
||||||
<div v-else style="width: 100%; height: 100%">
|
<div v-else style="width: 100%; height: 100%">
|
||||||
<!--suppress HtmlUnknownTarget -->
|
<!--suppress HtmlUnknownTarget -->
|
||||||
<iframe src="docs/index.html" style="overflow: hidden; height: 100%; width: 100%; border: 0" />
|
<iframe :src="docsSrc" style="overflow: hidden; height: 100%; width: 100%; border: 0" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user