Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
--exclude http://www.gnu.org
--exclude http://fsf.org
--exclude docs/pages
--exclude docs/_includes
--exclude-path '{{cookiecutter.project_slug}}/README.md'
--exclude-path 'tests/data'
-- ."
Expand Down
2 changes: 2 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ url: https://UCL-ARC.github.io/python-tooling

color_scheme: dark

layouts_dir: _layouts

aux_links:
Source repository: https://github.com/UCL-ARC/python-tooling
aux_links_new_tab: true
Expand Down
3 changes: 3 additions & 0 deletions docs/_includes/components/anchor_icon.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<svg viewBox="0 0 16 16" aria-hidden="true">
<use xlink:href="#svg-link"></use>
</svg>
25 changes: 25 additions & 0 deletions docs/_includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{%- comment -%} Include as: {%- include components/sidebar.html -%} Depends on:
page(?), site. Results in: HTML for the side bar. Includes: title.html,
components/site_nav.html, nav_footer_custom.html Overwrites: nav_footer_custom.
Should not be cached, because nav_footer_custom.html might depend on page. {%-
endcomment -%}

<div class="side-bar">
<div class="site-header" role="banner">
<a href="{{ '/' | relative_url }}" class="site-title lh-tight"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh! I'm sorry for doubting you, dear link-checker. I take back the yellow card.

>{% include title.html %}</a
>
<button
id="menu-button"
class="site-button btn-reset"
aria-label="Toggle menu"
aria-pressed="false"
>
<svg viewBox="0 0 24 24" class="icon" aria-hidden="true">
<use xlink:href="#svg-menu"></use>
</svg>
</button>
</div>

{% include_cached components/site_nav.html %}
</div>
44 changes: 44 additions & 0 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!doctype html>
<html lang="{{ site.lang | default: 'en-US' }}">
{% include head.html %}
<body>
<a class="skip-to-main" href="#main-content">Skip to main content</a>
{% include icons/icons.html %} {% if page.nav_enabled == true %} {% include
sidebar.html %} {% elsif layout.nav_enabled == true and page.nav_enabled ==
nil %} {% include sidebar.html %} {% elsif site.nav_enabled != false and
layout.nav_enabled == nil and page.nav_enabled == nil %} {% include
sidebar.html %} {% endif %}

<div class="main" id="top">
{% include components/header.html %}

<div class="main-content-wrap">
{% include components/breadcrumbs.html %}
<div id="main-content" class="main-content">
<main>
{% if site.heading_anchors != false %} {% capture raw_anchor_svg %}
{% include components/anchor_icon.html %} {% endcapture %} {% assign
anchor_svg = raw_anchor_svg | strip_newlines %} {% include
vendor/anchor_headings.html html=content beforeHeading="true"
anchorBody=anchor_svg anchorClass="anchor-heading"
anchorAttrs="aria-labelledby='%html_id%'" %} {% else %} {{ content
}} {% endif %} {% if page.has_toc != false %} {% include
components/children_nav.html %} {% endif %}
</main>
</div>
</div>

<footer class="site-footer">
This site uses
<a href="https://github.com/just-the-docs/just-the-docs"
>Just the Docs</a
>, a documentation theme for Jekyll.
</footer>

{% if site.search_enabled != false %} {% include
components/search_footer.html %} {% endif %}
</div>

{% if site.mermaid %} {% include components/mermaid.html %} {% endif %}
</body>
</html>
22 changes: 22 additions & 0 deletions docs/_sass/custom/custom.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
html,
body {
height: 100%;
margin: 0;
}

div.site-header {
max-height: 15em;
height: 15em;
Expand All @@ -6,3 +12,19 @@ div.site-header {
div.site-logo {
background-position: center center;
}

.main {
display: flex;
flex-direction: column;
min-height: 100%;
}

.main-content-wrap {
flex: 1;
}

.site-footer {
position: static;
width: 100%;
color: $body-text-color;
}