We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ac75aa + 06bb30f commit 66d20a9Copy full SHA for 66d20a9
bin/moxygen.js
@@ -15,6 +15,7 @@ program.version(pjson.version)
15
.option('-p, --pages', 'output doxygen pages into separate files', false)
16
.option('-n, --noindex', 'disable generation of the index (no effect with `groups` option', false)
17
.option('-a, --anchors', 'add anchors to internal links', false)
18
+ .option('-h, --html-anchors', 'add html anchors to internal links', false)
19
.option('-l, --language <lang>', 'programming language', String, 'cpp')
20
.option('-t, --templates <dir>', 'custom templates directory', String, 'templates')
21
.option('-q, --quiet', 'quiet mode', false)
@@ -33,6 +34,7 @@ if (program.args.length) {
33
34
classes: program.classes,
35
noindex: program.noindex,
36
anchors: program.anchors,
37
+ htmlAnchors: program.htmlAnchors,
38
language: program.language,
39
templates: program.templates
40
}));
src/templates.js
@@ -90,6 +90,9 @@ module.exports = {
90
if (options.anchors) {
91
return '{#' + name + '}';
92
}
93
+ else if (options.htmlAnchors) {
94
+ return '<a id="' + name + '"></a>';
95
+ }
96
else {
97
return '';
98
0 commit comments