Closed uniqueck closed 2 years ago
Did you make sure that everything works as expected? It's surprising that there's not a single breaking change?
How? Should I use this gem and render some example files and check if this chart looks ok?
Yes, we can add a few examples in this repository to make it easier to test when we upgrade. We could potentially use something like Cypress to automate things but one step at a time 😉
How do you generate those example graphics? Do you install this gem and you this to generate these png / svg?
How do you generate those example graphics?
Are you referring to the screenshots in the README? I created an AsciiDoc file, converted it to HTML with this extension enabled and then took screenshots. Technically, we could automate the process using Puppeteer but I don't know if it's worth it.
My question was more aimed at how to use my local packaged Ruby Gem to generate these previews?
I believe the easiest way is to require lib/asciidoctor-chart.rb
from your local copy:
asciidoctor -r ./lib/asciidoctor-chart.rb doc.adoc
Do you know a way to call npm from bundle exec? I would like to use cypress for visual regression tests and the cypress gem for ruby is for rails.
I don't mind adding a package.json
(since we want to transpile this extension to JavaScript). You can call npm
directly and use Cypress from Node.
However, please create a dedicated issue and pull request to introduce this change.
However, please create a dedicated issue and pull request to introduce this change.
Yes that was my plan, but i would like to try it and investigate for a solution, to check if all is fine after upgrade to latest version of c3.js.
I created another issue #33 for that, i think it is a good idea to wait with this change for a solution of #33.
Should rebased and merged after #34.
The rendering slightly changed but it's barely noticeable:
Margin between 0 and 1 at the bottom is thinner and the graph is slightly wider.
Rebased on master and base image for C3.js updated
fixes #29