Skip to content

Commit

Permalink
Various improvements (#54)
Browse files Browse the repository at this point in the history
* Update to latest mkdocs material version
* Add media coverage page
* Enable allowed domains for fathom analytics to suppress dev traffic
* Enable Material for MkDocs privacy plugin
* Make banner dismissable
* Enable tab linking in tutorials

Signed-off-by: Sven Trieflinger <[email protected]>
  • Loading branch information
strieflin authored May 2, 2022
1 parent d5db60b commit bbf1b4e
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 21 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
with:
python-version: 3.x
- name: Install Material for MkDocs
run: pip install mkdocs-material==8.1.1 mkdocs-minify-plugin==0.5.0
run: pip install \
git+https://${MKDOCS_MATERIAL_INSIDERS}@github.com/squidfunk/[email protected] \
mkdocs-minify-plugin==0.5.0
- name: Deploy site
run: mkdocs gh-deploy --force
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ out
gen
target

# MkDocs files
.cache

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ cd carbynestack.github.io
mkdocs serve
```

### MkDocs Material Insiders

We use components of the MkDocs Material Insiders sponsorware. Installation
instructions can be found [here](https://squidfunk.github.io/mkdocs-material/insiders/getting-started/#installation).

## License

The Carbyne Stack website is open-sourced under the Apache License 2.0. See the
Expand Down
1 change: 1 addition & 0 deletions config/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ nav:
- Participate: community/participate.md
- Ecosystem: community/ecosystem.md
- Events: community/events.md
- Media Coverage: community/media-coverage.md
- Opportunities: community/opportunities.md
- Google Summer of Code: community/gsoc.md
- Acknowledgements: community/acknowledgements.md
Expand Down
23 changes: 23 additions & 0 deletions docs/community/media-coverage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Media Coverage

This page summarizes media coverage of Carbyne Stack in blog posts, articles
and news.

<div class="grid cards" markdown>

- <p>:fontawesome-solid-blog:{ .middle } __Blog Post__</p>

---

![Blog Image][bosch-cs-blog-post-image]

**Lifting Computing on Encrypted Data into the Cloud** - Bosch Research
launches Carbyne Stack Open-Source Project for Cloud-Native Secure
Multiparty Computation

[:octicons-arrow-right-24:{ .middle } Bosch Research Blog][bosch-cs-blog-post]

</div>

[bosch-cs-blog-post]: https://www.bosch.com/stories/open-source-carbyne-stack/
[bosch-cs-blog-post-image]: https://assets.bosch.com/media/global/stories/forschung/carbyne_stack_for_cloud_native_secure_multiparty_computation/blog-header-carbyne-stack-16x9_res_1280x720.png
24 changes: 22 additions & 2 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
color: var(--md-accent-fg-color);
}

.md-header {
background-color: black;
}

.md-tabs {
background-color: black;
}

.gsoc-topic-section-title {
font-size: 1.4em;
padding-bottom: -1.2em;
Expand All @@ -39,7 +47,7 @@

.ecosystem-logo {
width: auto;
height: 50px;
height: 50px !important;
}

.acknowledgements-logo {
Expand All @@ -54,9 +62,21 @@

.event-logo {
width: auto;
height: 70px;
height: 70px !important;
}

.invert {
filter: invert(1);
}

.announcement-bar {
font-size: medium;
}

.announcement-bar a {
color: var(--md-accent-fg-color);
}

.announcement-bar a:where(:focus, :hover) {
color: var(--md-typeset-a-color) !important;
}
7 changes: 6 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ theme:
custom_dir: overrides
language: en
features:
- announce.dismiss
- content.tabs.link
- navigation.instant
- navigation.tracking
- navigation.tabs
Expand All @@ -39,7 +41,7 @@ theme:
code: Roboto Mono
palette:
- scheme: default
primary: black
primary: indigo
accent: red

markdown_extensions:
Expand All @@ -61,6 +63,9 @@ markdown_extensions:
toc_depth: 3

plugins:
- privacy:
externals_exclude:
- holiday-van.carbynestack.io/*
- search
- minify:
minify_html: true
Expand Down
24 changes: 8 additions & 16 deletions overrides/assets/stylesheets/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
padding: 0;
}

.md-sidebar--secondary {
display: none !important;
}

.md-main__inner .md-content__inner::before {
display: none;
}
Expand All @@ -45,7 +49,7 @@
section.hero-section {
min-height: 435px;
justify-content: center;
color: var(--md-primary-bg-color);
color: white;
position: relative;
display: flex;
align-items: center;
Expand Down Expand Up @@ -100,7 +104,7 @@ body {
}

.image-with-text {
color: var(--md-primary-fg-color);
color: var(--md-typeset-color);
}

.left {
Expand Down Expand Up @@ -147,7 +151,7 @@ body {
.svg-icon-in-button {
margin-right: 10px;
font-size: x-large;
vertical-align: top;
vertical-align: middle !important;
}

.used-by-logo-banner {
Expand All @@ -156,18 +160,6 @@ body {

.used-by-logo {
width: auto;
height: 40px;
height: 40px !important;
margin: 20px;
}

.announcement-bar {
font-size: medium;
}

.announcement-bar a {
color: var(--md-accent-fg-color);
}

.announcement-bar a:where(:focus, :hover) {
color: var(--md-typeset-a-color);
}
2 changes: 1 addition & 1 deletion overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% extends "base.html" %}

{% block libs %}
<script src="https://cdn.usefathom.com/script.js" data-site="CUNVUWEF" data-excluded-domains="localhost,10.*.*.*,127.*.*.*,172.16.*.*,192.168.*.*" defer></script>
<script src="https://holiday-van.carbynestack.io/script.js" data-site="CUNVUWEF" defer></script>
{% endblock %}

{% block announce %}
Expand Down

0 comments on commit bbf1b4e

Please sign in to comment.