diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 00000000..3044883c
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "docker/help/wrolpi-help"]
+ path = docker/help/wrolpi-help
+ url = https://github.com/lrnselfreliance/wrolpi-help.git
diff --git a/app/src/App.js b/app/src/App.js
index e16cf18d..7ca3ba5e 100644
--- a/app/src/App.js
+++ b/app/src/App.js
@@ -48,6 +48,18 @@ function Footer() {
}
+function HelpPage() {
+ return
+}
+
function Root() {
return <>
@@ -70,6 +82,7 @@ const router = createBrowserRouter(createRoutesFromElements(}/>
}/>
}/>
+ }/>
}/>
}/>
}/>
diff --git a/app/src/components/Nav.js b/app/src/components/Nav.js
index 7e6743d1..4cb01777 100644
--- a/app/src/components/Nav.js
+++ b/app/src/components/Nav.js
@@ -23,8 +23,9 @@ const links = [
]
},
];
+const help = {to: '/help', text: 'Help', key: 'help'};
const admin = {to: '/admin', text: 'Admin', key: 'admin'};
-const rightLinks = [admin,];
+const rightLinks = [help, admin];
const collapsedLinks = links.concat([admin,]);
diff --git a/docker-compose.yml b/docker-compose.yml
index 3a53c797..63d1f05c 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -30,8 +30,8 @@ services:
- ${REACT_APP_API-127.0.0.1:8081}:8081
command: '-vv api --host 0.0.0.0'
user: '${UID-1000}:${GID-1000}'
-# healthcheck:
-# test: [ 'CMD-SHELL', 'curl http://127.0.0.1:8081/api/echo' ]
+ # healthcheck:
+ # test: [ 'CMD-SHELL', 'curl http://127.0.0.1:8081/api/echo' ]
archive:
build:
@@ -102,6 +102,15 @@ services:
ports:
- '8085:8085'
+ help: # The WROLPi Help documentation.
+ build:
+ context: .
+ dockerfile: docker/help/Dockerfile
+ volumes:
+ - './docker/help/wrolpi-help:/opt/wrolpi-help'
+ ports:
+ - '8086:8086'
+
volumes:
openstreetmap-data:
external: true
diff --git a/docker/help/Dockerfile b/docker/help/Dockerfile
new file mode 100644
index 00000000..de8a8d8e
--- /dev/null
+++ b/docker/help/Dockerfile
@@ -0,0 +1,9 @@
+FROM python:3.11-bookworm
+ENV DOCKER=true
+WORKDIR /opt/wrolpi-help
+
+COPY docker/help/wrolpi-help /opt/wrolpi-help
+RUN pip3 install -r /opt/wrolpi-help/requirements.txt
+
+ENTRYPOINT ["mkdocs"]
+CMD ["serve", "-a", "0.0.0.0:8086"]
diff --git a/docker/help/wrolpi-help b/docker/help/wrolpi-help
new file mode 160000
index 00000000..b2167cf0
--- /dev/null
+++ b/docker/help/wrolpi-help
@@ -0,0 +1 @@
+Subproject commit b2167cf098eaedcf427f9d4e1aa22d0fd7dbf267
diff --git a/pi-gen/build.sh b/pi-gen/build.sh
index af6c59d9..35a1b7ed 100755
--- a/pi-gen/build.sh
+++ b/pi-gen/build.sh
@@ -37,7 +37,7 @@ echo 'IMG_SUFFIX="-lite"' > "${BUILD_DIR}/stage2/EXPORT_IMAGE"
echo 'IMG_SUFFIX="-desktop"' > "${BUILD_DIR}/stage5/EXPORT_IMAGE"
# Build the images.
-(cd "${BUILD_DIR}" && time nice -n 18 "${BUILD_DIR}/build.sh" -c "${BUILD_DIR}/config.txt" | \
+(cd "${BUILD_DIR}" && time nice -n 18 "${BUILD_DIR}"/build.sh -c "${BUILD_DIR}"/config.txt | \
tee "${SCRIPT_DIR}"/build.log)
grep "02-run.sh completed" "${SCRIPT_DIR}/build.log" >/dev/null 2>&1 || (echo "script 2 failed!" && exit 1)
@@ -45,6 +45,7 @@ grep "03-run-chroot.sh completed" "${SCRIPT_DIR}/build.log" >/dev/null 2>&1 || (
grep "04-run-chroot.sh completed" "${SCRIPT_DIR}/build.log" >/dev/null 2>&1 || (echo "script 4 failed!" && exit 1)
# Move the built images out of the build directory.
-mv "${SCRIPT_DIR}/deploy/*xz" "${SCRIPT_DIR}/"
+mv "${SCRIPT_DIR}"/deploy/*lite*xz "${SCRIPT_DIR}"/WROLPi-v"${VERSION}"-aarch64-lite.img.xz
+mv "${SCRIPT_DIR}"/deploy/*desktop*xz "${SCRIPT_DIR}"/WROLPi-v"${VERSION}"-aarch64-desktop.img.xz
chmod 644 "${SCRIPT_DIR}"/*xz
chown 1000:1000 "${SCRIPT_DIR}"/*xz