diff --git a/src/ditamap/base-ditamap.ts b/src/ditamap/base-ditamap.ts index 1f7af098..6b565bde 100644 --- a/src/ditamap/base-ditamap.ts +++ b/src/ditamap/base-ditamap.ts @@ -11,7 +11,7 @@ export class BaseDitamap extends Ditamap { constructor(topics: string[]) { // Set the data of topic and filenames super('cli_reference.ditamap', { - namespaceDitamapFiles: topics.map(topic => `${topic}/cli_reference_${topic}.ditamap`) + namespaceDitamapFiles: topics.sort().map(topic => `${topic}/cli_reference_${topic}.ditamap`) }); } diff --git a/src/ditamap/subtopic-ditamap.ts b/src/ditamap/subtopic-ditamap.ts index 3e6f680b..b91e4cf2 100644 --- a/src/ditamap/subtopic-ditamap.ts +++ b/src/ditamap/subtopic-ditamap.ts @@ -11,6 +11,9 @@ import { Ditamap } from './ditamap'; export class SubTopicDitamap extends Ditamap { constructor(topic: string, subtopic: string, commandFileNames: string[]) { const filename = `cli_reference_${topic}_${subtopic}.ditamap`; + + commandFileNames.sort(); + // Set the data of topic and filenames super(filename, { topic, diff --git a/templates/command.hbs b/templates/command.hbs index 3545c0dd..e1202c50 100644 --- a/templates/command.hbs +++ b/templates/command.hbs @@ -98,5 +98,21 @@ IF YOU WANT TO CHANGE THIS CONTENT, CONTACT juliet.shackell@salesforce.com FOR D {{/each}} {{/if}} + {{#if aliases}} +
+ <ph>Aliases for <codeph otherprops="nolang">{{id}}</codeph></ph> + {{#each aliases}} + {{this}} + {{/each}} +
+ {{/if}} + {{#if examples}} +
+ <ph>Examples for <codeph otherprops="nolang">{{id}}</codeph></ph> + {{#each examples}} + {{#isCodeBlock this}}{{this}}{{else}}

{{this}}

{{/isCodeBlock}} + {{/each}} +
+ {{/if}}