Closed cdanger closed 4 years ago
Could anyone (with write access) consider merging this pull request? Feel free to give me write access if this helps ;-)
I believe it is time to graduate this extension out of the repository. I'm going to do that now. I don't want to continue to push code into the extension here and encourage people to use it in production. This is a lab and once an extension starts to take on its own life (meaning getting PRs and needing maintenance) it really needs to be moved out of here.
I have set up the asciidoctor-chart repo, imported the code, and included this patch. See https://github.com/asciidoctor/asciidoctor-chart
I have not verified that the code works in its current form, so it will need to be tested and possibly fixed.
Thanks, I appreciate it :-)
:+1:
@cdanger could you test the code in the new repo to make sure I didn't mess anything up?
Well, I am happy to try but I need a bit of help. With the asciidoctor-extensions-lab
repository, I do this alright:
$ asciidoctor -r ./lib/chart-block-macro.rb ./lib/chart-block-macro/sample.adoc
With the new repository (asciidoctor-chart), I tried this:
$ asciidoctor -r ./lib/asciidoctor-chart.rb examples/example.adoc
and got this error
Failed to load AsciiDoc document - uninitialized constant Asciidoctor::Chart::BlockMacro
Did you mean? Asciidoctor::BlockMediaMacroRx
Am I doing this wrong?
Nope, nothing wrong. But you did do exactly the right thing, which is to verify that it's not working. I just fixed the code. Can you pull and try again?
Works for me now :-)
Fantastic! Thanks for verifying.
I'll proceed with removing the extension from the lab and rerouting users to the newly created project. Any further issues regarding this extension should be addressed there.
The extension has been removed from the lab. It now lives here: https://github.com/asciidoctor/asciidoctor-chart
Adding new attributes 'axis-x-label', 'axis-y-label' and 'data-names' to chart-block macro. Only for c3js backend. Added examples of usage to
sample.adoc
file.