Skip to content

Commit

Permalink
Merge pull request #176 from valkey-io/main
Browse files Browse the repository at this point in the history
Move to Prod: Participants page, typos, upcased URLs
  • Loading branch information
stockholmux authored Dec 17, 2024
2 parents 4c0995a + 8e09ae3 commit 77ea0a1
Show file tree
Hide file tree
Showing 15 changed files with 157 additions and 19 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
This repo contains the source for the valkey.io website (build scripts, template, blog posts, stylesheets, etc.).
The build integrates content from [`valkey-io/valkey-doc`](https://github.com/valkey-io/valkey-doc) and the commands definitions from [`valkey-io/valkey`](https://github.com/valkey-io/valkey-doc) (see [Build Locally](#build-locally) below for more details).

**Note**: The site is currently in transition to a new static site generator. The current production website is built from branch `jekyll-version` but will be built from `main` in the near future.

## Contributing

We welcome contributions! Please see our [CONTRIBUTING](CONTRIBUTING.md) page to learn more about how to contribute to the website.
Expand Down
27 changes: 27 additions & 0 deletions _data/participants.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
- name: Percona
link: https://learn.percona.com/percona-support-for-valkey
image:
path: /img/percona.svg
alt: Percona Logo
company: >
Percona is a world-class open source database software, support, and services company.
The organization is dedicated to helping businesses ensure their databases — and the applications that depend on them — are secure, compliant, performant, and highly available.
For more information, visit [www.percona.com](http://www.percona.com/)
offering: >
Valkey expertise, where and when you need it.
From day-to-day operational support to hands-on assistance for complex projects, Percona can meet your Valkey database needs.
We’ll soon be offering support, managed services, and project-based consulting, so together, we can tackle any challenge and continue to keep open source, open.
- name: UpCloud
link: https://upcloud.com/valkey
image:
path: /img/upcloud.svg
alt: UpCloud Logo
company: >
UpCloud is a leading European cloud provider with a global platform spanning four continents and 13 data centres.
Founded in 2012 and headquartered in Helsinki, Finland, our international team ensures uninterrupted services with a 100% SLA, empowering businesses worldwide to thrive with our reliable, cloud-native product portfolio.
offering: >
Valkey on UpCloud simplifies database management with a fully managed service hosted on our GDPR-compliant cloud.
Enjoy seamless deployment, expert maintenance, and high performance with minimal downtime.
Backed by UpCloud’s global reach, Valkey ensures reliability and scalability, freeing developers to focus on building great applications.
5 changes: 5 additions & 0 deletions build/custom-frontmatter/topics/history.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Custom front matter
aliases = [
"/docs/topics/history/",
"/about/"
]
2 changes: 2 additions & 0 deletions build/init-commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ for fname in $(find $1 -maxdepth 1 -iname "*.md")
do
base=${fname##*/}
command=${base%.*}
command_upper=$(awk '{ print toupper($0) }' <<< $command)
if [[ "$command" != "index" ]]; then
cat << EOF > "./content/commands/$command.md"
+++
# This is a generated stub file.
# To edit the command description see /commands/$command.md in the 'valkey-doc' repo
# The command metadata is generated from /src/$command.json in the 'valkey' repo
aliases = ["/commands/$command_upper/"]
+++
EOF
fi
Expand Down
9 changes: 8 additions & 1 deletion build/init-topics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,22 @@ for fname in $(find $1 -maxdepth 1 -iname "*.md")
do
base=${fname##*/}
topic=${base%.*}

if [[ "$topic" != "index" ]]; then
cat << EOF > "./content/topics/$topic.md"
if [ -f "./build/custom-frontmatter/topics/$topic.toml" ]; then
echo "+++" >> "./content/topics/$topic.md"
cat "./build/custom-frontmatter/topics/$topic.toml" >> "./content/topics/$topic.md"
echo "+++" >> "./content/topics/$topic.md"
else
cat << EOF > "./content/topics/$topic.md"
+++
# This is a generated stub file.
# To edit the content see /topic/$topic.md in the 'valkey-doc' repo
aliases = ["/docs/topics/$topic/"]
+++
EOF
fi
fi
done

echo "Topic stub files created at content/topics."
Expand Down
11 changes: 0 additions & 11 deletions content/about.md

This file was deleted.

4 changes: 2 additions & 2 deletions content/blog/2024-09-13-unlock-one-million-rps-part2.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ grep eth0 /proc/interrupts | awk '{print $1}' | cut -d : -f 1
```
In our setup, lines `48` to `55` are allocated for `eth0` interrupts. Allocate one core per 4 IRQ lines:
```bash
for i in {48..50}; do echo 1000 > /proc/irq/$i/smp_affinity; done
for i in {51..55}; do echo 2000 > /proc/irq/$i/smp_affinity; done
for i in {48..51}; do echo 1000 > /proc/irq/$i/smp_affinity; done
for i in {52..55}; do echo 2000 > /proc/irq/$i/smp_affinity; done
```
Server configuration - launch the Valkey server with these minimal configurations:
```bash
Expand Down
2 changes: 1 addition & 1 deletion content/blog/2024-11-21-testing-the-limits/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "Pushing the limits of Valkey on a Raspberry Pi"
description = "While most people won't go to prodcution on a Raspberry Pi we'll cover how to thoroughly performance test Valkey to understand how it works in production."
description = "While most people won't go to production on a Raspberry Pi, we'll cover how to thoroughly performance test Valkey to understand how it works in production."
date= 2024-11-21 01:01:01
authors= ["dtaivpp"]
+++
Expand Down
8 changes: 8 additions & 0 deletions content/participants.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
template: participants.html
title: Participate with Valkey
---

# Valkey Participants

The Valkey project participants are a diverse group of organizations that have come together to maintain and contribute to the project. Valkey participants are more than vendors, they are dedicated to continuously strengthening the long-term health and viability of this project so that everyone can benefit from it. Since its inception Valkey has enjoyed steady adoption demonstrating the industry's desire for an open, community-driven database solution. We look forward to seeing our list of participants grow as more companies work on our project.
68 changes: 68 additions & 0 deletions sass/_valkey.scss
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,74 @@ aside {
}
}

.participants-container {
@include sans-serif;
background-color: #4CAF50; /* Green background */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 4px;
}

#participants-buttons {
display: inline-block;
vertical-align: middle;

:after {
content: 'Become a participant';
display: block;
clear: both;
}

> div {
position: relative;
height: 24px;
width: 164px;
float: left;
text-align: center;

> svg {
height: 16px;
fill: $background-darkest;
margin-top: 10px;
}
}
> div:hover {
cursor: pointer;
}
> div.new-participants:hover > svg {fill: #3B5998;}
> div.new-participants > svg {
height: 18px;
margin-top: 9px;
}
}
.width-limiter .participant-list > div {
margin-top: 1em;
border: none;
border-top: 1px solid $text-light;
padding-top: 1em;
h3 {
margin-bottom: 0;
}
h3 + p {
margin-top: 0;
}
.logo {
display: block;
width: 50%;
img{
width: auto;
max-width: 100%;
}
}
}

.author-social-media {
ul {
list-style-type: none;
Expand Down
1 change: 1 addition & 0 deletions static/img/percona.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/upcloud.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions templates/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@
<div class="has-submenu">
<span>Community</span>
<div class="submenu">
<a role="menuitem" target="_blank" href="https://github.com/orgs/valkey-io/discussions">Forum</a>
<a role="menuitem" href="/connect/">Connect</a>
<a role="menuitem" href="/blog/">Blog</a>
<a role="menuitem" href="https://github.com/orgs/valkey-io/discussions">Forum</a>
<a role="menuitem" href="/participants/">Participants</a>
</div>
</div>
</nav>
Expand Down
6 changes: 6 additions & 0 deletions templates/includes/participants-buttons.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{# adapted to Zola #}
{% set pageurl = page.permalink | urlencode%}
<div class="participants-container"><div id="participants-buttons">
<div class="new-participants" title="become a new participant" onclick="window.open('https://github.com/valkey-io/valkey-io.github.io/issues/new?assignees=&labels=participant%2C+untriaged&projects=&template=add_participant_form_template.md&title=%5BPARTICIPANT%5D');"></div>
</div>
</div>
25 changes: 25 additions & 0 deletions templates/participants.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{% extends "right-aside.html" %}
{% block subhead_content%}
{% endblock subhead_content%}

{% block main_content %}
{{ page.content | safe }}

{% include "includes/participants-buttons.html" %}

{% set participants = load_data(path="/_data/participants.yml") %}
<div class="participant-list">
{% for participant in participants %}
<div class="participant-{{participant.name | lower() }}">
<a href="{{participant.link}}" class="logo">
<img src="{{participant.image.path}}" alt="{{participant.image.alt}}" />
</a>
<h3>Valkey offering:</h3>
{{ participant.offering | markdown | safe }}
<h3>About the company:</h3>
{{ participant.company | markdown | safe }}

</div>
{% endfor %}
</div>
{% endblock main_content %}

0 comments on commit 77ea0a1

Please sign in to comment.