Skip to content

Commit af202da

Browse files
DaanHooglandDaan Hoogland
andauthored
add separate VP component to update VP id and their social links (#370)
Co-authored-by: Daan Hoogland <dahn@apache.org>
1 parent 4bd0973 commit af202da

5 files changed

Lines changed: 67 additions & 20 deletions

File tree

blog/2024-10-25-ccc-agenda/index.md~

Lines changed: 0 additions & 15 deletions
This file was deleted.

source/generate_who.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def generate_markdown(pmc_members, committers):
8484
pmc_members.sort(key=lambda x: locale.strxfrm(x[0].lower()))
8585
committers.sort(key=lambda x: locale.strxfrm(x[0].lower()))
8686
repo_path = get_repo_path()
87-
with open(repo_path + "/src/pages/who.md", "w", encoding="utf-8") as f:
87+
with open(repo_path + "/src/pages/who.mdx", "w", encoding="utf-8") as f:
8888
f.write("""---
8989
title: Apache CloudStack Project Membership
9090
---
@@ -95,10 +95,13 @@ def generate_markdown(pmc_members, committers):
9595
9696
Board Minutes: https://whimsy.apache.org/board/minutes/CloudStack.html
9797
98-
""")
98+
````mdx-code-block
99+
import VP from "@site/src/components/VP";
100+
101+
<VP/>
102+
````
99103
100-
pmc_chair = "Nicolás Vázquez (nvazquez)"
101-
f.write(f"**PMC Chair**: {pmc_chair}\n\n")
104+
""")
102105

103106
f.write("The following data is subject to change. The up-to-date information can be found on <a href=\"http://people.apache.org/committers-by-project.html#cloudstack-pmc\">the Apache Peoples site</a>:\n\n")
104107

src/components/VP/index.tsx

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import React from "react";
2+
3+
const pmc_chair_quote = `"Earlier this year, I was selected by my fellow PMC members as the project’s VP. The main role of the VP is to report
4+
quarterly to the Apache Software Foundation Board,
5+
representing CloudStack and providing updates on the health
6+
and status of the project. I am grateful for the opportunity
7+
to serve as the CloudStack VP and to work with amazing people
8+
from the community to continue making CloudStack an even
9+
greater cloud orchestration platform!"`
10+
11+
const pmc_chair_name = "Nicolás Vázquez"
12+
const pmc_chair_picture = "/img/authors/nicolas.png"
13+
const pmc_chair_githandle = "nvazquez"
14+
const pmc_chair_linked = "nvazquezuy"
15+
16+
const git_link = "https://github.com/"+pmc_chair_githandle
17+
const linked_link = "https://www.linkedin.com/in/"+pmc_chair_linked
18+
19+
export default function VP(): JSX.Element {
20+
return <>
21+
<div className="row">
22+
<div className="col col--3">
23+
24+
<img src={pmc_chair_picture} alt={pmc_chair_name} className="blog-image"/>
25+
26+
</div>
27+
<div className="col col--9">
28+
29+
<div className="row">
30+
<div className="col">
31+
<p>
32+
PMC Chair: <b>{pmc_chair_name}</b>
33+
</p>
34+
</div>
35+
<div className="col col--2">
36+
<p>
37+
<a href={git_link} target="_blank">
38+
<img src="/img/git_logo.svg" width="20px" alt=""/>
39+
</a>
40+
&nbsp;&nbsp;
41+
<a href={linked_link} target="_blank">
42+
<img src="/img/social/LinkedIn-Blue.png" width="20px" alt=""/>
43+
</a>
44+
</p>
45+
</div>
46+
</div>
47+
<p>
48+
49+
{pmc_chair_quote}
50+
51+
</p>
52+
</div>
53+
</div>
54+
</>
55+
}

src/pages/who.md renamed to src/pages/who.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ PMC Information: https://projects.apache.org/committee.html?cloudstack
88

99
Board Minutes: https://whimsy.apache.org/board/minutes/CloudStack.html
1010

11-
**PMC Chair**: Nicolás Vázquez (nvazquez)
11+
````mdx-code-block
12+
import VP from "@site/src/components/VP";
13+
14+
<VP/>
15+
````
1216

1317
The following data is subject to change. The up-to-date information can be found on <a href="http://people.apache.org/committers-by-project.html#cloudstack-pmc">the Apache Peoples site</a>:
1418

3.75 KB
Loading

0 commit comments

Comments
 (0)