diff --git a/packages/website/src/features/Docs/DocsCliPage.tsx b/packages/website/src/features/Docs/DocsCliPage.tsx index f4af69018..68591f029 100644 --- a/packages/website/src/features/Docs/DocsCliPage.tsx +++ b/packages/website/src/features/Docs/DocsCliPage.tsx @@ -142,6 +142,7 @@ const DocumentationSection: React.FC<{ description: string; argumentsData?: { key: string; value: string }[]; anvilOptionsData?: { key: string; value: string }[]; + forgeOptionsData?: { key: string; value: string }[]; optionsData?: { key: string; value: string }[]; }> = ({ id, @@ -149,6 +150,7 @@ const DocumentationSection: React.FC<{ description, argumentsData, anvilOptionsData, + forgeOptionsData, optionsData, }) => ( @@ -200,14 +202,48 @@ const DocumentationSection: React.FC<{ > Anvil {' '} - node to execute this command. The following options can also be - passed through to the Anvil process: + to execute this command. The following options can also be passed + through to the Anvil process: )} + {forgeOptionsData && ( + + +

+ + + +

+ + + Cannon uses{' '} + + Forge + {' '} + to execute this command. The following options can also be passed + through to the Forge process: + + + +
+
+ )}
); @@ -261,6 +297,15 @@ const renderCommandConfig = (commandConfig: any) => { (option.defaultValue ? ` (default: "${option.defaultValue}")` : ''), })) } + forgeOptionsData={ + commandConfig.forgeOptions && + commandConfig.forgeOptions.map((option: any) => ({ + key: option.flags, + value: + option.description + + (option.defaultValue ? ` (default: "${option.defaultValue}")` : ''), + })) + } optionsData={ commandConfig.options && commandConfig.options.map((option: any) => ({