Hi,
Now that I have this epub3 project working, I thought it should be a module one can import.
But so far, importing it as a new empty hugo project only failed. I can see that at least some, if not most of the config save for the title, baseurl and the like (makes sense) are merged, yet the output is completely different. I just did hugo mod init and imported the epub module.
Everything should be merged:
/home/drm/epub/assets/{css,fonts,images}, /home/drm/epub/content/{chapter-1,chapter-3}, /home/drm/epub/data, /home/drm/epub/layouts/_markup, /home/drm/epub/static/{EPUB,META-INF}, /home/drm/essai/archetypes, /home/drm/essai/assets, /home/drm/essai/content, /home/drm/essai/data, /home/drm/essai/i18n, … and 2 more
Watching for config changes in /home/drm/essai/hugo.toml
Here’s the output tree produced:
public/
├── EPUB
│ └── images
│ └── cover.jpg
├── META-INF
│ └── container.xml
├── categories
│ └── index.xml
├── chapter-1
│ ├── image-1-1.jpg
│ └── image-1-2.jpg
├── chapter-3
│ └── image-3.jpg
├── images
│ └── image_8186e-durian.jpg
├── index.xml
├── mimetype
├── sitemap.xml
└── tags
└── index.xml9 directories, 11 files
And this is the module’s output on its own:
public/
├── EPUB
│ ├── chapter-1
│ │ ├── image-1-1.jpg
│ │ └── image-1-2.jpg
│ ├── chapter-1.xhtml
│ ├── chapter-2.xhtml
│ ├── chapter-3
│ │ └── image-3.jpg
│ ├── chapter-3.xhtml
│ ├── cover.xhtml
│ ├── css
│ │ └── epub.css
│ ├── fonts
│ │ └── oswald.woff2
│ ├── images
│ │ ├── cover.jpg
│ │ └── image_8186e-durian.jpg
│ ├── package.opf
│ └── toc.xhtml
├── META-INF
│ └── container.xml
├── chapter-1
│ ├── image-1-1.jpg
│ └── image-1-2.jpg
├── chapter-1.xhtml
├── chapter-2.xhtml
├── chapter-3
│ └── image-3.jpg
├── chapter-3.xhtml
├── cover.xhtml
├── css
│ └── epub.css
├── fonts
│ └── oswald.woff2
├── images
│ └── image_8186e-durian.jpg
├── mimetype
├── package.opf
└── toc.xhtml
13 directories, 27 files
Only the static assets and overall structure remains. Modules are a fairly complicated feature I never touched and I can’t grok the documentation.