Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit 44dc5f9

Browse files
committed
import the ferrocene theme into the repo
1 parent 60051d1 commit 44dc5f9

39 files changed

+720
-0
lines changed

themes/ferrocene/fontawesome.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{# SPDX-License-Identifier: CC-BY-4.0 #}
2+
{# SPDX-FileCopyrightText: Fonticons, Inc #}
3+
4+
{# To use Font Awesome icons in our templates, we define a macro with the icon
5+
name and inline the SVG in it. This way the SVG won't be loaded with a
6+
separate request, and it'll be possible to style the icon through CSS. #}
7+
8+
{# Please ensure the SVG you download has "Font Awesome Free" in the comment,
9+
not "Font Awesome Pro", otherwise the icon is subject to a proprietary
10+
license. If the download from the website is marked as pro, download the SVG
11+
from the GitHub repository instead. #}
12+
13+
{% macro icon_search() %}
14+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
15+
<!--! Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc. -->
16+
<path d="M500.3 443.7l-119.7-119.7c27.22-40.41 40.65-90.9 33.46-144.7C401.8 87.79 326.8 13.32 235.2 1.723C99.01-15.51-15.51 99.01 1.724 235.2c11.6 91.64 86.08 166.7 177.6 178.9c53.8 7.189 104.3-6.236 144.7-33.46l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7zM79.1 208c0-70.58 57.42-128 128-128s128 57.42 128 128c0 70.58-57.42 128-128 128S79.1 278.6 79.1 208z"/>
17+
</svg>
18+
{% endmacro %}

themes/ferrocene/layout.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{# SPDX-License-Identifier: MIT OR Apache-2.0 #}
2+
{# SPDX-FileCopyrightText: Ferrous Systems and AdaCore #}
3+
4+
{% extends "basic/layout.html" %}
5+
{% from "fontawesome.html" import icon_search %}
6+
7+
{% block extrahead %}
8+
{{ super() }}
9+
<link rel="icon" href="{{ pathto('_static/favicon.svg', 1) }}" sizes="any" type="image/svg+xml" />
10+
{% endblock %}
11+
12+
{% block content %}
13+
<div class="wrapper">
14+
<div class="sidebar">
15+
<header>
16+
<a href="{{ pathto('index') }}">
17+
<img src="{{ pathto('_static/ferrocene.svg', 1) }}" alt="Ferrocene logo">
18+
<h1>{{ shorttitle }}</h1>
19+
</a>
20+
</header>
21+
<form action="{{ pathto('search') }}" method="get" class="side-search">
22+
<input type="text" name="q" placeholder="Search...">
23+
<button type="submit">{{ icon_search() }}</button>
24+
</form>
25+
<nav>
26+
<label for="toggle-toctree" class="toggle">Toggle navigation</label>
27+
<input type="checkbox" id="toggle-toctree">
28+
<div class="toctree">
29+
{{ toctree(includehidden=false, collapse=false, maxdepth=1) }}
30+
</div>
31+
</nav>
32+
</div>
33+
<div class="content">
34+
<div class="page">
35+
{% block body %}{% endblock %}
36+
</div>
37+
</div>
38+
</div>
39+
<footer>
40+
<p>
41+
Copyright &copy; {{ copyright }}.
42+
{% if theme_license %}
43+
Contents released under the {{ theme_license }} license.
44+
{% endif %}
45+
</p>
46+
{% if theme_commit %}
47+
<p>Built from commit: <code>{{ theme_commit }}</code></p>
48+
{% endif %}
49+
<p>Ferrocene is a registered trademark of Critical Section GmbH.</p>
50+
</footer>
51+
{% endblock %}
52+
53+
{# The blocks below, defined in the basic layout, are effectively removed from
54+
the template as we replace their contents with an empty string. #}
55+
{% block relbar1 %}{% endblock %}
56+
{% block relbar2 %}{% endblock %}
57+
{% block footer %}{% endblock %}

themes/ferrocene/search.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{# SPDX-License-Identifier: MIT OR Apache-2.0 #}
2+
{# SPDX-FileCopyrightText: Ferrous Systems and AdaCore #}
3+
4+
{% extends "basic/search.html" %}
5+
6+
{% block body %}
7+
<noscript>
8+
<p>
9+
The search functionality requires JavaScript to be enabled!
10+
Please enable it to search in the documentation.
11+
</p>
12+
</noscript>
13+
<section id="search-results">
14+
<!-- Will be populated by JavaScript -->
15+
</section>
16+
{% endblock %}

themes/ferrocene/static/favicon.svg

Lines changed: 12 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)