SHFB icon indicating copy to clipboard operation
SHFB copied to clipboard

External link

Open Nicolas4tin opened this issue 10 years ago • 4 comments

Hello everyone,

I am trying to add an external link. I read this. https://ewsoftware.github.io/MAMLGuide/html/d0c9ce6d-115b-4c70-891c-69b4af944dea.htm

There must be something missing. My simple external link is:

code

And the result is: remarks

What's wrong?

Best regards,

Nicolas

Nicolas4tin avatar Feb 11 '16 18:02 Nicolas4tin

MAML elements such as externalLink are used in conceptual content. They don't work in XML comments. See the XML Comments Guide for a list of supported XML comments elements.

In this particular case, for an external link, just use a normal HTML anchor element:

/// See <a href="http://www.google.com">Google</a>

EWSoftware avatar Feb 11 '16 20:02 EWSoftware

Hello Eric,

Sorry for the delay. Thank you very much for your answer.

Token files are conceptual content. So if I use the default token "SHFB" :

shfb token

With the following code :

code

There is no link displayed in the result. Can you tell me why?

remarks

Best regards,

Nicolas4tin avatar Feb 16 '16 19:02 Nicolas4tin

I guess it should be more clearly stated in the build component's help topic. It will let you use the MAML token element but the content is restricted to valid XML comments elements. None of the MAML templates are processed as part of the API build. This build component was merely a means of accomplishing a similar task in XML comments.

If you want a link in the token, use the normal anchor tag as shown above.

EWSoftware avatar Feb 16 '16 20:02 EWSoftware

OK I understand.

Thank you for your answer once again. I deeply appreciate your support. Sandcastle is really a wonderfull tool.

The issue is now truly "Closed".

Nicolas4tin avatar Feb 16 '16 20:02 Nicolas4tin