Skip to content

Commit dd0da73

Browse files
authored
docs: Add community links (#807)
1 parent 7470d41 commit dd0da73

File tree

11 files changed

+191
-0
lines changed

11 files changed

+191
-0
lines changed

.github/release-drafter.yml

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ categories:
1616
- title: ⚠️ Breaking Changes
1717
label: breaking change
1818

19+
- title: 🔒 Security
20+
label: security
21+
1922
- title: 🚀 Features
2023
label: enhancement
2124

docs/community-logos/github.svg

+4
Loading

docs/community-logos/slack.svg

+10
Loading
+5
Loading

docs/community-logos/twitter.svg

+4
Loading

docs/css/extra.css

+67
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,70 @@ body .card-grid-item:focus {
5555
color: var(--md-primary-fg-color);
5656
background: #f2f4fe;
5757
}
58+
59+
@media (min-width: 1220px) {
60+
.community-callout-wrapper {
61+
padding: 40px 0 0;
62+
}
63+
64+
@media (min-width: 1600px) {
65+
.community-callout h2 {
66+
font-size: 1.15em;
67+
}
68+
}
69+
}
70+
71+
.community-callout {
72+
background: linear-gradient(10.88deg, rgba(102, 56, 242, 0.4) 9.56%, #6638F2 100%), #291A3F;
73+
border-radius: 10px;
74+
box-shadow: 0px 20px 45px rgba(#9991B5, 0.75);
75+
color: #F2F4FE;
76+
padding: 20px;
77+
}
78+
79+
.community-callout a {
80+
transition: opacity 0.2s ease;
81+
}
82+
83+
.community-callout a img {
84+
height: 1.75em;
85+
}
86+
87+
.community-callout a img {
88+
height: 2em;
89+
}
90+
91+
.community-callout a img {
92+
aspect-ratio: 1;
93+
height: 1.75em;
94+
width: auto;
95+
}
96+
97+
.community-callout a:hover {
98+
opacity: 0.5;
99+
}
100+
101+
.community-callout h2 {
102+
font-size: 1.25em;
103+
}
104+
105+
.community-callout h2 {
106+
color: #F2F4FE;
107+
font-size: 1.15em;
108+
margin: 0 0 20px 0;
109+
text-align: center;
110+
}
111+
112+
.community-callout ul {
113+
display: flex;
114+
gap: 10px;
115+
justify-content: space-between;
116+
list-style: none;
117+
margin-bottom: 0;
118+
margin-top: 20px;
119+
padding: 0;
120+
}
121+
122+
.community-callout-wrapper {
123+
padding: 30px 10px 0 10px;
124+
}

docs/index.md

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
<a class="card-grid-item" href="https://docs.rs/testcontainers/latest/testcontainers/">
2525
<img src="language-logos/rust.svg" />Rust
2626
</a>
27+
<a class="card-grid-item" href="https://github.com/testcontainers/testcontainers-hs/">
28+
<img src="language-logos/haskell.svg"/>Haskell
29+
</a>
2730
</div>
2831

2932
## About

docs/language-logos/haskell.svg

+6
Loading

docs/theme/main.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% extends "base.html" %}
2+
3+
{% block analytics %}
4+
<!-- Cloudflare Web Analytics --><script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "e44a95720257486eab94698a6b4c6ca6"}'></script><!-- End Cloudflare Web Analytics -->
5+
{% endblock %}

docs/theme/partials/nav.html

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<!--
2+
Copyright (c) 2016-2023 Martin Donath <martin.donath@squidfunk.com>
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to
5+
deal in the Software without restriction, including without limitation the
6+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7+
sell copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
The above copyright notice and this permission notice shall be included in
10+
all copies or substantial portions of the Software.
11+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
14+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
16+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
17+
IN THE SOFTWARE.
18+
-->
19+
20+
<!-- Determine class according to configuration -->
21+
{% set class = "md-nav md-nav--primary" %}
22+
{% if "navigation.tabs" in features %}
23+
{% set class = class ~ " md-nav--lifted" %}
24+
{% endif %}
25+
{% if "toc.integrate" in features %}
26+
{% set class = class ~ " md-nav--integrated" %}
27+
{% endif %}
28+
29+
<!-- Main navigation -->
30+
<nav class="{{ class }}" aria-label="{{ lang.t('nav') }}" data-md-level="0">
31+
32+
<!-- Site title -->
33+
<label class="md-nav__title" for="__drawer">
34+
<a href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}" title="{{ config.site_name | e }}"
35+
class="md-nav__button md-logo" aria-label="{{ config.site_name }}" data-md-component="logo">
36+
{% include "partials/logo.html" %}
37+
</a>
38+
{{ config.site_name }}
39+
</label>
40+
41+
<!-- Repository information -->
42+
{% if config.repo_url %}
43+
<div class="md-nav__source">
44+
{% include "partials/source.html" %}
45+
</div>
46+
{% endif %}
47+
48+
<!-- Render item list -->
49+
<ul class="md-nav__list" data-md-scrollfix>
50+
{% for nav_item in nav %}
51+
{% set path = "__nav_" ~ loop.index %}
52+
{% set level = 1 %}
53+
{% include "partials/nav-item.html" %}
54+
{% endfor %}
55+
<li class="community-callout-wrapper">
56+
<div class="community-callout">
57+
<h2>Join the community</h2>
58+
<ul>
59+
<li>
60+
<a href="https://slack.testcontainers.org/" target="_blank">
61+
<img src="/community-logos/slack.svg" alt="Slack" width="30" height="31">
62+
</a>
63+
</li>
64+
<li>
65+
<a href="https://github.com/testcontainers" target="_blank">
66+
<img src="/community-logos/github.svg" alt="GitHub" width="30" height="31">
67+
</a>
68+
</li>
69+
<li>
70+
<a href="https://stackoverflow.com/questions/tagged/testcontainers" target="_blank">
71+
<img src="/community-logos/stackoverflow.svg" alt="StackOverflow" width="26" height="31">
72+
</a>
73+
</li>
74+
<li>
75+
<a href="https://twitter.com/testcontainers" target="_blank">
76+
<img src="/community-logos/twitter.svg" alt="Twitter" width="37" height="31">
77+
</a>
78+
</li>
79+
</ul>
80+
</div>
81+
</li>
82+
</ul>
83+
</nav>

mkdocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ repo_url: https://github.com/testcontainers/testcontainers-dotnet
44
edit_uri: edit/develop/docs/
55
theme:
66
name: material
7+
custom_dir: docs/theme
78
palette:
89
scheme: testcontainers
910
font:

0 commit comments

Comments
 (0)