Skip to content
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

fix: documentation of template.md #8849

Merged
merged 1 commit into from
Jun 7, 2023
Merged

fix: documentation of template.md #8849

merged 1 commit into from
Jun 7, 2023

Conversation

filzrev
Copy link
Contributor

@filzrev filzrev commented Jun 7, 2023

Documentation fix related to #8847

If templates is specified instead of template in docfx.json build config,
It is ignored by deserializer and fallback to default template.

[JsonProperty("template")]
public ListWithStringFallback Templates { get; set; } = new ListWithStringFallback();

if (config.Templates == null || config.Templates.Count == 0)
{
config.Templates = new ListWithStringFallback { DocAsCode.Constants.DefaultTemplateName };
}

Copy link
Contributor

@yufeih yufeih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @filzrev ! Nice catch.

@yufeih yufeih merged commit f5bcfb9 into dotnet:main Jun 7, 2023
@yufeih yufeih added the documentation Improvements or additions to documentation and the project website label Jun 7, 2023
@filzrev filzrev deleted the patch-1 branch June 17, 2023 07:40
p-kostov pushed a commit to ErpNetDocs/docfx that referenced this pull request Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation and the project website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants