-
Notifications
You must be signed in to change notification settings - Fork 866
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
Broken examples after update #9495
Comments
Did you try on Ubuntu? You can see the diff by downloading and extracting the documentation artifact from /~https://github.com/json-api-dotnet/JsonApiDotNetCore/actions/runs/7055097802 and /~https://github.com/json-api-dotnet/JsonApiDotNetCore/actions/runs/7208009175. |
Well, it does not render entirely correct in v2.74.0 on Windows either: /// <summary>
/// Whether to use relative links for all resources. <c>false</c> by default.
/// </summary>
/// <example>
/// <code><![CDATA[
/// options.UseRelativeLinks = true;
/// ]]></code>
/// <code><![CDATA[
/// {
/// "type": "articles",
/// "id": "4309",
/// "relationships": {
/// "author": {
/// "links": {
/// "self": "/api/shopping/articles/4309/relationships/author",
/// "related": "/api/shopping/articles/4309/author"
/// }
/// }
/// }
/// }
/// ]]></code>
/// </example>
bool UseRelativeLinks { get; } |
This is broken even worse in v2.75.1. What it should look like (from https://www.jsonapi.net/api/JsonApiDotNetCore.Configuration.JsonApiOptions.html, which was built using v2.74.0), except for the incorrect curly indent: What it does look like in v2.75.1 instead: The first red arrow is new: it copies the class/interface-level comment and puts that as documentation for The source code comments can be found at: /~https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Configuration/IJsonApiOptions.cs#L57-L79 The docfx output for v2.75.1 is available as a downloadable build artifact at /~https://github.com/json-api-dotnet/JsonApiDotNetCore/actions/runs/7633561767?pr=1440. Extract documentation.zip and edit file JsonApiDotNetCore.Configuration.JsonApiOptions.html, which contains the following HTML snippet:
Specifically, the part:
explains why it's rendered incorrectly. The text inside @yufeih Can you take another look? Please let me know what else you need to reproduce this. EnvironmentGoogle Chrome version: 120.0.6099.225 (Official Build) (64-bit)
|
HTML escape problems seem to occur when using both Minimum reproducible source code
|
I've created a minimal repro at #9736. |
Closing, this was fixed in v2.76.0. |
* test: code in C# documentation comment dotnet#9495 * ignoreLineEndingDifferences
Describe the bug
After update from 2.74.0 to 2.74.1, examples are broken. See json-api-dotnet/JsonApiDotNetCore#1415 (comment).
To Reproduce
cd docs
./build-dev.ps1
Expected behavior
No broken HTML.
The text was updated successfully, but these errors were encountered: