Skip to content

Commit

Permalink
chore: Fix filterconfig.yml and enumSortOrder documentation (#9839)
Browse files Browse the repository at this point in the history
chore: fix filterconfig documents
  • Loading branch information
filzrev authored Apr 7, 2024
1 parent 2c20fa6 commit 6ac8410
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions docs/docs/dotnet-api-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,12 @@ API filter are hierarchical, if a namespace is excluded, all types/members defin
```yaml
apiRules:
- exclude:
hasAttribute:
uid: System.AttributeUsageAttribute
ctorArguments:
- System.AttributeTargets.Class
ctorNamedArguments:
Inherited: "true"
hasAttribute:
uid: System.AttributeUsageAttribute
ctorArguments:
- System.AttributeTargets.Class
ctorNamedArguments:
Inherited: "True"
```

Where the `ctorArguments` property specifies a list of match conditions based on constructor parameters and the `ctorNamedArguments` property specifies match conditions using named constructor arguments.
Expand Down
6 changes: 3 additions & 3 deletions src/Docfx.Dotnet/MetadataJsonConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ internal class MetadataJsonItemConfig
public MemberLayout MemberLayout { get; set; }

/// <summary>
/// Defines how member pages are organized:
/// - `samePage` (default): Places members in the same page as their containing type.
/// - `separatePages`: Places members in separate pages.
/// Specifies how enum members are sorted:
/// - `alphabetic`(default): Sort enum members in alphabetic order.
/// - `declaringOrder`: Sort enum members in the order as they are declared in the source code.
/// </summary>
[JsonProperty("enumSortOrder")]
[JsonPropertyName("enumSortOrder")]
Expand Down

0 comments on commit 6ac8410

Please sign in to comment.