File tree Expand file tree Collapse file tree 5 files changed +37
-5
lines changed
share/mrdocs/addons/generator/asciidoc/partials/symbols Expand file tree Collapse file tree 5 files changed +37
-5
lines changed Original file line number Diff line number Diff line change @@ -848,6 +848,7 @@ struct Overview
848
848
std::vector<Param const *> params;
849
849
std::vector<TParam const *> tparams;
850
850
std::vector<Throws const *> exceptions;
851
+ std::vector<See const *> sees;
851
852
};
852
853
853
854
MRDOCS_DECL dom::String toString (Style style) noexcept ;
Original file line number Diff line number Diff line change 25
25
26
26
{{/if}}
27
27
28
- {{! TODO: == See Also }}
28
+ {{#if symbol.doc.see}}
29
+ == See Also
30
+
31
+ {{#each symbol.doc.see}}
32
+ {{.}}
33
+
34
+ {{/each}}
35
+
36
+ {{/if}}
Original file line number Diff line number Diff line change @@ -378,6 +378,18 @@ domCreate(
378
378
return dom::Object (std::move (entries));
379
379
}
380
380
381
+ static
382
+ dom::Value
383
+ domCreate (
384
+ const doc::See& I,
385
+ const AdocCorpus& corpus)
386
+ {
387
+ std::string s;
388
+ DocVisitor visitor (corpus, s);
389
+ visitor (static_cast <const doc::See&>(I));
390
+ return s;
391
+ }
392
+
381
393
// ------------------------------------------------
382
394
383
395
class DomJavadoc : public dom ::LazyObjectImpl
@@ -464,6 +476,7 @@ class DomJavadoc : public dom::LazyObjectImpl
464
476
maybeEmplaceArray (list, " params" , ov.params );
465
477
maybeEmplaceArray (list, " tparams" , ov.tparams );
466
478
maybeEmplaceArray (list, " exceptions" , ov.exceptions );
479
+ maybeEmplaceArray (list, " see" , ov.sees );
467
480
468
481
return dom::Object (std::move (list));
469
482
}
Original file line number Diff line number Diff line change @@ -132,8 +132,11 @@ loadOptions(
132
132
}
133
133
else
134
134
{
135
- // VFALCO TODO get process executable
136
- // and form a path relative to that.
135
+ opt.template_dir = files::makeDirsy (files::appendPath (
136
+ corpus.config ->addonsDir ,
137
+ " generator" ,
138
+ " asciidoc"
139
+ ));
137
140
}
138
141
139
142
if (! opt.template_dir .empty ())
@@ -145,8 +148,11 @@ loadOptions(
145
148
}
146
149
else
147
150
{
148
- // VFALCO TODO get process executable
149
- // and form a path relative to that.
151
+ opt.template_dir = files::makeDirsy (files::appendPath (
152
+ corpus.config ->addonsDir ,
153
+ " generator" ,
154
+ " asciidoc"
155
+ ));
150
156
}
151
157
152
158
return opt;
Original file line number Diff line number Diff line change @@ -274,6 +274,10 @@ makeOverview(
274
274
ov.exceptions .push_back (static_cast <
275
275
doc::Throws const *>(it->get ()));
276
276
break ;
277
+ case doc::Kind::see:
278
+ ov.sees .push_back (static_cast <
279
+ doc::See const *>(it->get ()));
280
+ break ;
277
281
default :
278
282
if (ov.brief == it->get ())
279
283
break ;
You can’t perform that action at this time.
0 commit comments