Repowiki¶
Purpose¶
repowiki generates an AI-written wiki for repositories, serving it with mkdocs-material off
a shared PVC. See the AI / LLM stack page for how the
mkdocs and repowiki-gen controllers split the work.
Deploy gotchas¶
- On a fresh PVC,
/app-data/repositorydoesn't exist untilrepowiki-genhas run once, and mkdocs refuses to start ("Config value 'docs_dir': The path '/app-data/repository' isn't an existing directory"). This was observed as 5 crash-loops on a new PVC. Theseed-placeholderinit container creates the directory and writes a placeholderindex.mdso mkdocs has something to serve.generate.pyunconditionally rewritesREPO/index.mdat the end of every run, andmkdocs.yml'sdocs_dirpoints straight at the repository root, matching wheregenerate.pywrites, so the real content replaces the placeholder the first time the CronJob fires. - The init container reuses the mkdocs image rather than pulling a new one.
- It only creates the directory and the placeholder file:
generate.pyalready runsgit initon the repository itself when.gitis absent, so the init container doesn't need to do that too.