Skip to content
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
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ jobs:
- run: dotnet run -c Release --no-build -f net8.0 --project src/docfx -- docs/docfx.json

- run: dotnet run -c Release --no-build -f net8.0 --project src/docfx -- metadata samples/seed/docfx.json
- run: dotnet run -c Release --no-build -f net8.0 --project src/docfx -- metadata samples/seed/docfx.json --outputFormat markdown --output samples/seed/md
- run: dotnet run -c Release --no-build -f net8.0 --project src/docfx -- metadata samples/seed/docfx.json --outputFormat markdown --output samples/seed/md2 --namespaceLayout nested --memberLayout separatePages
- run: dotnet run -c Release --no-build -f net8.0 --project src/docfx -- build samples/seed/docfx.json --output docs/_site/seed
- run: dotnet run -c Release --no-build -f net8.0 --project src/docfx -- metadata samples/seed/docfx.json --outputFormat markdown --output docs/_site/seed/md

- uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-latest'
Expand Down
1 change: 1 addition & 0 deletions src/docfx/Models/MetadataCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ private static void MergeOptionsToConfig(MetadataCommandOptions options, Metadat
item.DisableGitFeatures |= options.DisableGitFeatures;
item.DisableDefaultFilter |= options.DisableDefaultFilter;
item.NamespaceLayout = options.NamespaceLayout ?? item.NamespaceLayout;
item.MemberLayout = options.MemberLayout ?? item.MemberLayout;
item.OutputFormat = options.OutputFormat ?? item.OutputFormat;

if (!string.IsNullOrEmpty(options.FilterConfigFile))
Expand Down
4 changes: 4 additions & 0 deletions src/docfx/Models/MetadataCommandOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ internal class MetadataCommandOptions : LogOptions
[Description("Determines the namespace layout in table of contents.")]
[CommandOption("--namespaceLayout")]
public NamespaceLayout? NamespaceLayout { get; set; }

[Description("Determines the member page layout.")]
[CommandOption("--memberLayout")]
public MemberLayout? MemberLayout { get; set; }
}