Skip to content

Commit 3bad2a8

Browse files
authored
Merge pull request #68 from github/docs-fix-broken-source-code-links
docs: fix broken source code links
2 parents 6378196 + 6a7c4e2 commit 3bad2a8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/_includes/type.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
{%- when "reflection" %}
1515
{%- assign type = type.declaration %}
1616
{%- include type.html %}
17+
{%- when "typeParameter" %}
18+
{%- assign name = type.name %}
19+
{%- assign type = type.constraint %}
20+
{{- ''}}<span class="nf">{{ name }}</span>
1721
{%- else %}
1822
{%- if type.signatures %}
1923
{%- assign rootType = type %}

docs/reference.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h2 class="mb-0" id="{{ file.name | slugify }}">{{ export.name }}</h2>
1414
<div class="mb-3 f5">
1515
{% for source in export.sources %}
1616
Defined in:
17-
<a href="{{ site.github.repository_url }}/blob/{{ revision }}/catalyst/src/{{ source.fileName }}#L{{ source.line }}">
17+
<a href="{{ site.github.repository_url }}/blob/{{ revision }}/src/{{ source.fileName }}#L{{ source.line }}">
1818
{{ source.fileName }}:{{ source.line }}
1919
</a>
2020
{% endfor %}

0 commit comments

Comments
 (0)