-
Notifications
You must be signed in to change notification settings - Fork 19
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
DocLinkChecker Doesn't understand File Inclusion links #29
Comments
This should be fixed in a coming release. See https://github.com/Ellerbach/docfx-companion-tools/tree/doclinkchecker-upgrade |
@AMSDavis did you have a chance to test the new version published? It should fix your issue! Let us know so we can close this issue. |
Hello! Just got the same issue in version 1.15.0. I get warnings for line and region inclusions of csharp code snippets: [!code-csharp[](../DemoProject/MyFile.cs#starting)] private void MyMethod()
{
#region starting
// Some code
#endregion
}
Maybe this should be reported as separate issue, but I am also getting warnings for tabs: ## [Guide](#tab/text)
Thank you! |
@Pixelrella sorry about that. I haven't had time to test that scenario. I have added this to the backlog. |
@Pixelrella I've been investigating this problem and it's harder then it looks. The functionality you are describing is not standard markdown (supported by markdig), but it's special for DocFx. There use to be a special markdig extension for these DocFx specials, but that's not supported anymore. I'm trying to see if there is a way to 'easily' add this support, otherwise I might end up writing our own markdig extension to solve this. But this will probably take some time. So, just to let you know we're working on it :) |
@AMSDavis @Pixelrella Sometimes it's good to drop things for a while and then come back to it ... to find that it is really simple to solve. I have solved this issue in PR #58. The fix will be released soon. |
When running DocLinkChecker it appears that the checker doesn't understand or find the links if I am using a file inclusion with a Code Snippet.
These links are rendered just find by docfx however DocLinkChecker believes they are an error.
As an example, if I have the following structure:
and foo.cs has the following content like this:
I can include the entire file with:
But this will be detected as an error by DocLinkChecker:
The text was updated successfully, but these errors were encountered: