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

Using the --attribute option to specify paths for included files #12

Open
mattadamson opened this issue Apr 29, 2016 · 1 comment
Open

Comments

@mattadamson
Copy link

I love this project however I'm trying to add a property to be used when the application parses ascii doctor files which contain the include directive with a specific value e.g. {generated} in the path. This is set when the script is called to point to a specify file path actually part of this project

https://github.com/Swagger2Markup/swagger2markup

I thought the --attribute was intended for this however if I specify in this way

--attribute generated="d:/files/generated"

I get an error unknown attribute --attribute although the help from -? indicates --attribute is an option for a key value pair.

I am using this correctly or is there a better way to replace this ascii doctor variable?

Many thanks

@Kabhal
Copy link

Kabhal commented Apr 7, 2017

This is not explicit in the usage, but you have to use '--' between asciidoctor-confluence options and Asciidoctor options like this :

{noformat}
asciidoctor-confluence --host HOST --spaceKey SPACE --title TITLE --username USER --password PASS -- --attribute generated="d:/files/generated" file.adoc
{noformat}

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

No branches or pull requests

2 participants