-
Notifications
You must be signed in to change notification settings - Fork 9
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
Transformation turns link:npm[]
into <<npm,>>
#2
Comments
I am going to paste here what I answered you by e-mail: Even though it was some time ago, I remember that cross-references were a nightmare. As far as I remember, using In order to fix your bug, I can see that Asciidoc allows using
This comes from the official documentation https://asciidoctor.org/docs/asciidoc-syntax-quick-reference/#links |
In order to get aligned and find the correct solution, I have created a sample project to check whether to use In the zip file from above, inside DOC_JumpTheQueue_Training.asciidoc, you will find two cross references:
One of them is a cross reference to an external document added with
As you can see, it converts them to I remember that I had to add this prefix in order to make them work properly, as sometimes you could have duplicated section names because we are combining multiple documents. You can run In addition, I have also created a sample using only Please don't run |
@jdiazgon thanks for your explanation. So I am not saying that links do not need to be transformed. I am saying that before something like |
BTW: what is the magic difference between the variables |
Seems fair to me.
I remember there was a case in which I needed both, but only on previous versions. Most probably I forgot to remove it :O |
…me for deployment to comply with devonfw standards
I did the fixes and also clean-ups. I only require xref and could reduce the required logic. I tested this with:
This gets converted to (the asciidoc file where I tested it was named
What is IMHO expected and renders + works fine. |
I would go for a |
Fixed. |
In AsciiDoc it is allowed and quite common to omit the linktext if same as the link itself. So
link:npm[]
renders as a link namednpm
pointing to.npm
.I just used devon-docgen 2.0.0 again and figured out that it seems to be broken with this scenario:
It transforms
link:npm[]
into<<npm,>>
what creates a link without linktext that is therefore invisible.As I never used this angled-bracked syntax that does not seemed to come from my changes... No clue why this worked for devon4j documentation (or maybe nobdoy ever read the PDF in detail and it also has this bug).
The text was updated successfully, but these errors were encountered: