From e169bb93a047043c88057f8bdf9800f9e89cb7cf Mon Sep 17 00:00:00 2001 From: Alex Jerabek Date: Mon, 15 Apr 2019 16:59:03 -0700 Subject: [PATCH 1/2] Add extra newline character to example header --- apps/api-documenter/src/documenters/OfficeYamlDocumenter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api-documenter/src/documenters/OfficeYamlDocumenter.ts b/apps/api-documenter/src/documenters/OfficeYamlDocumenter.ts index 51b26e0db94..f8af6353fbe 100644 --- a/apps/api-documenter/src/documenters/OfficeYamlDocumenter.ts +++ b/apps/api-documenter/src/documenters/OfficeYamlDocumenter.ts @@ -133,7 +133,7 @@ export class OfficeYamlDocumenter extends YamlDocumenter { } private _generateExampleSnippetText(snippets: string[]): string { - const text: string[] = ['\n#### Examples\n']; + const text: string[] = ['\n\n#### Examples\n']; for (const snippet of snippets) { if (snippet.search(/await/) === -1) { text.push('```javascript'); From b55bf4c234ee78decec279485436891f893c1b73 Mon Sep 17 00:00:00 2001 From: Alex Jerabek Date: Mon, 15 Apr 2019 17:12:40 -0700 Subject: [PATCH 2/2] Rush change --- .../AlexJ-Example_2019-04-16-00-12.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 common/changes/@microsoft/api-documenter/AlexJ-Example_2019-04-16-00-12.json diff --git a/common/changes/@microsoft/api-documenter/AlexJ-Example_2019-04-16-00-12.json b/common/changes/@microsoft/api-documenter/AlexJ-Example_2019-04-16-00-12.json new file mode 100644 index 00000000000..c90f7426131 --- /dev/null +++ b/common/changes/@microsoft/api-documenter/AlexJ-Example_2019-04-16-00-12.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "packageName": "@microsoft/api-documenter", + "comment": "Adding an extra newline to the OfficeYamlDocumenter Examples header insertion", + "type": "patch" + } + ], + "packageName": "@microsoft/api-documenter", + "email": "AlexJerabek@users.noreply.github.com" +} \ No newline at end of file