Skip to content

Commit

Permalink
feat: support description metadata (dotnet#9585)
Browse files Browse the repository at this point in the history
* feat: support description metadata

* test(snapshot): update snapshots f767f49 for ubuntu-latest

---------

Co-authored-by: yufeih <yufeih@users.noreply.github.com>
  • Loading branch information
2 people authored and p-kostov committed Jun 28, 2024
1 parent f1caa0f commit fd8f49a
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/Docfx.Build/SystemMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,6 @@ namespace Docfx.Build.Engine;

class SystemMetadata
{
[JsonProperty("_title")]
[JsonPropertyName("_title")]
public string Title { get; set; }

[JsonProperty("_tocTitle")]
[JsonPropertyName("_tocTitle")]
public string TocTitle { get; set; }

[JsonProperty("_name")]
[JsonPropertyName("_name")]
public string Name { get; set; }

[JsonProperty("_description")]
[JsonPropertyName("_description")]
public string Description { get; set; }

/// <summary>
/// TOC PATH from ~ ROOT
Expand Down
1 change: 1 addition & 0 deletions templates/default/partials/head.tmpl.partial
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="{{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}}">
{{#_description}}<meta name="description" content="{{_description}}">{{/_description}}
{{#description}}<meta name="description" content="{{description}}">{{/description}}
<link rel="shortcut icon" href="{{_rel}}{{{_appFaviconPath}}}{{^_appFaviconPath}}favicon.ico{{/_appFaviconPath}}">
<link rel="stylesheet" href="{{_rel}}styles/docfx.vendor.min.css">
<link rel="stylesheet" href="{{_rel}}styles/docfx.css">
Expand Down
1 change: 1 addition & 0 deletions templates/modern/layout/_master.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="{{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}}">
{{#_description}}<meta name="description" content="{{_description}}">{{/_description}}
{{#description}}<meta name="description" content="{{description}}">{{/description}}
<link rel="icon" href="{{_rel}}{{{_appFaviconPath}}}{{^_appFaviconPath}}favicon.ico{{/_appFaviconPath}}">
<link rel="stylesheet" href="{{_rel}}public/docfx.min.css">
<link rel="stylesheet" href="{{_rel}}public/main.css">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="title" content="Class Class1
| docfx seed website ">


<link rel="icon" href="../favicon.ico">
<style class="anchorjs"></style><link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="title" content="Class Cat<T, K>
| docfx seed website ">


<link rel="icon" href="../favicon.ico">
<style class="anchorjs"></style><link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="title" content="Namespace CatLibrary
| docfx seed website ">


<link rel="icon" href="../favicon.ico">
<style class="anchorjs"></style><link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="title" content="Namespace CatLibrary
| docfx seed website ">


<link rel="icon" href="../favicon.ico">
<style class="anchorjs"></style><link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="C# Coding Standards | docfx seed website ">


<link rel="icon" href="../favicon.ico">
<style class="anchorjs"></style><link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Markdown | docfx seed website ">


<link rel="icon" href="../favicon.ico">
<style class="anchorjs"></style><link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="docfx-seed | docfx seed website ">


<link rel="icon" href="favicon.ico">
<style class="anchorjs"></style><link rel="stylesheet" href="public/docfx.min.css">
<link rel="stylesheet" href="public/main.css">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Pet Store APIs | docfx seed website ">


<link rel="icon" href="../favicon.ico">
<style class="anchorjs"></style><link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
Expand Down

0 comments on commit fd8f49a

Please sign in to comment.