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

Rouge Highlighting is not working in 2.0.0 #444

Closed
eiswind opened this issue Jul 4, 2020 · 3 comments
Closed

Rouge Highlighting is not working in 2.0.0 #444

eiswind opened this issue Jul 4, 2020 · 3 comments
Labels

Comments

@eiswind
Copy link

eiswind commented Jul 4, 2020

After upgrading from RC01 to 2.0.0 I see that my custom rouge style does not get applied anymore.

<execution>
    <id>generate-slides</id>
    <phase>process-resources</phase>
    <goals>
        <goal>process-asciidoc</goal>
    </goals>
    <configuration>
        <requires>
            <require>${project.build.directory}/out/rouge/custom.rb</require>
        </requires>
        <sourceDocumentName>${source.document}.adoc</sourceDocumentName>
        <outputDirectory>${project.slides.directory}</outputDirectory>
        <outputFile>${project.slides.directory}/${source.document}.html</outputFile>
        <backend>revealjs</backend>
        <sourceHighlighter>rouge</sourceHighlighter>
        <attributes>
            <rouge-css>style</rouge-css>
            <rouge-style>custom</rouge-style>
            <project-version>${project.version}</project-version>
            <customcss>assets/custom.css</customcss>
        </attributes>
    </configuration>
</execution>

Do I need any changes in my config?

@abelsromero
Copy link
Member

Some options have been moved, refer to the migration guide: https://github.com/asciidoctor/asciidoctor-maven-plugin/blob/master/docs/v2-migration-guide.adoc.

I'll add a note in the main README to make it more visible.

@abelsromero
Copy link
Member

Btw, if you are building slides with reveal, you may need to set the jruby version explicitely to 9.2.9.0. Check the example https://github.com/asciidoctor/asciidoctor-maven-examples/blob/master/asciidoc-to-revealjs-example/pom.xml.

@eiswind
Copy link
Author

eiswind commented Jul 5, 2020

Thanks for helping me out with that!

@eiswind eiswind closed this as completed Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants