-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using markdown in the extensions #9
Comments
Thx. |
@RobWin thanks, I've checked and I see the parameter Indeed, the conversion of markdown to asciidoc now happens but as long as the extension of the file is convertSwagger2markup {
swaggerInput file("src/docs/swagger/swagger_petstore.yaml").getAbsolutePath()
outputDir asciiDocOutputDir
config =['swagger2markup.markupLanguage' : 'ASCIIDOC',
'swagger2markup.outputLanguage' : 'EN',
'swagger2markup.pathsGroupedBy' : 'TAGS',
'swagger2markup.generatedExamplesEnabled' : 'true',
'swagger2markup.pathSecuritySectionEnabled' : 'false',
'swagger2markup.basePathPrefixEnabled' : 'true',
'swagger2markup.extensions.dynamicDefinitions.contentPath' : file('src/docs/asciidoc/extensions/definitions').absolutePath,
'swagger2markup.extensions.dynamicDefinitions.markupLanguage' : 'MARKDOWN',
'swagger2markup.extensions.dynamicOverview.contentPath' : file('src/docs/asciidoc/extensions/overview').absolutePath,
'swagger2markup.extensions.dynamicOverview.markupLanguage' : 'MARKDOWN',
'swagger2markup.extensions.dynamicPaths.contentPath' : file('src/docs/asciidoc/extensions/paths').absolutePath,
'swagger2markup.extensions.dynamicPaths.markupLanguage' : 'MARKDOWN',
'swagger2markup.extensions.dynamicSecurity.contentPath' : file('src/docs/asciidoc/extensions/security').absolutePath,
'swagger2markup.extensions.dynamicSecurity.markupLanguage' : 'MARKDOWN']
} |
Yes, you can only use .md files when you change swagger2markup.markupLanguage to MARKDOWN, as far as I remember. |
@RobWin the problem is that markdown in |
In the meantime, can you use AsciiDoc instead? |
@RobWin yes, going to use AsciiDoc for now. Maybe, I'll get some time to investigate the cause for |
Hi, I'm dealing with the same issue. My current workaround is to use I've been looking at your code to figure out if I could open a pull request to fix that behaviour. But I don't see where the |
Hi, If The |
Thanks for this project template! It works great for asciidoc doc extensions as they are used in the project right now.
Is it possible to employ markdown extensions instead?
Just renaming
.adoc
files into.md
and changing the text inside seems not to work: the extensions do not appear in the generated docs.The text was updated successfully, but these errors were encountered: