Skip to content

Commit d8b61e5

Browse files
committed
fix: populate topic command xml
1 parent 43abec1 commit d8b61e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ditamap/command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class Command extends Ditamap {
3737
const flags = ensureObject(command.flags);
3838
const parameters = this.getParametersForTemplate(flags as Dictionary<CommandHelpInfo>);
3939

40-
const summmary = punctuate(asString(command.summary));
40+
const summary = punctuate(asString(command.summary));
4141

4242
const description = asString(command.description);
4343

@@ -83,7 +83,7 @@ export class Command extends Ditamap {
8383
topicSeparator: commandMeta.topicSeparator,
8484
commandWithUnderscores,
8585
examples,
86-
summmary,
86+
summary,
8787
description,
8888
help,
8989
parameters,

src/docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class Docs {
118118
// The topic ditamap with all of the subtopic links.
119119
events.emit('subtopics', topic, subTopicNames);
120120

121-
if (commandIds.includes(topic)) {
121+
if (!commandIds.includes(topic)) {
122122
await new CLIReferenceTopic(topic, description).write();
123123
}
124124
await new TopicCommands(topic, topicMeta).write();

0 commit comments

Comments
 (0)