Skip to content

Commit 7ab15c6

Browse files
committed
feat(nx-docs): support for anyOf in schema.json files
1 parent 290a326 commit 7ab15c6

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

docs/core/executors/format.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ Run code style analyzers and apply fixes.
2020

2121
Run 3rd party analyzers and apply fixes.
2222

23-
### diagnostics ()
23+
### diagnostics
24+
25+
- (string) A space separated list of diagnostic ids to use as a filter when fixing code style or 3rd party analyzers.
26+
27+
- (array) A list of diagnostic ids to use as a filter when fixing code style or 3rd party analyzers.
2428

2529
### include (array)
2630

packages/nxdoc/src/generators/generate-docs/templates/detail/__generatorFileName__.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
## Options <% Object.entries(schema.properties).forEach(([property, config]) => {%>
1010

11-
### <%= property%> (<%=config.type%>)
11+
### <%= property%> <% if (!config.anyOf) { %>(<%=config.type%>)
1212

13-
<%= config.description %>
14-
<% })} %>
13+
<%= config.description %> <%} else { config.anyOf.forEach(x => {%>
14+
15+
- (<%= x.type %>): <%=x.description%>
16+
<% })}})} %>

0 commit comments

Comments
 (0)