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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/docs/template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Template defines the appearance of the website.

Docfx ships several built-in templates. We recommend using the modern template that matches the look and feel of this site. It supports dark mode, more features, rich customization options and.

Use the modern template by setting the `templates` property to `["default", "modern"]`:
Use the modern template by setting the `template` property to `["default", "modern"]`:

```json
{
"build": {
"templates": [
"template": [
"default",
"modern"
]
Expand Down Expand Up @@ -77,14 +77,14 @@ Name | Type | Description

## Custom Template

To build your own template, create a new folder and add it to `templates` config in `docfx.json`:
To build your own template, create a new folder and add it to `template` config in `docfx.json`:

# [Modern Template](#tab/modern)

```json
{
"build": {
"templates": [
"template": [
"default",
"modern",
"my-template" // <-- Path to custom template
Expand Down