Do not show link to source.

This require slightly more work and has little benefits at this stage given that the sources are literally inlined in the docs.
This commit is contained in:
KtorZ
2022-12-16 23:56:37 +01:00
parent e7f729c61b
commit 600c7747da

View File

@@ -50,9 +50,11 @@
</a>
</h2>
{% if !type_info.source_url.is_empty() %}
<!-- TODO: support source linking
<a class="member-source" alt="View Source" title="View Source" href="{{ type_info.source_url|safe }}">
&lt;/&gt;
</a>
-->
{% endif %}
</div>
<div class="custom-type-constructors">
@@ -119,9 +121,11 @@
</a>
</h2>
{% if !constant.source_url.is_empty() %}
<!-- TODO: support source linking
<a class="member-source" alt="View Source" title="View Source" href="{{ constant.source_url|safe }}">
&lt;/&gt;
</a>
-->
{% endif %}
</div>
<pre><code class="hljs aiken">{{ constant.definition }}</code></pre>
@@ -145,9 +149,11 @@
</a>
</h2>
{% if !function.source_url.is_empty() %}
<!-- TODO: support source linking
<a class="member-source" alt="View Source" title="View Source" href="{{ function.source_url|safe }}">
&lt;/&gt;
</a>
-->
{% endif %}
</div>
<pre><code class="hljs aiken">{{ function.signature }}</code></pre>