File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1111 </ div >
1212 < div class ="w-full md:w-1/4 mb-8 md:mb-0 flex md:justify-end ">
1313 < p >
14- < a href ="{{site.github.repository_url}}/blob/{{site.github.build_revision}}/docs/{{page.path}}?plain=1 " target ="_blank " class ="flex gap-4 h5 font-normal ">
14+ {% assign path_parts = page.path | split: "/" %}
15+ {% if path_parts[0] == "spec" and path_parts[1] == "draft" %}
16+ {% assign remaining_path = page.path | remove_first: "spec/draft/" %}
17+ {% assign github_path = "spec/" | append: remaining_path %}
18+ {% elsif path_parts[0] == "spec" %}
19+ {% assign version = path_parts[1] %}
20+ {% assign remaining_path = page.path | remove_first: "spec/" | remove_first: version | remove_first: "/" %}
21+ {% assign github_path = "releases/" | append: version | append: "/spec/" | append: remaining_path %}
22+ {% else %}
23+ {% assign github_path = page.path %}
24+ {% endif %}
25+ < a href ="{{site.github.repository_url}}/blob/{{site.github.build_revision}}/{{github_path}}?plain=1 " target ="_blank " class ="flex gap-4 h5 font-normal ">
1526 View source on GitHub
1627 < svg width ="22 " height ="22 " viewBox ="0 0 22 22 " fill ="none " xmlns ="http://www.w3.org/2000/svg ">
1728 < path fill-rule ="evenodd " clip-rule ="evenodd " d ="M11.2344 0.150879C5.28641 0.150879 0.468811 4.96848 0.468811 10.9165C0.468811 15.6803 3.55046 19.7039 7.82978 21.1303C8.36806 21.2245 8.56991 20.9016 8.56991 20.619C8.56991 20.3633 8.55646 19.5155 8.55646 18.6139C5.8516 19.1118 5.15184 17.9545 4.93653 17.3489C4.81541 17.0394 4.29059 16.084 3.83306 15.8283C3.45626 15.6264 2.91798 15.1285 3.8196 15.1151C4.66739 15.1016 5.27295 15.8956 5.47481 16.2185C6.44371 17.8468 7.99126 17.3893 8.61028 17.1067C8.70448 16.4069 8.98708 15.9359 9.29659 15.6668C6.90125 15.3977 4.39825 14.4691 4.39825 10.3513C4.39825 9.18051 4.81541 8.21161 5.50172 7.45802C5.39407 7.18888 5.01727 6.08541 5.60938 4.60514C5.60938 4.60514 6.51099 4.32254 8.56991 5.70861C9.43116 5.46639 10.3462 5.34527 11.2613 5.34527C12.1764 5.34527 13.0914 5.46639 13.9527 5.70861C16.0116 4.30909 16.9132 4.60514 16.9132 4.60514C17.5053 6.08541 17.1285 7.18888 17.0209 7.45802C17.7072 8.21161 18.1244 9.16706 18.1244 10.3513C18.1244 14.4826 15.6079 15.3977 13.2126 15.6668C13.6028 16.0032 13.9392 16.6492 13.9392 17.6584C13.9392 19.0983 13.9258 20.2556 13.9258 20.619C13.9258 20.9016 14.1276 21.238 14.6659 21.1303C16.8031 20.4088 18.6602 19.0353 19.9758 17.2031C21.2915 15.3708 21.9994 13.1721 22 10.9165C22 4.96848 17.1824 0.150879 11.2344 0.150879Z " fill ="white "/>
You can’t perform that action at this time.
0 commit comments