-
Notifications
You must be signed in to change notification settings - Fork 868
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
.NET "langword" doesn't work #7625
Comments
With DocFX 2.59.0, the behavior now seems to be that keywords in the If a langword is not supported, it should probably show up in the output as itself either as simply code or as an xref. Possibly, metadata generation should generate warnings for unsupported langwords. |
I know this is old but, in case others run into this problem, solution actually is documented here. Per documentation:
If you're using |
@ison I'm still unclear on whether the langwordMapping.yml file you linked to there (which I believe is the same one I mentioned in my original post) is actually used by DocFX by default when building my projects. Based on its location under |
And, if the behavior I described still exists, where all unrecognized keywords are converted into plain text with a |
Hmm. So you're saying you cannot get DocFX to resolve any langwords? That is indeed odd and is not the behavior I'm observing. Did you set |
Just tested it, and it works with the embedded/default langwordMapping.yml, except that the absence of a language filter (C#, VB.NET, F# etc) limits its value. You can verify and close the issue. |
I mean... if for instance the behavior of
To be clear, are you only saying that it correctly handles known C# keywords like I'm still going to test it myself too - just wondering which kind of test you did. |
I was referencing your post, and the post you referenced. By my tests, all known As on @WalkerCodeRanger post of missing/undefined |
A previous issue #185 reported that XML comment tags in the form
<see langword="null"/>
were being completely stripped. What I'm seeing now (with DocFX 2.57.2) is a bit different: they are transformed into plain text in the formlangword_csharp_null
,langword_csharp_int
, etc. A Google search for such terms will show various projects that presumably generated their docs with DocFX (example).I noticed this file in DocFX's own documentation build, which makes me think that this is a known behavior and that projects are expected to provide their own mappings like this, but I can't think why that would be, and the behavior doesn't seem to be documented.
The text was updated successfully, but these errors were encountered: