How spandigital/presidium works
Presidium is a documentation-management CLI centered on converting Jekyll sites into Hugo sites, then building or serving them with Hugo. Other documented command branches validate page links and search maps, refresh generated output, initialize projects, and manage versioning. The graph also shows conversion internals and the development-server proxy. Some links rely on the SOURCE INDEX or README because their implementation excerpts were not provided; those limits are reflected by omitting uncertain relationships.
Main entry points: root.go CLI commands · conversion.go Jekyll-to-Hugo conversion · hugo.go Hugo engine · server.go Development proxy
Components 23
CLI workflows
- CLI commands
cmd/root.go - Project initialization
pkg/domain/wizard/initwzd/impl.go - Version management
pkg/domain/versioning/versioning.go - Site refresh
cmd/refresh.go
Site conversion
- Conversion command
cmd/convert.go - Jekyll-to-Hugo conversion
pkg/domain/service/conversion/conversion.go - Config translation
pkg/configtranslation/configfile.go - Content file actions
pkg/domain/service/conversion/fileactions/fileactions.go - Markdown transforms
pkg/domain/service/conversion/markdown/operations.go - Media resources
pkg/domain/service/conversion/resources/resources.go
Hugo serving
- Hugo engine
pkg/domain/service/hugo/hugo.go - Server commands
cmd/hugo.go - Development proxy
pkg/domain/service/proxy/server.go - URL middleware
pkg/domain/service/proxy/middleware.go
Documentation checks
- Search-map command
cmd/searchmap.go - Search-map validation
pkg/domain/service/searchmapvalidation/searchmapvalidation.go - Page-link validation
cmd/pagelinks.go - Site validation
pkg/domain/service/validation/validation.go
Shared services
- Project generator
pkg/domain/service/generator/generator.go - Project templates
pkg/domain/service/template/template.go - Embedded themes
pkg/domain/service/themes/themes.go - Filesystem utilities
pkg/filesystem/fsutil.go
Other components
- Documentation author
Connections 26
- Documentation author → CLI commands: runs commands
- CLI commands → Conversion command: runs conversion
cmd/convert.go - Conversion command → Jekyll-to-Hugo conversion: executes
cmd/convert.go - Jekyll-to-Hugo conversion → Config translation: translates config
pkg/domain/service/conversion/conversion.go - Jekyll-to-Hugo conversion → Content file actions: applies actions
pkg/domain/service/conversion/conversion.go - Jekyll-to-Hugo conversion → Media resources: handles media
pkg/domain/service/conversion/conversion.go - Jekyll-to-Hugo conversion → Hugo engine: initializes module
pkg/domain/service/conversion/conversion.go - Content file actions → Markdown transforms: uses transforms
pkg/domain/service/conversion/fileactions/fileactions.go - Jekyll-to-Hugo conversion → Filesystem utilities: uses filesystem
pkg/domain/service/conversion/conversion.go - CLI commands → Project initialization: initializes project
- Project initialization → Project generator: generates project
pkg/domain/wizard/initwzd/impl.go - Project generator → Project templates: loads templates
pkg/domain/service/generator/generator.go - CLI commands → Version management: manages versions
- CLI commands → Site refresh: refreshes site
cmd/refresh.go - Site refresh → Hugo engine: runs Hugo
cmd/refresh.go - Server commands → Hugo engine: runs Hugo
cmd/hugo.go - Server commands → Development proxy: starts proxy
cmd/hugo.go - Development proxy → Hugo engine: starts server
pkg/domain/service/proxy/server.go - Development proxy → URL middleware: routes requests
- Hugo engine → Embedded themes: configures themes
pkg/domain/service/hugo/hugo.go - CLI commands → Search-map command: checks search map
cmd/searchmap.go - Search-map command → Search-map validation: validates entries
cmd/searchmap.go - Search-map validation → Filesystem utilities: reads site files
pkg/domain/service/searchmapvalidation/searchmapvalidation.go - CLI commands → Page-link validation: checks page links
cmd/pagelinks.go - Page-link validation → Site validation: invokes validation
- Documentation author → Server commands: serves documentation