Hugo-based technical documentation site with draw.io diagram support.
- Hugo
- draw.io CLI
Build site:
./hugo-build.shStart development server (incl. build):
./hugo-server.shThe build script automatically converts .drawio files in doc-site/static/images/ to SVG before building.
Note: Auto-reload during hugo server doesn't trigger diagram conversion. Restart the server after modifying
.drawio files.
Hugo doesn't have an extension point to trigger external scripts. There's no way to hook into Hugo's build process to run external commands before each rebuild. So, using hugo-preproc or any other tool/script must be managed manually.
-
Theme: Update the theme Techdoc by getting the latest changes from the git repo. This can be done via this script:
rm -rf doc-site/themes/hugo-theme-techdoc git clone https://github.com/thingsym/hugo-theme-techdoc.git doc-site/themes/hugo-theme-techdoc rm -rf doc-site/themes/hugo-theme-techdoc/.git
-
Hugo: Hugo itself does not need upgrades in this project. Updating the Hugo installation will update the project during the next build.