refactor(theme): migrated from website repo
migrated the files required to create the themes for this mkdocs site. MR !1 #1
This commit is contained in:
1
theme-overrides/.icons/brand/docker.svg
Executable file
1
theme-overrides/.icons/brand/docker.svg
Executable file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path d="M349.9 236.3h-66.1v-59.4h66.1v59.4zm0-204.3h-66.1v60.7h66.1V32zm78.2 144.8H362v59.4h66.1v-59.4zm-156.3-72.1h-66.1v60.1h66.1v-60.1zm78.1 0h-66.1v60.1h66.1v-60.1zm276.8 100c-14.4-9.7-47.6-13.2-73.1-8.4-3.3-24-16.7-44.9-41.1-63.7l-14-9.3-9.3 14c-18.4 27.8-23.4 73.6-3.7 103.8-8.7 4.7-25.8 11.1-48.4 10.7H2.4c-8.7 50.8 5.8 116.8 44 162.1 37.1 43.9 92.7 66.2 165.4 66.2 157.4 0 273.9-72.5 328.4-204.2 21.4.4 67.6.1 91.3-45.2 1.5-2.5 6.6-13.2 8.5-17.1l-13.3-8.9zm-511.1-27.9h-66v59.4h66.1v-59.4zm78.1 0h-66.1v59.4h66.1v-59.4zm78.1 0h-66.1v59.4h66.1v-59.4zm-78.1-72.1h-66.1v60.1h66.1v-60.1z"/></svg>
|
||||
|
After Width: | Height: | Size: 663 B |
27
theme-overrides/article.html
Executable file
27
theme-overrides/article.html
Executable file
@ -0,0 +1,27 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<span itemscope itemtype="https://schema.org/CreativeWork">
|
||||
{% if page.meta.type == "blog" %}
|
||||
<span itemprop="hasPart" itemscope itemtype="https://schema.org/BlogPosting">
|
||||
{% elif page.meta.type == "article" %}
|
||||
<span itemprop="hasPart" itemscope itemtype="https://schema.org/Article">
|
||||
{% endif %}
|
||||
|
||||
<h1 itemprop="name">{{ page.title }}</h1>
|
||||
{% include "partials/article_metadata.html" %}
|
||||
<hr>
|
||||
<span itemprop="text">{{ page.content }}</span>
|
||||
|
||||
<span itemprop="publisher" itemscope itemtype="https://schema.org/Organization" style="font-size: 10px;">
|
||||
Published by: <span itemprop="name">{{ config.site_name }}</span>, <span itemprop="url">{{ config.site_url }}</span>
|
||||
</span>
|
||||
{% if page.meta.copyrightHolder %}
|
||||
<br>
|
||||
<span itemprop="copyrightHolder" itemscope itemtype="https://schema.org/Person" style="font-size: 10px;">
|
||||
Copyright <span itemprop="name">{{ page.meta.copyrightHolder }}</span>
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if page.meta.type %}</span>{% endif %}
|
||||
</span>
|
||||
{% endblock %}
|
||||
38
theme-overrides/article_list.html
Executable file
38
theme-overrides/article_list.html
Executable file
@ -0,0 +1,38 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{{ page.content }}
|
||||
{% set article_posts = [] %}
|
||||
{% for page in nav.pages %}
|
||||
{% if page.url.startswith(config.extra.blog.dir) and page.meta.date is defined %}
|
||||
<!-- or "" suppresses "None" output-->
|
||||
{{ article_posts.append( page ) or "" }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<span itemscope itemtype="https://schema.org/CreativeWork">
|
||||
{% for page in (article_posts|sort(attribute="meta.date", reverse=True))[:config.extra.blog.list_length] %}
|
||||
{% if page.meta.type == "blog" %}
|
||||
<span itemprop="hasPart" itemscope itemtype="https://schema.org/BlogPosting">
|
||||
{% elif page.meta.type == "article" %}
|
||||
<span itemprop="hasPart" itemscope itemtype="https://schema.org/Article">
|
||||
{% endif %}
|
||||
<h2 itemprop="name"><a href="{{ page.url|url }}" itemprop="url">{{ page.title }}</a></h2>
|
||||
<hr>
|
||||
{% include "partials/article_metadata.html" %}
|
||||
<p>
|
||||
{{ page.meta.description }}
|
||||
</p>
|
||||
<!-- Use a hidden p tag to provide a preview -->
|
||||
{% if config.extra.blog.extended_preview %}
|
||||
<a href="{{ page.url|url }}#more">
|
||||
<span class="twemoji">
|
||||
{% include ".icons/octicons/arrow-right-24.svg" %}
|
||||
</span>
|
||||
Continue reading
|
||||
<hr>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if page.meta.type %}</span>{% endif %}
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endblock %}
|
||||
68
theme-overrides/home.html
Executable file
68
theme-overrides/home.html
Executable file
@ -0,0 +1,68 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div itemscope itemtype="https://schema.org/WebSite">
|
||||
{{ page.content }}
|
||||
{% set article_posts = [] %}
|
||||
{% for page in nav.pages %}
|
||||
{% if page.url.startswith(config.extra.blog.dir) and page.meta.date is defined %}
|
||||
<!-- or "" suppresses "None" output-->
|
||||
{{ article_posts.append( page ) or "" }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<div class="container">
|
||||
<div class="row" >
|
||||
<div itemprop="hasPart" itemscope itemtype="https://schema.org/CreativeWork" class="column">
|
||||
<a itemprop="url" href="articles/index.html"><h2 itemprop="name">Articles</h2></a>
|
||||
<ul>
|
||||
{% for page in (article_posts|sort(attribute="meta.date", reverse=True))[:config.extra.blog.list_length] %}
|
||||
{% if page.meta.type == "blog" %}
|
||||
<li itemprop="hasPart" itemscope itemtype="https://schema.org/BlogPosting">
|
||||
{% elif page.meta.type == "article" %}
|
||||
<li itemprop="hasPart" itemscope itemtype="https://schema.org/Article">
|
||||
{% else %}
|
||||
<li>
|
||||
{% endif %}
|
||||
<p>
|
||||
<h3><a itemprop="url" href="{{ page.url|url }}"><span itemprop="name">{{ page.title }}</span></a></h3>
|
||||
<aside class="mdx-author">
|
||||
<span>
|
||||
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
|
||||
<img itemprop="image" alt={{ config.extra.blog.author }} src={{ config.extra.blog.author_image }} style="vertical-align: middle;">
|
||||
<strong style="padding-left: 5px;" itemprop="name" >{{ config.extra.blog.author }}</strong>
|
||||
</span>
|
||||
<span class="twemoji">
|
||||
{% include ".icons/octicons/calendar-24.svg" %}
|
||||
</span>
|
||||
<span itemprop="dateCreated">{{ page.meta.date.strftime("%Y-%m-%d") }}</span> ·
|
||||
<span class="twemoji">
|
||||
{% include ".icons/octicons/clock-24.svg" %}
|
||||
</span>
|
||||
<!--Min reading time is 1 minute-->
|
||||
{% set read_time = page.content | wordcount // config.extra.blog.words_read_per_minute|default(300, true) %}
|
||||
{% if read_time == 0 %}
|
||||
{% set read_time = 1 %}
|
||||
{% endif %}
|
||||
<span itemprop="timeRequired">{{ read_time }} min</span> read
|
||||
</span>
|
||||
</aside>
|
||||
</p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="column">
|
||||
<h2>Quick Links</h2>
|
||||
<ul>
|
||||
<li><h3>About us</h3></li>
|
||||
<li><h3><a href="operations/index.html">Operations</a></h3></li>
|
||||
<li><h3><a href="projects/index.html">Our Projects</a></h3></li>
|
||||
<li><h3>link 4</h3></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
63
theme-overrides/manual.html
Executable file
63
theme-overrides/manual.html
Executable file
@ -0,0 +1,63 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if page.edit_url %}
|
||||
<a href="{{ page.edit_url }}" title="{{ lang.t('edit.link.title') }}" class="md-content__button md-icon">
|
||||
{% include ".icons/material/pencil.svg" %}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
<span itemscope itemtype="https://schema.org/CreativeWork">
|
||||
<!--{% if page.meta.type == "blog" %}
|
||||
<span itemprop="hasPart" itemscope itemtype="https://schema.org/BlogPosting">
|
||||
{% elif page.meta.type == "article" %}
|
||||
<span itemprop="hasPart" itemscope itemtype="https://schema.org/Article">
|
||||
{% endif %}-->
|
||||
<span itemprop="hasPart" itemscope itemtype="https://schema.org/Article">
|
||||
|
||||
<h1 itemprop="name">{{ page.title }}</h1>
|
||||
|
||||
<hr>
|
||||
|
||||
<span itemprop="text">
|
||||
{{ page.content }}
|
||||
</span>
|
||||
|
||||
<!--<span itemprop="publisher" itemscope itemtype="https://schema.org/Organization" style="font-size: 10px;">
|
||||
Published by: <span itemprop="name">{{ config.site_name }}</span>, <span itemprop="url">{{ config.site_url }}</span>
|
||||
</span>
|
||||
{% if page.meta.copyrightHolder %}
|
||||
<br>
|
||||
<span itemprop="copyrightHolder" itemscope itemtype="https://schema.org/Person" style="font-size: 10px;">
|
||||
Copyright <span itemprop="name">{{ page.meta.copyrightHolder }}</span>
|
||||
</span>
|
||||
{% endif %}-->
|
||||
<!--{% if page.meta.type %}</span>{% endif %}-->
|
||||
</span>
|
||||
|
||||
<div style="background-color: var(--md-primary-fg-color); color: var(--md-primary-bg-color); padding: 5px;">
|
||||
<h4>About:</h4>
|
||||
<p>This page forms part of our Operations Manual.</p>
|
||||
<p>
|
||||
<h5>Page Metadata</h5>
|
||||
Version: ToDo: place files short git commit here <!--<span itemprop="version"></span> --><br>
|
||||
Date Created: <span itemprop="dateCreated">{{ page.meta.date.strftime("%Y-%m-%d") }}</span><br>
|
||||
{% if page.meta.git_revision_date_localized %}Date Edited: <span itemprop="dateModified">{{ page.meta.git_revision_date_localized.replace("\n", "").replace("\r", "") }}</span><br>{% endif %}
|
||||
</p>
|
||||
|
||||
<h5>Contribution:</h5>
|
||||
<p>Would You like to contribute to our Operations Manual? You can assist in the following ways:</p>
|
||||
<ul>
|
||||
<li><a style="color: #ffffff; font-weight: bold;" href="{{ page.edit_url }}" title="{{ lang.t('edit.link.title') }}">Edit This Page</a> If there is a mistake or a way you can improve it.</li>
|
||||
<li><a style="color: #ffffff; font-weight: bold;" href="AddNewPageURL">Add a Page to the {{ manual_section }} Manual</a> if you would like to add an item to our manual</li>
|
||||
<li><a style="color: #ffffff; font-weight: bold;" target="_blank" href="https://gitlab.com/nofusscomputing/infrastructure/website/-/issues/new">Raise an Issue</a> if there is something about this page you would like to improve.</li>
|
||||
</ul>
|
||||
<p> </p>
|
||||
<p>ToDo: Add the page list of contributors</p>
|
||||
|
||||
</div>
|
||||
|
||||
</span>
|
||||
|
||||
{% endblock %}
|
||||
7
theme-overrides/partials/article_extended_preview.html
Executable file
7
theme-overrides/partials/article_extended_preview.html
Executable file
@ -0,0 +1,7 @@
|
||||
<a href="{{ page.url|url }}">
|
||||
<span class="twemoji">
|
||||
{% include ".icons/octicons/arrow-right-24.svg" %}
|
||||
</span>
|
||||
Continue reading
|
||||
<hr>
|
||||
</a>
|
||||
32
theme-overrides/partials/article_metadata.html
Executable file
32
theme-overrides/partials/article_metadata.html
Executable file
@ -0,0 +1,32 @@
|
||||
<aside class="mdx-author">
|
||||
{% if config.extra.blog.author_image is defined %}
|
||||
<p>
|
||||
<img alt={{ config.extra.blog.author }} src={{ config.extra.blog.author_image }}>
|
||||
</p>
|
||||
{% endif %}
|
||||
<p>
|
||||
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
|
||||
{% if config.extra.blog.author %}
|
||||
<strong itemprop="name">{{ config.extra.blog.author }}</strong>
|
||||
·
|
||||
{% endif %}
|
||||
{% include "partials/article_social.html" %}
|
||||
</span>
|
||||
<span>
|
||||
<span class="twemoji">
|
||||
{% include ".icons/octicons/calendar-24.svg" %}
|
||||
</span>
|
||||
<span itemprop="dateCreated">{{ page.meta.date.strftime("%Y-%m-%d") }}</span> ·
|
||||
{% if page.meta.git_revision_date_localized %}Updated <span itemprop="dateModified">{{ page.meta.git_revision_date_localized.replace("\n", "").replace("\r", "") }}</span> <br>{% endif %}
|
||||
<span class="twemoji">
|
||||
{% include ".icons/octicons/clock-24.svg" %}
|
||||
</span>
|
||||
<!--Min reading time is 1 minute-->
|
||||
{% set read_time = page.content | wordcount // config.extra.blog.words_read_per_minute|default(300, true) %}
|
||||
{% if read_time == 0 %}
|
||||
{% set read_time = 1 %}
|
||||
{% endif %}
|
||||
<span itemprop="timeRequired">{{ read_time }} min </span>read
|
||||
</span>
|
||||
</p>
|
||||
</aside>
|
||||
17
theme-overrides/partials/article_social.html
Executable file
17
theme-overrides/partials/article_social.html
Executable file
@ -0,0 +1,17 @@
|
||||
{% if config.extra.social %}
|
||||
{% set ns = namespace() %}
|
||||
{% for social in config.extra.social %}
|
||||
{% set title = social.name %}
|
||||
{% if not title and "//" in social.link %}
|
||||
{% set _,url = social.link.split("//") %}
|
||||
{% set title = url.split("/")[0] %}
|
||||
{% endif %}
|
||||
{% if ns.line_break is defined %}
|
||||
{{ ns.line_break }}
|
||||
{% endif %}
|
||||
<a href="{{ social.link }}" target="_blank" rel="noopener" title="{{ title | e }}" class="twemoji">
|
||||
{% include ".icons/" ~ social.icon ~ ".svg" %}
|
||||
</a>
|
||||
{% set ns.line_break = " · " %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
14
theme-overrides/partials/footer.html
Executable file
14
theme-overrides/partials/footer.html
Executable file
@ -0,0 +1,14 @@
|
||||
{#-
|
||||
This file was automatically generated - do not edit
|
||||
-#}
|
||||
<footer class="md-footer">
|
||||
|
||||
<div class="md-footer-meta md-typeset">
|
||||
<div class="md-footer-meta__inner md-grid">
|
||||
{% include "partials/copyright.html" %}
|
||||
{% if config.extra.social %}
|
||||
{% include "partials/social.html" %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
12
theme-overrides/sitemap.xml
Executable file
12
theme-overrides/sitemap.xml
Executable file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
{%- for file in pages -%}
|
||||
{% if not file.page.is_link %}
|
||||
<url>
|
||||
<loc>{% if file.page.canonical_url %}{{ file.page.canonical_url|e }}{% else %}{{ file.page.abs_url|e }}{% endif %}</loc>
|
||||
{% if file.page.meta.git_revision_date_localized %}<lastmod>{{ file.page.meta.git_revision_date_localized.replace("\n", "").replace("\r", "").replace('<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date">', '').replace('</span>','') }}</lastmod>{% endif %}
|
||||
<changefreq>weekly</changefreq>
|
||||
</url>
|
||||
{%- endif -%}
|
||||
{% endfor %}
|
||||
</urlset>
|
||||
Reference in New Issue
Block a user