Skip to content
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

Allow setting custom attributes for Asciidoctor #156

Closed
mhogerheijde opened this issue Oct 24, 2019 · 4 comments · Fixed by #157
Closed

Allow setting custom attributes for Asciidoctor #156

mhogerheijde opened this issue Oct 24, 2019 · 4 comments · Fixed by #157
Milestone

Comments

@mhogerheijde
Copy link
Contributor

I'm using front-matter metadata in my files, to be able to upload our documentation to Confluence (using the doktor Jenkins plugin ).

I also want to have a .zip of our documentation and I want to use previewSite to be able to quickly see the effect of my changes.

asciidoctor can ignore the front-matter metadata, by passing an attribute with the value skip-front-matter.

Looking at the source-code, I can't see a way how I could set such an option from the build.sbt.

Could support for adding arbitrary attributes to the call to asciidoctor be added?

@ennru
Copy link
Contributor

ennru commented Oct 26, 2019

Yes, that would be great. Please suggest the necessary changes in a Pull Request.

@mhogerheijde
Copy link
Contributor Author

I'm having trouble running the scripted tests and creating a test-set for this feature because I haven't installed all the binaries for all the documentation flavours. Is there a handy way to run a sub-set of the scripted tests?

@ennru
Copy link
Contributor

ennru commented Nov 7, 2019

You can use sbt> scripted asciidoctor/asciidoctor-skips-frontmatter.

@mhogerheijde
Copy link
Contributor Author

mhogerheijde commented Nov 7, 2019 via email

@ennru ennru added this to the 1.4.1 milestone Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants