kwin commented on issue #302:
URL: 
https://github.com/apache/maven-doxia-sitetools/issues/302#issuecomment-3901885487

   The Doxia parser currently is called with this method 
https://github.com/apache/maven-doxia/blob/e5c77a114f745d6ee420ae42c64d2bed736c5e71/doxia-core/src/main/java/org/apache/maven/doxia/parser/Parser.java#L66.
 The information about the output directory is currently hidden behind the Sink 
which is a  
[`SiteRendererSink`](https://github.com/apache/maven-doxia-sitetools/blob/master/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/sink/SiteRendererSink.java)
 (when generating the site). That contains the `DocumentRenderingContext` which 
also exposes information about the output path. That is available already via 
https://github.com/apache/maven-doxia-sitetools/blob/ac20ef5eccda682ab70062c95631d202b5f61c17/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/sink/SiteRendererSink.java#L225.
 
   
   @abelsromero So I think what you want to achieve is already possible with 
this kind of code:
   
   ```
   if (sink instanceof SiteRendererSink srs) {
     srs.getRenderingContext().getOutputPath()
     ...
   }
   ```
   or am I missing something?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to