CARWatch is an open-source framework to support objective and low-cost assessment of cortisol samples in real-world, unsupervised environments. It is especially suitable for cortisol awakening response (CAR) research, but not limited to this application.
For local authoring, the markdown files in docs/ remain normal UTF-8 source files. During the build, scripts/prepare_build_docs.py creates a temporary normalized copy in .build/docs before MinimalDoc runs. This avoids a current MinimalDoc search-index issue with non-ASCII characters while keeping the editable source files clean.
The project overview, platform links, publication highlight, and privacy-policy page are hosted as a GitHub Pages site generated from the source files in docs/.
This site uses MinimalDoc as its static site generator and theme.
MinimalDoc also generates llms.txt and related machine-readable companion files. These can be useful for AI-assisted browsing or downstream tooling.
Once GitHub Pages is enabled to use GitHub Actions, the public site will be available at:
https://carwatch-tools.github.io/
For local editing, update the source files in docs/, especially:
docs/config.yamldocs/index.mddocs/overview.mddocs/components.mddocs/publications.mddocs/privacy.mddocs/TOC.mddocs/brand/for site logo and favicon assetsdocs/site.webmanifestfor the web app/browser icon manifestscripts/postprocess_landing.pyas the build-time entry point for HTML postprocessingscripts/postprocess_homepage.pyfor homepage-specific layout and section renderingscripts/postprocess_shared.pyfor shared branding, content-page chrome, and common HTML helpers
The GitHub Pages deployment workflow is defined in .github/workflows/docs.yml.
Local development requires:
- Go installed and available on
PATH - network access if MinimalDoc is not already available locally
The GitHub Actions deployment workflow does not depend on any local /tmp paths. It installs MinimalDoc during CI and builds the site independently of your machine.
Bootstrap the MinimalDoc binary with:
make installThis installs MinimalDoc into the repo-local path .tools/bin/minimaldoc.
If make install fails, check your setup with:
make doctorBuild the site locally with:
makeServe the built site and open it in your browser with:
make viewBuild without serving with:
make buildIf you want to run the server without opening the browser:
make serveThe server runs in the foreground until you stop it with Ctrl+C.
To use a different port temporarily:
make serve PORT=4321
make view PORT=4321To remove local build output:
make cleanTo remove both local build output and the repo-local MinimalDoc binary:
make clean-all- Local build output is written to
.build/site. - The local MinimalDoc binary is stored in
.tools/bin/minimaldoc. - The build pipeline applies a small post-processing step to generated HTML so the homepage and content pages can use the project-specific layout and branding that MinimalDoc does not expose through config alone.
- Brand assets from
docs/brand/anddocs/site.webmanifestare copied into the built site during local and CI builds. - The build step clears the output directory first so deleted pages are not accidentally kept in the generated site.
- If
.tools/bin/minimaldocis missing,make,make build,make serve, andmake viewwill install it automatically when Go is available. - The first local install may take a moment because Go downloads the MinimalDoc module and its dependencies.
- If you are offline and do not already have a working
minimaldocbinary, local installation will fail. - In that case, reconnect to the network and run
make install. makeonly builds the site. It does not start the server.make viewstarts a local server, opens the browser, and should stop the server again when you pressCtrl+Cin that terminal.- If
make servereports that the port is already in use, check for an existing listener with:
lsof -nP -iTCP:4173 -sTCP:LISTENStop the old process and then run make serve again.
make clean removes only generated site output in .build/.
make clean-all removes both .build/ and .tools/.
The GitHub Pages site currently provides:
- a landing page for the CARWatch project
- links for the Android and iOS apps, the Study Manager, project pages, publications, and related resources
- a formal privacy-policy page with placeholder content for app-store compliance work
If you use CARWatch in your work, please cite:
Richer, R., Abel, L., Küderle, A., Eskofier, B. M., & Rohleder, N. (2023). CARWatch – A smartphone application for
improving the accuracy of cortisol awakening response sampling. Psychoneuroendocrinology, 151, 106073.
https://doi.org/10.1016/j.psyneuen.2023.106073
This project is licensed under the MIT License. See LICENSE for details.