There is a missing trailing ':' in line 5.
apiRules:
- exclude:
uidRegex: '^PhoenixControls\.Data\.AirStationDataSet'
- exclude:
uidRegex: '^PhoenixControls\.Data\.ProductionOrderData'
- exclude:
uidRegex: '^PhoenixControls\.Data\.ReferenceDataSet'
Give VS Code with the YAML exension a try to edit YAML. It will highlight such mistakes:

.NEXT
dotnet.github.io › docfx › tutorial › howto_filter_out_unwanted_apis_attributes.html
How-to: Filter Out Unwanted APIs or Attributes | DocFX website
To filter out APIs, you could specify apiRules with a list of exclude or include rules.
Hellosnow
hellosnow.github.io › docfx › tutorial › howto_filter_out_unwanted_apis.html
How-to: Filter Out Unwanted APIs | DocFX website
docfx.exe metadata -filter <path relative to baseDir or absolutepath> docfx.json metadata section filter property.
.NEXT
dotnet.github.io › docfx › docs › dotnet-api-docs.html
.NET API Docs | docfx - Microsoft .NET
To bulk filter APIs with custom filter rules, add a custom YAML file and set the filter property in docfx.json to point to the custom YAML filter:
Stack Overflow
stackoverflow.com › questions › 75545514 › docfx-filter-specific-classes
DocFX filter specific Classes - Stack Overflow
{ "metadata": [ { "src": [ { "files": ["**.dll"], "src": "../X3_Models/bin/Release/net7.0" } ], "dest": "api", "includePrivateMembers": false, "disableGitFeatures": false, "disableDefaultFilter": false, "namespaceLayout": "flattened", "filter": "filterConfig.yml" } ],
Stack Overflow
stackoverflow.com › questions › 59934701 › docfx-unable-to-filter-out-public-method-from-api-documentation
c# - DocFX - Unable to filter out public Method from API Documentation - Stack Overflow
January 28, 2020 - I have the following method in my class library that I want to hide from API documentation: namespace com.contoso.myns { public class myclass { public static string CreateSomething...
Stack Overflow
stackoverflow.com › tags › docfx › hot
Hottest 'docfx' Answers - Stack Overflow
To change the location of the docfx output, edit the docfx.json file and specify the dest value. By default it is "dest": "_site".
Docascode
docascode.github.io › template › tutorial › howto_filter_out_unwanted_apis_attributes
How-to: Filter Out Unwanted APIs or Attributes
{ "metadata": [ { "src": [ { "files": [ "src/**.csproj" ], "exclude": [ "**/bin/**", "**/obj/**" ] } ], "dest": "obj/api", "filter": "filterConfig.yml" } ] } DocFX has a default filter configuration. If the user doesn't specify the filter configuration file path, default filter configuration ...
Author: dotnet
GitHub
github.com › dotnet › docfx › issues › 8427
[Bug] Custom namespace filter rules not working anymore · Issue #8427 · dotnet/docfx
February 20, 2023 - And create in the same folder a filterConfig.yml file: apiRules: - include: uidRegex: ^ConsoleApp1\.Domain\.Models - exclude: uidRegex: ^ConsoleApp1\.Domain · Run the serve command. Generated documentation will be empty · Expected behavior Generated documentation shall contain documentation for the ConsoleApp1.Domain.Models namespace (Class1). To have a test, perform the same steps as above but with the 2.61.0 version installed. ... Docfx version: [e.g.
Author: dotnet
Top answer 1 of 2
6
You can customize the output by overwriting the template.
In my case, I erased the assembly section from the class page by following.
- export default template by
docfx template export default. - copy
_exported_templates/default/partials/class.header.tmpl.partialintoDOCFX_PROJECT_ROOT/templates/custom/partial. - edit and remove the assembly section from the copied file.
- in your
buildsection ofdocfx.json, edit thetemplateto the following
"template": [
"default",
"templates/custom"
],
You can now build normally by something like docfx docfx.json.
I believe the other sections you mentioned can be erased by editing and copying the appropriate files in the template directory.
2 of 2
2
How to hide inherited members:
Add
.inheritedMembers { display: none; }
to "_site\styles\main.css"
GitHub
github.com › dotnet › docfx › issues › 7064
filterConfig not filtering methods with attribute · Issue #7064 · dotnet/docfx
February 16, 2021 - DocFX Version Used: 2.56.6 · Steps to Reproduce: Filter config file: apiRules: - exclude: hasAttribute: uid: System.ComponentModel.EditorBrowsableAttribute ctorArguments: - System.ComponentModel.EditorBrowsableState.Advanced · Attribute over code: [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)] Metadata section of docfx.json ·
Author: dotnet