asciidoctor / asciidoctor-extensions-lab

A lab for testing and demonstrating Asciidoctor extensions. Please do not use this code in production. If you want to use one of these extensions in your application, create a new project, import the code, and distribute it as a RubyGem. You can then request to make it a top-level project under the Asciidoctor organization.
Other
104 stars 101 forks source link

Create index-markup-inline-macro.rb #87

Closed andrewcarver closed 2 years ago

andrewcarver commented 6 years ago

This is the registration-file for a new extension that supports doing all DocBook's indexing-markup in AsciiDoctor. ( indexmarkup-inline-macro.zip I've attached a zip-file containing the sample.adoc and the extension.rb, also the registration-file.)

andrewcarver commented 6 years ago

The sample.adoc gives an explanation (hoped not to be overlong) of the extension's functionality.

mojavelinux commented 6 years ago

Could you add all the files from the zip to the PR?

andrewcarver commented 6 years ago

I'm sorry, I guess I don't know how to do that? Lemme poke around and try to figure it out... unless you can just tell me which button to click when :D

  From: Dan Allen <notifications@github.com>

To: asciidoctor/asciidoctor-extensions-lab asciidoctor-extensions-lab@noreply.github.com Cc: andrewcarver andy.carver@yahoo.com; Author author@noreply.github.com Sent: Sunday, 15 April 2018, 0:02 Subject: Re: [asciidoctor/asciidoctor-extensions-lab] Create indexmarkup-inline-macro.rb (#87)

Could you add all the files from the zip to the PR?— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

andrewcarver commented 6 years ago

BTW, I did try, before uploading the zip, to upload just the separate files. Wouldn't accept the file-types...

  From: Dan Allen <notifications@github.com>

To: asciidoctor/asciidoctor-extensions-lab asciidoctor-extensions-lab@noreply.github.com Cc: andrewcarver andy.carver@yahoo.com; Author author@noreply.github.com Sent: Sunday, 15 April 2018, 0:02 Subject: Re: [asciidoctor/asciidoctor-extensions-lab] Create indexmarkup-inline-macro.rb (#87)

Could you add all the files from the zip to the PR?— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

andrewcarver commented 6 years ago

I guess I've got to go back to my branch and add them there. Sorry, it's been too long between Git adventures...

andrewcarver commented 6 years ago

Well, dang it, I managed to add the whole folder--but not in the "lib" folder!! Now I can't undo it-- this is Git, right?!? So, does that mean I need to start a new PR??

andrewcarver commented 6 years ago

I'll try that--new PR here we come.

andrewcarver commented 6 years ago

Wow.... got the folder in the right place that time, but somehow the registration file ended up NOT in the lib folder... I'm gonna give this one more shot, going with a new PR again!

mojavelinux commented 6 years ago

It's actually fine to keep appending the same branch / PR. We can always go back and clean it up later before merging. A PR is like a sandbox...so you can't really mess it up ;)

mojavelinux commented 6 years ago

Looks like you got it!

mojavelinux commented 6 years ago

Oh, yeah, it's not in the lib folder. Just use git mv to move the files. (It's like regular mv except git tracks it).

andrewcarver commented 6 years ago

Let's leave this and jump on train #88 ;)

andrewcarver commented 6 years ago

Appreciate your patience, Dan!

andrewcarver commented 6 years ago

On this original PR's branch (patch-1), I did just now get the extension's folder moved into the lib folder, where it was supposed to be. (I'm not much of a Gitter on the command line, but it occurred to me this was easy-peasy on GitHub Desktop too ;) So now there are two PRs for this extension (#87 and #88) that have the files and folders in the right place.. If you don't care which one we use, I'll just pick one and close it. Sorry for the tempest in a teapot.

andrewcarver commented 6 years ago

Credit where due: The inspiration for this extension was (not surprisingly) solely from http://discuss.asciidoctor.org/Specialized-Indexes-in-Asciidoc-to-Docbook-backend-td3203.html