-
Notifications
You must be signed in to change notification settings - Fork 4
feature(asciidoc): New maven-plugin for extracting UI tooltips from asciidoc source #20
Comments
@gashcrumb and @kahboom , I just want to make sure you are aware of this issue. I am wondering (hoping!) if guided tour content can be pulled from asciidoc source files that @nichmoore and I create. |
Yeah, pulling the content for the tooltips from the documentation would be ideal for sure... |
@rhuss - Didn't @fbolton mention that we already have a plugin like this on this issue syndesisio/syndesis-project#47 (comment) ? I could be missing something though. |
Actually, I would like to implement this as a maven plugin which should be not that hard. Actually what would be needed to start is
If someone could provide some pointer to this information so that we don't have to reverse engineer the python script, this would be awesome. |
@fbolton is on PTO till September 7. I'll paste his comment in the related issue (syndesisio/syndesis-project#47) below. Maybe those links provide the information you are looking for: From Fintan: https://github.com/ErnieAllen/routilities/blob/tooltips/parse.py And here is a sample of an Asciidoc file that works with this tooltip extractor script: https://raw.githubusercontent.com/ErnieAllen/routilities/tooltips/model.adoc |
@rhuss I can work on this plugin, should we "port" the python script to maven as it is or is there anything else to take into account ? |
Thanks a lot ! I think we should just port it, as the main concern was to have no python dependency in the build. Not sure about the format (we can improve it for sure if we need to), but the idea is, that the plugin runs in this repo, generate json file(s), these get checked in then. Then from the UI build, the files are downloaded from gitub via raw.github.com, and put into the assests for the ui client so that its deployed along with syndesis-ui. |
Thank you @lburgazzoli , that would be a huge help! 👍 |
I've created a plugin which is a raw port of the python script on my GitHub account:
When executed the mojot generates the same json as the python one.
|
@lburgazzoli haven't checked the implementation yet, but it looks clean and simple. The name is perfectly fine and I would commit it to this repo. Just ask @fbolton how to best include it into the build process. Next step would be to agree on a location where to commit this generated json and adapt the syndesis-ui build to fetch the json during build time. |
feature(asciidoc): New maven-plugin for extracting UI tooltips from asciidoc source #20
@lburgazzoli and @rhuss, sorry for the slow response - just back from vacation. So, presumably, the sort of workflow you are talking about would be to run the new Maven plug-in in the |
Should we close this as it has been merged ? We may open a new issue for workflow integration. |
Absolutely, be good if the next issue maybe just links back to this one |
We should fix that :-) |
See syndesisio/syndesis-project#47 for the initial discussion.
The idea is, to create a Maven plugin which:
The suggestion is to leave the plugin in this repo, where it is used.
The text was updated successfully, but these errors were encountered: