[ https://issues.apache.org/jira/browse/DOXIA-755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17894921#comment-17894921 ]
Abel Salgado Romero commented on DOXIA-755: ------------------------------------------- Related to this, while working on another feature, I realized I'd need access to the baseDir which also in the SiteRenderingContext. Right now we make a guess parsing the configuration looking for `<siteDirectory>` and `<locales>`, but it's in reality repeating the logic done in Doxia. Mentioning just to see if it makes sense to expand to scope to more information. > Feature request: Getting output directory in Doxia Parser > --------------------------------------------------------- > > Key: DOXIA-755 > URL: https://issues.apache.org/jira/browse/DOXIA-755 > Project: Maven Doxia > Issue Type: Improvement > Affects Versions: 2.0.0 > Reporter: Abel Salgado Romero > Priority: Minor > > As described in > https://lists.apache.org/thread/z0thrxyv9tybot6xpkd8ft9nc1mc3nj9 (sumary > below), the main requirement is providing a method for Doxia Parsers to > obtain the outpath file where the current source file is going to be saved. > For context, the Asciidoctor Doxia Module allows using third-party > Asciidoctor extensions that generate other files (or example, > asciidoctor-diagram creates images from text descriptions). In order to > configure where those should reside we need to be able to know where the site > output path is configured. Currently, the files are generated alongside the > sources in the "src" path by default. > Based on my preliminary analysis, the path is available 2 calls above in > https://github.com/apache/maven-doxia-sitetools/blob/cd77672ba79e1ee42f16258706fc6a43c898b842/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java#L300-L302 -- This message was sent by Atlassian Jira (v8.20.10#820010)