Skip to content

Commit

Permalink
Fix links to structs
Browse files Browse the repository at this point in the history
  • Loading branch information
danakj committed Sep 1, 2023
1 parent b894408 commit 2dce668
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 20 deletions.
4 changes: 2 additions & 2 deletions subdoc/gen_tests/function-overloads/namespace.n.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<li class="section-item">
<div class="overload-set item-name">
<div class="overload">
<div class="function-signature"><a class="function-name" href="namespace.n-fn.multiple.0.html">multiple</a></div>
<div class="function-signature"><a class="function-name" href="n-fn.multiple.0.html">multiple</a></div>
</div>
</div>
<div class="description short">
Expand All @@ -40,7 +40,7 @@
<li class="section-item">
<div class="overload-set item-name">
<div class="overload">
<div class="function-signature"><a class="function-name" href="namespace.n-fn.multiple.1.html">multiple</a></div>
<div class="function-signature"><a class="function-name" href="n-fn.multiple.1.html">multiple</a></div>
</div>
</div>
<div class="description short">
Expand Down
2 changes: 1 addition & 1 deletion subdoc/gen_tests/nested-namespace/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</li>
<li class="nested section-item">
<div class="item-name">
<a class="namespace-name" href="namespace.outer_namespace-namespace.inner_namespace.html">inner_namespace</a>
<a class="namespace-name" href="outer_namespace-namespace.inner_namespace.html">inner_namespace</a>
</div>
<div class="description short">
<p>Inner namespace</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<ul class="section-items item-table">
<li class="section-item">
<div class="item-name">
<a class="namespace-name" href="namespace.outer_namespace-namespace.inner_namespace.html">inner_namespace</a>
<a class="namespace-name" href="outer_namespace-namespace.inner_namespace.html">inner_namespace</a>
</div>
<div class="description short">
<p>Inner namespace</p>
Expand All @@ -48,7 +48,7 @@
<li class="section-item">
<div class="overload-set item-name">
<div class="overload">
<div class="function-signature"><a class="function-name" href="namespace.outer_namespace-fn.outer.html">outer</a></div>
<div class="function-signature"><a class="function-name" href="outer_namespace-fn.outer.html">outer</a></div>
</div>
</div>
<div class="description short">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<span class="namespace-dots">::</span>
<a class="namespace-name" href="namespace.outer_namespace.html">outer_namespace</a>
<span class="namespace-dots">::</span>
<a class="namespace-name" href="namespace.outer_namespace-namespace.inner_namespace.html">inner_namespace</a>
<a class="namespace-name" href="outer_namespace-namespace.inner_namespace.html">inner_namespace</a>
<span class="namespace-dots">::</span>
<a class="function-name" href="#">inner</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<li class="section-item">
<div class="overload-set item-name">
<div class="overload">
<div class="function-signature"><a class="function-name" href="namespace.outer_namespace-namespace.inner_namespace-fn.inner.html">inner</a></div>
<div class="function-signature"><a class="function-name" href="outer_namespace-inner_namespace-fn.inner.html">inner</a></div>
</div>
</div>
<div class="description short">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
<div class="section-items">
<div class="section-item">
<div class="item-name member-signature">
<a class="type-name" title="struct other::S::Nested" href="namespace.other-S-Nested.html">Nested</a>
<a class="type-name" title="struct other::S::Nested" href="other-S-Nested.html">Nested</a>
<a class="field-name" name="field.nested" href="#field.nested">nested</a>
</div>
<div class="description long">
</div>
</div>
<div class="section-item">
<div class="item-name member-signature">
<a class="type-name" title="struct other::S" href="namespace.other-S.html">S</a>
<a class="type-name" title="struct other::S" href="other-S.html">S</a>
<a class="field-name" name="field.s" href="#field.s">s</a>
</div>
<div class="description long">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>
<div class="overload-set">
<div class="overload">
<div class="function-signature"><span class="function-auto">auto</span><a class="function-name" href="#">pass_s</a>(<a class="type-name" title="struct other::S" href="namespace.other-S.html">S</a>) -&gt; void</div>
<div class="function-signature"><span class="function-auto">auto</span><a class="function-name" href="#">pass_s</a>(<a class="type-name" title="struct other::S" href="other-S.html">S</a>) -&gt; void</div>
</div>
</div>
<div class="description long">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>
<div class="overload-set">
<div class="overload">
<div class="function-signature"><span class="function-auto">auto</span><a class="function-name" href="#">return_nested</a>() -&gt; <a class="type-name" title="struct other::S::Nested" href="namespace.other-S-Nested.html">Nested</a></div>
<div class="function-signature"><span class="function-auto">auto</span><a class="function-name" href="#">return_nested</a>() -&gt; <a class="type-name" title="struct other::S::Nested" href="other-S-Nested.html">Nested</a></div>
</div>
</div>
<div class="description long">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>
<div class="overload-set">
<div class="overload">
<div class="function-signature"><span class="function-auto">auto</span><a class="function-name" href="#">return_s</a>() -&gt; <a class="type-name" title="struct other::S" href="namespace.other-S.html">S</a></div>
<div class="function-signature"><span class="function-auto">auto</span><a class="function-name" href="#">return_s</a>() -&gt; <a class="type-name" title="struct other::S" href="other-S.html">S</a></div>
</div>
</div>
<div class="description long">
Expand Down
8 changes: 4 additions & 4 deletions subdoc/gen_tests/typenames-across-paths/namespace.n.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<li class="section-item">
<div class="item-name">
<div class="type-signature">
<a class="type-name" href="namespace.n-HoldS.html">HoldS</a>
<a class="type-name" href="n-HoldS.html">HoldS</a>
</div>
</div>
<div class="description short">
Expand All @@ -46,7 +46,7 @@
<li class="section-item">
<div class="overload-set item-name">
<div class="overload">
<div class="function-signature"><a class="function-name" href="namespace.n-fn.pass_s.html">pass_s</a></div>
<div class="function-signature"><a class="function-name" href="n-fn.pass_s.html">pass_s</a></div>
</div>
</div>
<div class="description short">
Expand All @@ -55,7 +55,7 @@
<li class="section-item">
<div class="overload-set item-name">
<div class="overload">
<div class="function-signature"><a class="function-name" href="namespace.n-fn.return_nested.html">return_nested</a></div>
<div class="function-signature"><a class="function-name" href="n-fn.return_nested.html">return_nested</a></div>
</div>
</div>
<div class="description short">
Expand All @@ -64,7 +64,7 @@
<li class="section-item">
<div class="overload-set item-name">
<div class="overload">
<div class="function-signature"><a class="function-name" href="namespace.n-fn.return_s.html">return_s</a></div>
<div class="function-signature"><a class="function-name" href="n-fn.return_s.html">return_s</a></div>
</div>
</div>
<div class="description short">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<li class="section-item">
<div class="item-name">
<div class="type-signature">
<a class="type-name" href="namespace.other-S.html">S</a>
<a class="type-name" href="other-S.html">S</a>
</div>
</div>
<div class="description short">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<span class="namespace-dots">::</span>
<a class="namespace-name" href="namespace.other.html">other</a>
<span class="namespace-dots">::</span>
<a class="type-name" href="namespace.other-S.html">S</a>
<a class="type-name" href="other-S.html">S</a>
<span class="namespace-dots">::</span>
<a class="type-name" href="#">Nested</a>
</div>
Expand Down
3 changes: 1 addition & 2 deletions subdoc/lib/gen/files.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ inline std::filesystem::path construct_html_file_path(
switch (n) {
case Namespace::Tag::Global: break;
case Namespace::Tag::Anonymous:
fname << "namespace.anonymous";
fname << "anonymous";
fname << "-";
break;
case Namespace::Tag::Named:
fname << "namespace.";
fname << n.as<Namespace::Tag::Named>();
fname << "-";
break;
Expand Down

0 comments on commit 2dce668

Please sign in to comment.