Package atessera.markup
Class PublicationDirLoader
java.lang.Object
atessera.markup.PublicationDirLoader
Loads the content of a publication from a directory.
This loader walks the supplied directory, picks supported source
files, sorts them by path, and assembles a
PublicationContent model. Each
matching file becomes a section; the section type is inferred from the
file extension. Files named abstract.md and abstract.tex
are treated specially as the publication abstract. Metadata from an
INFO.txt file, if present, is applied to the resulting content.
Supported source file extensions are MD, TEX,
EQ, LST, UML, PLOT, MP,
DOT, PY, JAVA, C, and CPP.
-
Constructor Summary
ConstructorsConstructorDescriptionPublicationDirLoader(Path publDir) Creates a loader for the specified publication directory. -
Method Summary
Modifier and TypeMethodDescriptionload()Loads the publication content from the configured directory.
-
Constructor Details
-
PublicationDirLoader
Creates a loader for the specified publication directory.- Parameters:
publDir- the publication directory, must not benull
-
-
Method Details
-
load
Loads the publication content from the configured directory.- Returns:
- the loaded publication content
- Throws:
IOException- if an I/O error occurs while reading the directory
-