by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    danyill
    @danyill
    git rebase or/tr I quite like the repetition on the r. Yeah maybe. For all those people with slow mechanical keyboards or who have hooked up their typewriter to their computer... :wink:
    djencks
    @djencks
    my first computer experiences were with a teletype, but even those didn't have key jamming problems :-)
    Dan Allen
    @mojavelinux
    I really think this is going to come down to what the services choose. If they make "main" special, then we'll potentially miss out on some implicit behaviors. but if they make it kind of open, then the name is more of a choice.
    I personally don't like trunk because I was glad to leave SVG behind and all of its nomenclature. but if I had never used SVN, I might be more in favor of the word trunk.
    djencks
    @djencks
    well, if you're going to have branches... and a tree.... having a trunk is consistent.
    although I suppose that having trunk be a branch doesn't fit the metaphor well at all!
    Dan Allen
    @mojavelinux
    ;)
    Guillaume Grossetie
    @Mogztter
    commits are cherries on the tree and you can cherry-pick!
    djencks
    @djencks
    I've been picking actual cherries the last few days.... I haven't quite mastered reattaching the cherry to a different branch.
    Guillaume Grossetie
    @Mogztter
    :laughing:
    djencks
    @djencks
    Or, for that matter, having one cherry present on two or more branches.
    Guillaume Grossetie
    @Mogztter
    It drives me nuts that Intellij cannot understand basic import in a build.gradle :sob:
    errors.png
    Guillaume Grossetie
    @Mogztter
    Probably a question for our Gradle expert (wink wink Schalk). As mentioned earlier, I'm working on a Google Slides converter and I need/want to make it available as a Gradle plugin. My plan was to extend the AbstractAsciidoctorTask (in an isolated project for now) to benefit from all the features from the Gradle plugin using this dependency: https://plugins.gradle.org/m2/org/asciidoctor/asciidoctor-gradle-jvm/3.2.0/
    Does it sound like a good idea? or I'm running into trouble?
    Schalk W. Cronjé
    @ysb33r
    @Mogztter (1) Are you going from Google Slides to asciidoc? (2) Are you going to use asciidoctor.js or asciidoctorj for the conversion ?
    Guillaume Grossetie
    @Mogztter
    No, the other way around, from AsciiDoc to Google Slides and I'm using AsciidoctorJ
    so it makes sense to reuse the asciidoctor { } context, even though I'm working on the AST so AsciiDoc --- (load) ---> AST --- (generates API requests to Google Slides) ---> Google Slides
    Schalk W. Cronjé
    @ysb33r
    OK in that case it is better to write a converter first (like the leanpub converter), but using whatever language you prefer. Once you have the converter working you can simply add a plugin to deal with it. If your converter is in RUby or a JVM language then it is relatively easy to add. Even if you can do the converter in JavaScript and put it on NPM it should be easy to build a GRdle plugin for.
    Guillaume Grossetie
    @Mogztter
    OK :+1:
    Thanks!
    Guillaume Grossetie
    @Mogztter
    OK in that case it is better to write a converter first (like the leanpub converter)
    I wonder if it will work because I don't produce any output
    I generate/execute a list of HTTP requests
    but anyway I will try because it will be easier to consume if it's a proper converter
    Schalk W. Cronjé
    @ysb33r
    @Mogztter The API is much better since when I wrote Leanpub, but if you find you really need to produce an output file, then dump somthing containing the reference to the Google Doc.
    Guillaume Grossetie
    @Mogztter
    I will take a look at the Leanpub converter
    Schalk W. Cronjé
    @ysb33r
    There are things that I need to redo as it was easrly days in converter writing, but you might gets some ideas fromhttps://github.com/asciidoctor/asciidoctor-leanpub-converter/blob/master/converters/src/main/groovy/org/asciidoctor/converter/LeanpubConverter.groovy. In this case I had to deal with generating multiple documents in order to fit how Leanpub works.
    Guillaume Grossetie
    @Mogztter
    What is the easiest way to publish a jar to a repository? bintray? I see that you are publishing on bintray + artifactory for leanpub?
    Schalk W. Cronjé
    @ysb33r
    Publish to Bintray, then sync toJCenter. Later it can be moved to asciidoctor group ongithub & bintray if you so wish
    Guillaume Grossetie
    @Mogztter
    Ok!
    I'm making some progress but I need to pass options to the converter
    for now I will just pass the option as a system environment variable or a document attribute
    Schalk W. Cronjé
    @ysb33r
    IIRC the options as passed through as a Map<String,Object>. @robertpanzer will know.
    Guillaume Grossetie
    @Mogztter
    correct but you cannot register an instance: asciidoctor/asciidoctorj#932
    so you cannot control which options are effectively pass to the converter
    not sure why but when I use a local file in buildscript.dependencies.classpath the converter is not registered
    but when I'm using a remote file it's working
    Guillaume Grossetie
    @Mogztter
    I can see my jar file in "AsciidoctorJ worker is using effective classpath of:"
    but since publishing to bintray is relatively straightforward it's fine
    Schalk W. Cronjé
    @ysb33r
    because classpath isolation in later version of Gradle is different. So it you want to use a JAR in a worker of JavaExec your should use rather use a Gradle configuration. Use buildscript dependencies is meant to be only used for plugin classpaths.
    Guillaume Grossetie
    @Mogztter
    I didn't understand the configuration block in: https://github.com/asciidoctor/asciidoctor-leanpub-converter#gradle
    29 replies
    I don't understand how "leanpub" is magically resolved so I'm using buildscript to load my jar and hope for the best :D
    Guillaume Grossetie
    @Mogztter
    Does someone know how to access the built-in Html5Converter? I want to delegate some work to it but I cannot find it in the API and my attempt to instantiate the class from asciidoctor.javaConverterRegistry().resolve("html5").newInstance() failed :(
    Abel Salgado Romero
    @abelsromero
    you can try some jruby reflection from the asciidoctor instance
    :shrug:
    Robert Panzer
    @robertpanzer
    That will not work. The base ruby converters don’t have java wrappers
    Abel Salgado Romero
    @abelsromero
    but you can still access the jruby object right? not a desirable thing, but as last resort?
    Robert Panzer
    @robertpanzer
    I would need to try this out, but in this case I don’t think it would work. Accessing node properties is one thing, but when passing nodes between ruby and java, they have to be carefully wrapped and unwrapped. The default mechanism of JRuby doesn’t work here