Skip to content

Commit 36ddf8c

Browse files
authored
Merge branch 'main' into vale
2 parents fa2ec11 + 5865e38 commit 36ddf8c

9 files changed

Lines changed: 113 additions & 1 deletion

File tree

.all-contributorsrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,16 @@
300300
"a11y",
301301
"ideas"
302302
]
303+
},
304+
{
305+
"login": "cuteshaun",
306+
"name": "Andrii Tsapko",
307+
"avatar_url": "https://avatars.githubusercontent.com/u/28014041?v=4",
308+
"profile": "https://github.com/cuteshaun",
309+
"contributions": [
310+
"a11y",
311+
"code"
312+
]
303313
}
304314
]
305315
}

.github/workflows/links.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
--exclude http://www.gnu.org
3636
--exclude http://fsf.org
3737
--exclude docs/pages
38+
--exclude docs/_includes
3839
--exclude-path '{{cookiecutter.project_slug}}/README.md'
3940
--exclude-path 'tests/data'
4041
-- ."

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ uv pip install -e ".[dev]"
116116
<td align="center" valign="top" width="14.28%"><a href="http://drandrewmitchell.com"><img src="https://avatars.githubusercontent.com/u/22335636?v=4?s=100" width="100px;" alt="Andrew Mitchell"/><br /><sub><b>Andrew Mitchell</b></sub></a><br /><a href="#bug-MitchellAcoustics" title="Bug reports">🐛</a></td>
117117
<td align="center" valign="top" width="14.28%"><a href="https://www.ucl.ac.uk/advanced-research-computing/advanced-research-computing-centre"><img src="https://avatars.githubusercontent.com/u/24316371?v=4?s=100" width="100px;" alt="Kimberly Meechan"/><br /><sub><b>Kimberly Meechan</b></sub></a><br /><a href="#bug-K-Meech" title="Bug reports">🐛</a> <a href="#a11y-K-Meech" title="Accessibility">️️️️♿️</a> <a href="#review-K-Meech" title="Reviewed Pull Requests">👀</a></td>
118118
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jamesprime"><img src="https://avatars.githubusercontent.com/u/17751241?v=4?s=100" width="100px;" alt="James Prime"/><br /><sub><b>James Prime</b></sub></a><br /><a href="#a11y-jamesprime" title="Accessibility">️️️️♿️</a> <a href="#ideas-jamesprime" title="Ideas, Planning, & Feedback">🤔</a></td>
119+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/cuteshaun"><img src="https://avatars.githubusercontent.com/u/28014041?v=4?s=100" width="100px;" alt="Andrii Tsapko"/><br /><sub><b>Andrii Tsapko</b></sub></a><br /><a href="#a11y-cuteshaun" title="Accessibility">️️️️♿️</a> <a href="#code-cuteshaun" title="Code">💻</a></td>
119120
</tr>
120121
</tbody>
121122
</table>

docs/_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ url: https://UCL-ARC.github.io/python-tooling
66

77
color_scheme: dark
88

9+
layouts_dir: _layouts
10+
911
aux_links:
1012
Source repository: https://github.com/UCL-ARC/python-tooling
1113
aux_links_new_tab: true
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<svg viewBox="0 0 16 16" aria-hidden="true">
2+
<use xlink:href="#svg-link"></use>
3+
</svg>

docs/_includes/header_custom.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
<button class="btn js-toggle-dark-mode"></button>
1+
<button class="btn js-toggle-dark-mode" aria-label="Switch to light mode">
2+
3+
</button>
24

35
<script>
46
const toggleDarkMode = document.querySelector(".js-toggle-dark-mode");
57
jtd.addEvent(toggleDarkMode, "click", function () {
68
if (jtd.getTheme() === "light") {
79
jtd.setTheme("dark");
810
toggleDarkMode.textContent = "☼";
11+
toggleDarkMode.ariaLabel = "Switch to light mode";
912
localStorage.setItem("theme", "dark");
1013
} else {
1114
jtd.setTheme("light");
1215
toggleDarkMode.textContent = "☾";
16+
toggleDarkMode.ariaLabel = "Switch to dark mode";
1317
localStorage.setItem("theme", "light");
1418
}
1519
});

