Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is there a method which is more neutral (support any output or source format). I canimagine there are more edit environents than GitHub?
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.
@ecki, Thanks for pointing out, it shouldn't indeed be limited to just GitHub.
I am not aware of any generic way, will explore and update the PR.
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.
It's important to note that the xref macro only links to another file if the target ends in a hash suffix (e.g.,
#
or#anchor-name
). The#
is how Asciidoctor distinguishes between an internal xref and an external xref.The
env-*
attributes are set by the integrations. For example, the code that runs on GitHub (and GitLab) sets theenv-github
attribute. You should expect that each integration has a similar attribute. For example, Awestruct setsenv-site
. We've tried to introduce generic attributes where possible, but in some cases like GitHub, the environment is so unique that it really only applies to that specific integration.Btw, the browser previews also need the
outfilesuffix
to be.adoc
. Both the Chrome and Firefox plugin set this value by default now. You can also useenv-browser
in those environments.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.
Eventually, we'll want to document all these environment attributes in the user manual. At the time of this writing, they are still evolving.
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.
I'd like to see outfilesuffix set to
.adoc
by default on GitHub. There's an issue tracking that change. See github/markup#519