Skip to content

Commit c94a621

Browse files
isaaccloosseanmonstar
authored andcommitted
docs(site): add examples/README links (#3099)
Tested on desktop and mobile.
1 parent c535feb commit c94a621

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

_layouts/guide.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ <h1>{{ page.title }}</h1>
3232
{% assign topic = site.data.contrib | first %}
3333
{% include guide_ul.html topic=topic %}
3434
{% endif %}
35-
<h4 class="guide-topic-title">
35+
<h4 class="guide-links">
3636
{% if page.collection == "legacy" %}
37+
<a href="{{ site.legacy_examples_url }}/README.md">Additional Examples</a>
3738
<a href="{{ site.legacy_docs_url }}">API Reference</a>
3839
{% elsif page.collection == "stable" %}
40+
<a href="{{ site.examples_url }}/README.md">Additional Examples</a>
3941
<a href="{{ site.docs_url }}">API Reference</a>
4042
{% endif %}
4143
</h4>

css/main.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,16 @@ pre code {
146146
font-size: 1.1rem;
147147
}
148148

149+
.hyper-sidebar .guide-links {
150+
display: flex;
151+
flex-direction: column;
152+
font-size: 1.1rem;
153+
}
154+
155+
.hyper-sidebar .guide-links a:not(:last-child) {
156+
margin-bottom: 1rem;
157+
}
158+
149159
.hyper-sidebar .nav {
150160
display: block;
151161
margin-bottom: 2rem;

0 commit comments

Comments
 (0)