-
Notifications
You must be signed in to change notification settings - Fork 345
Switch APM Agent for NodeJS to Asciidoctor #724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Switches the core of the docs build process from the no-longer-maintained AsciiDoc to the actively-maintained Asciidoctor. The resulting HTML is mostly the same but there are a few differences: 1. Spacing changes that the browser ignores 2. AsciiDoc adds `<p></p>` inside any empty table cell. Asciidoctor does not. 3. The automatically generated alt text for one of the images is different in Asciidoctor. I believe the Asciidoctor alt text is marginally better but I don't think automatically generated alt text is a good thing in general. 4. There is a particular table cell that seems to be changed like so: - ^2.0.0 || ^3.1.0 + \^2.0.0 || ^3.1.0 I think we can probably change the table cell in the docs after merging Asciidoctor. 5. One of the deprecation warnings looks a little sad: - Span started automatically by - <a class="link" href="agent-api.html#apm-start-span" title="apm.startSpan([name][, type])"> - apm.startSpan() - </a> + Span started automatically by <<apm-start-span I'm going to investigate this one further before we merge this. I expect Asciidoctor has a non-greedy regex instead of a greedy one. We might just have to work around this. This seems to be a rare thing. But I'll check!
Here is the difference: https://gist.github.com/nik9000/b710efd273a0282bfb8c888696da3d87 |
I worked around 5 by doing this:
|
Edit: nope, this doesn't work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending elastic/apm-agent-nodejs#923
That doesn't render right for me in Asciidoctor. I think we might have hit something that is incompatible between the two. My fix works for Asciidoctor only and looks wrong in Asciidoc. Yours looks wrong in Asciidoctor.... |
Good call, I was testing with asciidoc still on accident 🤦♂️ . Updated my comments above, and fixed the Node PR to something that works with asciidoctor. |
Switches the core of the docs build process from the
no-longer-maintained AsciiDoc to the actively-maintained Asciidoctor.
The resulting HTML is mostly the same but there are a few differences:
<p></p>
inside any empty table cell. Asciidoctor doesnot.
different in Asciidoctor. I believe the Asciidoctor alt text is
marginally better but I don't think automatically generated alt text is
a good thing in general.
I think we can probably change the table cell in the docs after merging
Asciidoctor.
5. One of the deprecation warnings looks a little sad:
I'm going to investigate this one further before we merge this. I expect
Asciidoctor has a non-greedy regex instead of a greedy one. We might
just have to work around this. This seems to be a rare thing. But I'll
check!