public interface SiteRenderer
| Modifier and Type | Method and Description |
|---|---|
void |
copyResources(SiteRenderingContext siteRenderingContext,
File outputDirectory)
Copy resource files from skin, template, and site resources.
|
SiteRenderingContext |
createContextForSkin(org.apache.maven.artifact.Artifact skin,
Map<String,?> attributes,
SiteModel siteModel,
String defaultTitle,
Locale locale)
Create a Site Rendering Context for a site using a skin.
|
Map<String,DocumentRenderer> |
locateDocumentFiles(SiteRenderingContext siteRenderingContext)
Locate Doxia document source files in the site source context.
|
default Map<String,DocumentRenderer> |
locateDocumentFiles(SiteRenderingContext siteRenderingContext,
boolean editable)
Deprecated.
editable parameter is ignored since SiteRenderingContext.getSiteDirectories()
contain this information on a per-directory basis now. |
void |
mergeDocumentIntoSite(Writer writer,
DocumentContent content,
SiteRenderingContext siteRenderingContext)
Generate a document output integrated in a site from a document content,
i.e.
|
void |
render(Collection<DocumentRenderer> documents,
SiteRenderingContext siteRenderingContext,
File outputDirectory)
Render a collection of documents into a site.
|
void |
renderDocument(Writer writer,
DocumentRenderingContext docRenderingContext,
SiteRenderingContext siteContext)
Render a document written in a Doxia markup language.
|
void render(Collection<DocumentRenderer> documents, SiteRenderingContext siteRenderingContext, File outputDirectory) throws RendererException, IOException
documents - the documents to render.siteRenderingContext - the SiteRenderingContext to use.outputDirectory - the output directory to write results.RendererException - if it bombs.IOException - if it bombs.void mergeDocumentIntoSite(Writer writer, DocumentContent content, SiteRenderingContext siteRenderingContext) throws IOException, RendererException
writer - the Writer to use.content - the document content to be merged.siteRenderingContext - the SiteRenderingContext to use.IOException - if it bombs.RendererException - if it bombs.SiteRenderingContext createContextForSkin(org.apache.maven.artifact.Artifact skin, Map<String,?> attributes, SiteModel siteModel, String defaultTitle, Locale locale) throws RendererException, IOException
skin - a skinattributes - attributes to usesiteModel - a site modeldefaultTitle - default titlelocale - locale to useRendererException - if it bombs.IOException - if it bombs.void copyResources(SiteRenderingContext siteRenderingContext, File outputDirectory) throws IOException
siteRenderingContext - the SiteRenderingContext to use.outputDirectory - output directory as fileIOException - if it bombs.Map<String,DocumentRenderer> locateDocumentFiles(SiteRenderingContext siteRenderingContext) throws IOException, RendererException
siteRenderingContext - the SiteRenderingContext to useIOException - if it bombs.RendererException - if it bombs.@Deprecated default Map<String,DocumentRenderer> locateDocumentFiles(SiteRenderingContext siteRenderingContext, boolean editable) throws IOException, RendererException
editable parameter is ignored since SiteRenderingContext.getSiteDirectories()
contain this information on a per-directory basis now.IOExceptionRendererExceptionlocateDocumentFiles(SiteRenderingContext)void renderDocument(Writer writer, DocumentRenderingContext docRenderingContext, SiteRenderingContext siteContext) throws IOException, RendererException
DoxiaDocumentRenderer.writer - the writer to render the document to.docRenderingContext - the document's rendering context, which is expected to have a non-null parser id.siteContext - the site's rendering contextIOException - if it bombs.RendererException - if it bombs.Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.