Skip to content

Commit 99fab07

Browse files
authored
Add icon subcommand (tauri-apps#890)
* Add icon subcommand * Add icon to template * Fix build config link * Add icon link
1 parent 520fa05 commit 99fab07

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.scripts/generate-cli-doc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const templatePath = path.join(__dirname, '../docs/.templates/cli.md')
99
const targetPath = path.join(__dirname, '../docs/api/cli.md')
1010
const template = fs.readFileSync(templatePath, 'utf8')
1111

12-
const commands = ['info', 'init', 'plugin init', 'dev', 'build']
12+
const commands = ['info', 'init', 'plugin init', 'dev', 'build', 'icon']
1313

1414
let doc = template
1515

@@ -23,4 +23,4 @@ for (const cmd of commands) {
2323
doc = doc.replace(`{${cmd}}`, '```\n' + output.join('\n') + '\n```')
2424
}
2525

26-
fs.writeFileSync(targetPath, doc)
26+
fs.writeFileSync(targetPath, doc)

docs/.templates/cli.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,15 @@ This command will bundle your application, either in production mode or debug mo
5555

5656
If you have entered a command to the `build.beforeBuildCommand` property, this one will be executed before the `build` command.
5757

58-
<a href="../api/config#build">See more about the configuration.</a>
58+
[See more about the configuration](../api/config#buildconfig)
59+
60+
## `icon`
61+
62+
<Command name="icon" />
63+
64+
{icon}
65+
66+
[Tauri Icon Guide](../guides/features/icons)
5967

6068
## `version`
6169

0 commit comments

Comments
 (0)