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

pdfTheme documentation wrong? #563

Closed
vogella opened this issue Aug 12, 2020 · 5 comments · Fixed by #571
Closed

pdfTheme documentation wrong? #563

vogella opened this issue Aug 12, 2020 · 5 comments · Fixed by #571

Comments

@vogella
Copy link

vogella commented Aug 12, 2020

I copied the following from the documentation https://asciidoctor.github.io/asciidoctor-gradle-plugin/development-3.x/user-guide/#asciidoctorj-pdf-plugin into my script:


asciidoctorPdf {
// more stuff
pdfThemes {
    local 'basic', { 
        styleDir = file('themes/basic') 
        styleName = 'very-basic' 
    }
}
}

But this results into an error:

  • Where:
    Build file '/home/vogella/git/content/build.gradle' line: 115

  • What went wrong:
    A problem occurred evaluating root project 'content'.

No such property: styleDir for class: org.asciidoctor.gradle.jvm.pdf.AsciidoctorPdfThemesExtension

@vjlamp
Copy link

vjlamp commented Dec 8, 2020

Thank you, @ysb33r, for fixing this. Please don't forget to update the published page. I ran into the same issue today because the website still contains the wrong information.
If anyone wondering what the fix is: Use themeDir instead of styleDir and themeName instead of styleName.

@l3nz
Copy link

l3nz commented Feb 19, 2024

I was bitten by the same bug - the documentation seems to be wrong. https://asciidoctor.github.io/asciidoctor-gradle-plugin/development-3.x/user-guide/#asciidoctorj-pdf-plugin

I googled and found this page.... but it would be better to fix it for good :-)

@abelsromero
Copy link
Member

Just by chance we started working on fixing docs yesterday 😅 #716 It will be fixed soon ™️

@l3nz
Copy link

l3nz commented Feb 20, 2024

BTW, apart from complaining of this mistake, I want to say THANK YOU because your plugin made my life so much easier when running Asciidoctor.

@vogella
Copy link
Author

vogella commented Dec 6, 2024

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.

4 participants