[nu-demo] Roadmap: seed Office archipelago with per-library generated PDFs/docs (match context to library) #144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Vision
When a user opens Office → PDF / Documents / Spreadsheets / Presentations in a given context, they should see realistic content that matches the context's library. Generate office files from the already-cloned markdown docs:
root/herodocs_herogeominddocs_geomindmyceliumdocs_myceliumourworlddocs_owhWhy this is the right demo
Today Office islands show empty states or 404. A fresh visitor opening Office > PDF has nothing to click. With this seeded content, each context feels like a real workspace with domain-specific knowledge already loaded.
Combined with AI grounding (home#130 pending embedder), you get: user opens geomind → Office > PDF → sees geomind-specific docs → AI Assistant can answer geomind-specific questions grounded in those same docs. Complete loop.
Pipeline
Library markdown (already cloned by hero_books to
/home/driver/code/<lib>/) → conversion → drop into~/hero/var/hero_foundry/webdav/<context>/Documents/and/orOffice/.Conversion candidates:
pandoc(installed via apt, works cleanly on Ubuntu). One PDF per markdown file, preserving heading structure.pandoc -t pptxorpandoc -t revealjs. A markdown file with level-1 headings becomes a slide deck.pandocor a small Python script withopenpyxl.All three pipelines are short scripts that iterate
/home/driver/code/docs_<lib>/and write to~/hero/var/hero_foundry/webdav/<context>/Documents/(or a dedicatedOffice/subdir if the archipelagos expect that).Proper implementation
Add a new hero_books method (or a new
hero_officemethod)office.scaffold --library X --context Ythat:*.mdin the library's cloned repo.pandoc(or a pure-Rust equivalent) to generate PDF + PPTX + XLSX variants where appropriate.webdav/<context>/Documents/.list_documentsreturns metadata.Invoke once per (library, context) pair on first deploy, or expose a UI button in hero_office UI.
Demo workaround
(To apply once embedder + books + AI are fully wired.) A shell script on the VM that does
find /home/driver/code/docs_hero -name '*.md' | xargs -I{} pandoc {} -o webdav/hero/Documents/{}.pdf— crude but fills the office with real content for the demo.Related
discover_and_convert_ebooksin hero_books_server/src/web/server.rs). Same mental model.Filed 2026-04-23 nu-shell demo. Signed-off-by: mik-tf
Moved to hero_demo#21 — see lhumina_code/hero_demo#21