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

[api-documenter] Add do not edit comment #1215

Merged
merged 5 commits into from
Apr 9, 2019
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions apps/api-documenter/src/documenters/MarkdownDocumenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ export class MarkdownDocumenter {
const filename: string = path.join(this._outputFolder, this._getFilenameForApiItem(apiItem));
const stringBuilder: StringBuilder = new StringBuilder();

stringBuilder.append('<!-- Do not edit this file. It is automatically generated by API Documenter. -->\n\n');

this._markdownEmitter.emit(stringBuilder, output, {
contextApiItem: apiItem,
onGetFilenameForApiItem: (apiItemForFilename: ApiItem) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [constVariable](./api-documenter-test.constvariable.md)

## constVariable variable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [DocBaseClass](./api-documenter-test.docbaseclass.md)

## DocBaseClass class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [DocClass1](./api-documenter-test.docclass1.md) &gt; [deprecatedExample](./api-documenter-test.docclass1.deprecatedexample.md)

## DocClass1.deprecatedExample() method
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [DocClass1](./api-documenter-test.docclass1.md) &gt; [exampleFunction](./api-documenter-test.docclass1.examplefunction.md)

## DocClass1.exampleFunction() method
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [DocClass1](./api-documenter-test.docclass1.md) &gt; [exampleFunction](./api-documenter-test.docclass1.examplefunction_1.md)

## DocClass1.exampleFunction() method
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [DocClass1](./api-documenter-test.docclass1.md) &gt; [interestingEdgeCases](./api-documenter-test.docclass1.interestingedgecases.md)

## DocClass1.interestingEdgeCases() method
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [DocClass1](./api-documenter-test.docclass1.md) &gt; [malformedEvent](./api-documenter-test.docclass1.malformedevent.md)

## DocClass1.malformedEvent property
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [DocClass1](./api-documenter-test.docclass1.md)

## DocClass1 class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [DocClass1](./api-documenter-test.docclass1.md) &gt; [modifiedEvent](./api-documenter-test.docclass1.modifiedevent.md)

## DocClass1.modifiedEvent property
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [DocClass1](./api-documenter-test.docclass1.md) &gt; [regularProperty](./api-documenter-test.docclass1.regularproperty.md)

## DocClass1.regularProperty property
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [DocClass1](./api-documenter-test.docclass1.md) &gt; [sumWithExample](./api-documenter-test.docclass1.sumwithexample.md)

## DocClass1.sumWithExample() method
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [DocClass1](./api-documenter-test.docclass1.md) &gt; [tableExample](./api-documenter-test.docclass1.tableexample.md)

## DocClass1.tableExample() method
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [DocEnum](./api-documenter-test.docenum.md)

## DocEnum enum
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [ExampleTypeAlias](./api-documenter-test.exampletypealias.md)

## ExampleTypeAlias type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [Generic](./api-documenter-test.generic.md)

## Generic class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [globalFunction](./api-documenter-test.globalfunction.md)

## globalFunction() function
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [IDocInterface1](./api-documenter-test.idocinterface1.md)

## IDocInterface1 interface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [IDocInterface1](./api-documenter-test.idocinterface1.md) &gt; [regularProperty](./api-documenter-test.idocinterface1.regularproperty.md)

## IDocInterface1.regularProperty property
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [IDocInterface2](./api-documenter-test.idocinterface2.md) &gt; [deprecatedExample](./api-documenter-test.idocinterface2.deprecatedexample.md)

## IDocInterface2.deprecatedExample() method
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [IDocInterface2](./api-documenter-test.idocinterface2.md)

## IDocInterface2 interface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [IDocInterface3](./api-documenter-test.idocinterface3.md)

## IDocInterface3 interface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [IDocInterface4](./api-documenter-test.idocinterface4.md) &gt; [generic](./api-documenter-test.idocinterface4.generic.md)

## IDocInterface4.generic property
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [IDocInterface4](./api-documenter-test.idocinterface4.md)

## IDocInterface4 interface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [IDocInterface4](./api-documenter-test.idocinterface4.md) &gt; [numberOrFunction](./api-documenter-test.idocinterface4.numberorfunction.md)

## IDocInterface4.numberOrFunction property
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [IDocInterface4](./api-documenter-test.idocinterface4.md) &gt; [stringOrNumber](./api-documenter-test.idocinterface4.stringornumber.md)

## IDocInterface4.stringOrNumber property
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md)

## api-documenter-test package
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [OuterNamespace](./api-documenter-test.outernamespace.md) &gt; [InnerNamespace](./api-documenter-test.outernamespace.innernamespace.md)

## OuterNamespace.InnerNamespace namespace
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [OuterNamespace](./api-documenter-test.outernamespace.md) &gt; [InnerNamespace](./api-documenter-test.outernamespace.innernamespace.md) &gt; [nestedFunction](./api-documenter-test.outernamespace.innernamespace.nestedfunction.md)

## OuterNamespace.InnerNamespace.nestedFunction() function
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [OuterNamespace](./api-documenter-test.outernamespace.md)

## OuterNamespace namespace
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [OuterNamespace](./api-documenter-test.outernamespace.md) &gt; [nestedVariable](./api-documenter-test.outernamespace.nestedvariable.md)

## OuterNamespace.nestedVariable variable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [SystemEvent](./api-documenter-test.systemevent.md) &gt; [addHandler](./api-documenter-test.systemevent.addhandler.md)

## SystemEvent.addHandler() method
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index) &gt; [api-documenter-test](./api-documenter-test.md) &gt; [SystemEvent](./api-documenter-test.systemevent.md)

## SystemEvent class
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@microsoft/api-documenter",
"comment": "Add 'do not edit' header to generated documentation files",
"type": "patch"
}
],
"packageName": "@microsoft/api-documenter",
"email": "[email protected]"
}