-
Notifications
You must be signed in to change notification settings - Fork 867
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
Add basic static rendering #3411
Conversation
[InlineData("image.png", true, false, ContentType.Resource, "image.png", "/image.png", "image.png")] | ||
[InlineData("a&#/b\\.* d.png", true, false, ContentType.Resource, "a&#/b\\.* d.png", "/a&#/b/.* d.png", "a&#/b/.* d.png")] | ||
[InlineData("a.md", false, false, ContentType.Page, "a/index.html", "/a/", "a/")] | ||
[InlineData("a.md", false, true, ContentType.Page, "a.html", "/a", "a")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"a.html", "/a", "a" [](start = 59, length = 19)
should this be "a.html", "/a.html", "a.html"?
src/docfx/config/OutputConfig.cs
Outdated
|
||
/// <summary> | ||
/// Gets whether to include `.html` in urls. | ||
/// The default value is to generate an `index.html` for each article. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value is to generate an
index.html
for each article. [](start = 12, length = 66)
Is this comment for Json?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clarified in comments
output = await Template.Render(model); | ||
} | ||
|
||
return (errors, output, dependencies.Build()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
output [](start = 28, length = 6)
this can be PageModel or string, but Build.cs
always uses context.WriteJson
to write it. Add a context.WriteString
when it's string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#3376 #2865