Closed supsup closed 6 years ago
Have you tried to set the outfilesuffix in the global AsciiDoc attribute?
https://github.com/middleman/middleman-asciidoc#activation-and-configuration
Think so:
# Configure the AsciiDoc renderer
activate :asciidoc,
attributes: {
'header_footer' => false,
'toc' => false,
'outfilesuffix' => ".gsp",
},
layout: "layout.erb"
That's supposed to work. However, I notice there's no test for it. I'll add a test and see if it actually does what it's supposed to do.
On Mon, Apr 16, 2018, 16:41 supsup notifications@github.com wrote:
Think so:
Configure the AsciiDoc renderer
activate :asciidoc, attributes: { 'header_footer' => false, 'toc' => false, 'outfilesuffix' => ".gsp", }, layout: "layout.erb"
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/middleman/middleman-asciidoc/issues/87#issuecomment-381772749, or mute the thread https://github.com/notifications/unsubscribe-auth/AAE19-2CCNnxEs_bGsqBJTy-Fi-X0aIiks5tpR4fgaJpZM4TXKhH .
is outfilesuffix also suppose to fix references to other linked .adoc files to be that value instead of .html?
Nope. For that you need to set relfilesuffix. relfilesuffix is used for links. outfilesuffix is (supposed to be) used for the file itself.
relfilesuffix does not seem to work either.
Oddly in MM3, if you set
:outfilesuffix: .gsp
in an .adoc file it does convert other .adoc links in that file to have .gsp extensions.
ultimately trying to get MM4 to work tho, was just comparing.
relfilesuffix is coming in 1.5.7. I should have said "you will have to set"
I just submitted a PR with a slight change and more tests.
Here are the new rules:
Let's handled the file extension for interdoc xrefs in a separate issue.
There's now a test in place to prove that outfilesuffix can be set (either the global AsciiDoc attributes or per page). I also added docs to the README.
Is there a property to change the output from .html, to .xyz? for different lang backed systems like java etc? ( .jsp / .gsp )