docs/_includes/sidebar.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{%- comment -%} Include as: {%- include components/sidebar.html -%} Depends on:
2+
page(?), site. Results in: HTML for the side bar. Includes: title.html,
3+
components/site_nav.html, nav_footer_custom.html Overwrites: nav_footer_custom.
4+
Should not be cached, because nav_footer_custom.html might depend on page. {%-
5+
endcomment -%}
6+
7+
<div class="side-bar">
8+
<div class="site-header" role="banner">
9+
<a href="{{ '/' | relative_url }}" class="site-title lh-tight"
10+
>{% include title.html %}</a
11+
>
12+
<button
13+
id="menu-button"
14+
class="site-button btn-reset"
15+
aria-label="Toggle menu"
16+
aria-pressed="false"
17+
>
18+
<svg viewBox="0 0 24 24" class="icon" aria-hidden="true">
19+
<use xlink:href="#svg-menu"></use>
20+
</svg>
21+
</button>
22+
</div>
23+
24+
{% include_cached components/site_nav.html %}
25+
</div>

docs/_layouts/default.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!doctype html>
2+
<html lang="{{ site.lang | default: 'en-US' }}">
3+
{% include head.html %}
4+
<body>
5+
<a class="skip-to-main" href="#main-content">Skip to main content</a>
6+
{% include icons/icons.html %} {% if page.nav_enabled == true %} {% include
7+
sidebar.html %} {% elsif layout.nav_enabled == true and page.nav_enabled ==
8+
nil %} {% include sidebar.html %} {% elsif site.nav_enabled != false and
9+
layout.nav_enabled == nil and page.nav_enabled == nil %} {% include
10+
sidebar.html %} {% endif %}
11+
12+
<div class="main" id="top">
13+
{% include components/header.html %}
14+
15+
<div class="main-content-wrap">
16+
{% include components/breadcrumbs.html %}
17+
<div id="main-content" class="main-content">
18+
<main>
19+
{% if site.heading_anchors != false %} {% capture raw_anchor_svg %}
20+
{% include components/anchor_icon.html %} {% endcapture %} {% assign
21+
anchor_svg = raw_anchor_svg | strip_newlines %} {% include
22+
vendor/anchor_headings.html html=content beforeHeading="true"
23+
anchorBody=anchor_svg anchorClass="anchor-heading"
24+
anchorAttrs="aria-labelledby='%html_id%'" %} {% else %} {{ content
25+
}} {% endif %} {% if page.has_toc != false %} {% include
26+
components/children_nav.html %} {% endif %}
27+
</main>
28+
</div>
29+
</div>
30+
31+
<footer class="site-footer">
32+
This site uses
33+
<a href="https://github.com/just-the-docs/just-the-docs"
34+
>Just the Docs</a
35+
>, a documentation theme for Jekyll.
36+
</footer>
37+
38+
{% if site.search_enabled != false %} {% include
39+
components/search_footer.html %} {% endif %}
40+
</div>
41+
42+
{% if site.mermaid %} {% include components/mermaid.html %} {% endif %}
43+
</body>
44+
</html>

docs/_sass/custom/custom.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
html,
2+
body {
3+
height: 100%;
4+
margin: 0;
5+
}
6+
17
div.site-header {
28
max-height: 15em;
39
height: 15em;
@@ -6,3 +12,19 @@ div.site-header {
612
div.site-logo {
713
background-position: center center;
814
}
15+
16+
.main {
17+
display: flex;
18+
flex-direction: column;
19+
min-height: 100%;
20+
}
21+
22+
.main-content-wrap {
23+
flex: 1;
24+
}
25+
26+
.site-footer {
27+
position: static;
28+
width: 100%;
29+
color: $body-text-color;
30+
}

0 commit comments

Comments
 (0)