Skip to content

Commit f8098b8

Browse files
committed
Add Code of Conduct
1 parent 250c47e commit f8098b8

File tree

4 files changed

+206
-3
lines changed

4 files changed

+206
-3
lines changed

config.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ highlight_code = true
2727

2828
zulma_brand = {image = "https://raw.githubusercontent.com/wot-rust/media/master/svg/logo.svg", text = "Home"}
2929
zulma_menu = [
30-
{url = "$BASE_URL/categories", name = "Categories"},
31-
{url = "$BASE_URL/tags", name = "Tags"},
32-
{url = "$BASE_URL/authors", name = "Authors"}
30+
{url = "https://github.com/wot-rust", name = "Github"},
31+
{url = "$BASE_URL/coc", name = "Code of Conduct"},
3332
]

content/CoC/index.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
+++
2+
title = "Code Of Conduct"
3+
weight = 99
4+
+++
5+
6+
# Scope
7+
8+
## Joining and participation agreement
9+
10+
This document describes wot-rust's Code of Conduct for public communication mediums, who shall enforce said Code of Conduct, the action taken should the Code of Conduct be broken, as well as the method for appeals. Questions about this document and its contents can be directed to the [org issue tracker](https://github.com/wot-rust/wot-rust.github.io/issues).
11+
12+
This document is based on the [Gentoo Code of Conduct](https://wiki.gentoo.org/wiki/Project:Council/Code_of_conduct)
13+
14+
> **Important**:
15+
> By joining and/or participating in the wot-rust community, you are stating that you accept and agree to adhere to the rules listed below, even if you do not explicitly state so.
16+
17+
## Behaviour and consequences
18+
19+
### Acceptable behaviour
20+
21+
Things that should be seen:
22+
23+
- **Be courteous**. Though respect is earned, it must start somewhere. Respect someones right for their own opinion and acknowledge that they do deserve a measure of politeness in your response.
24+
- **Give accurate information** in the spirit of being helpful.
25+
- **Respectfully** disagree with or challenge other members. The operative word here is respectfully.
26+
- **Use the correct forum and stay in-topic**, use [the forum](https://github.com/wot-rust/wot/discussions) for brainstorming and not the issue tracker.
27+
- **Admit the possibility of fault** and respect different point of views. **Noone is perfect** – you will get things wrong occasionally. Don't be afraid to admit this. Similarly, while something may seem perfectly obvious to you, others may see it differently.
28+
- If you screw up, **take responsibility** for your actions.
29+
30+
### Unacceptable behaviour
31+
32+
wot-rust developers have come together with a common purpose, to further the project. Conflicts will undoubtedly arise, and though you are encouraged to work through issues on your own, assistance is available as requested and as needed.
33+
34+
Deciding to suspend or ban someone isn't a decision to be taken lightly, but sometimes it has to happen. Below is a list of things that could result in disciplinary action.
35+
36+
- **Flaming and trolling.** What is trolling? You are deemed to be trolling if you make comments intended to provoke an angry response from others. What is flaming? Flaming is the act of sending or posting messages that are deliberately hostile and insulting.
37+
- **Posting/participating only to incite drama** or negativity rather than to tactfully share information.
38+
- **Being judgmental, mean-spirited or insulting.** It is possible to respectfully challenge someone in a way that empowers without being judgemental.
39+
- **Constantly purveying misinformation** despite repeated warnings.
40+
- **Being blatantly off-topic**, the issue trackers are only for technical discussion, the irc channel is more relaxed but if somebody ask you to not discuss non-tecnical issues you feel strong about, please stop.
41+
42+
The code, issue tracker and irc channel has **no room** for any divisive non-technical topics, e.g: **any derogatory statement** on race, gender, sexual orientation, personal or political values is prohibited.
43+
44+
### Consequences
45+
46+
Long-term disciplinary action will be up to the discretion of the project maintainers (currently [@lu-zero](https://github.com/lu-zero) and [@dodomorandi](https://github.com/dodomorandi)), temporary disciplinary action will be up to the discretion of the channel moderators (e.g. irc op).
47+
48+
If you perceive a breach of the Code of Conduct guidelines, let the appropriate people know.
49+
50+
Please make an effort to just make the people involved aware of that first and do not further engage in discussion if the other party does not recognize the breach.
51+
52+
Repeated breaches will result in the temporal or permanent removal from the community communication media of the people involved.
53+
54+
## Summary
55+
56+
If you are unsure whether or not something is OK to post/comment/etc, assume it isn't, and reconsider whether you need to post it. Remember that posts made to the issue tracker and pull requests might be archived for perpetuity, and read by far more people than will be actively involved in any one thread. A comment made in anger can have far-reaching consequences that you might not have thought about at the time.

content/_index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
+++
2+
sort_by = "date"
3+
+++

templates/post_macros.html

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
{% macro read_time(page) %}
2+
<svg class="i-clock" viewBox="0 0 32 32" width="16" height="16" fill="none" stroke="currentcolor" stroke-linecap="round"
3+
stroke-linejoin="round" stroke-width="6.25%">
4+
<circle cx="16" cy="16" r="14" />
5+
<path d="M16 8 L16 16 20 20" />
6+
</svg>
7+
<span>&nbsp;{{ page.reading_time }} minute read</span>
8+
{% endmacro read_time %}
9+
10+
{% macro article_header(page) %}
11+
<header>
12+
<div class="has-text-centered">
13+
<a href="{{ page.permalink | safe }}">
14+
<p class="title article-title">{{ page.title }}
15+
</p>
16+
</a>
17+
<div class="tags has-addons level-item">
18+
{% if page.date %}
19+
<span class="tag is-rounded">{{ page.date | date(format="%F") }}</span>
20+
{% endif %}
21+
{% if page.taxonomies.authors %}
22+
<span class="tag is-rounded is-primary">
23+
{% for author in page.taxonomies.authors %}
24+
{{ author }}
25+
{% if page.taxonomies.authors | length > 1 %}
26+
{% if loop.index != page.taxonomies.authors | length %}
27+
{% if loop.index == page.taxonomies.authors | length - 1 %}
28+
and
29+
{% else %}
30+
,
31+
{% endif %}
32+
{% endif %}
33+
{% endif %}
34+
{% endfor %}
35+
</span>
36+
{% endif %}
37+
<span class="tag is-rounded">{{ self::read_time(page=page) }}</span>
38+
</div>
39+
</div>
40+
</header>
41+
{% endmacro article_header %}
42+
43+
{% macro page_in_list(page) %}
44+
<article itemscope itemtype="http://schema.org/CreativeWork">
45+
<div class="card article">
46+
<div class="card-content">
47+
{{ self::article_header(page = page) }}
48+
{% if page.summary %}
49+
<div itemprop="summary" class="content article-body">
50+
{{ page.summary | safe }}
51+
<nav class="readmore">
52+
<a itemprop="url" href="{{ page.permalink | safe }}">Read
53+
More&nbsp;&raquo;
54+
</a>
55+
</nav>
56+
</div>
57+
{% endif %}
58+
</div>
59+
</div>
60+
</article>
61+
{% endmacro page_in_list %}
62+
63+
{% macro post_footer(page) %}
64+
<footer class="card-footer">
65+
<div class="article-footer">
66+
<div class="columns is-multiline">
67+
<div class="column is-12">
68+
<p>
69+
Published
70+
{{self::post_footer_date(page=page)}}
71+
{{self::post_footer_authors(page=page)}}
72+
{{self::post_footer_categories(page=page)}}
73+
{{self::post_footer_tags(page=page)}}
74+
</p>
75+
</div>
76+
<div class="column">
77+
<a class="button is-pulled-right is-info" href="/">Back Home</a>
78+
</div>
79+
</div>
80+
</div>
81+
</footer>
82+
{% endmacro post_footer %}
83+
84+
85+
{% macro post_footer_date(page) %}
86+
{% if page.date %}
87+
<time datetime="{{ page.date | date(format="%F") }}">
88+
{{ page.date | date(format="%F") }}
89+
</time>
90+
{% endif %}
91+
{% endmacro post_footer_date %}
92+
93+
94+
{% macro post_footer_authors(page) %}
95+
{% if page.taxonomies.authors %}
96+
by
97+
{% for author in page.taxonomies.authors %}
98+
<a href="{{ get_taxonomy_url(kind="authors", name=author) | safe }}">
99+
<span class="tag is-primary">{{ author }} </span>
100+
</a>
101+
{% if page.taxonomies.authors | length > 1 %}
102+
{% if loop.index != page.taxonomies.authors | length %}
103+
{% if loop.index == page.taxonomies.authors | length - 1 %}
104+
and
105+
{% else %}
106+
,
107+
{% endif %}
108+
{% endif %}
109+
{% endif %}
110+
{% endfor %}
111+
{% endif %}
112+
{% endmacro post_footer_authors %}
113+
114+
115+
{% macro post_footer_categories(page) %}
116+
{% if page.taxonomies.categories %}
117+
{% set category = page.taxonomies.categories[0] %}
118+
in <a href="{{ get_taxonomy_url(kind="categories", name=category) | safe }}">
119+
<span class="tag is-success">
120+
{{ category }}
121+
</span>
122+
</a>
123+
{% endif %}
124+
{% endmacro post_footer_date %}
125+
126+
127+
{% macro post_footer_tags(page) %}
128+
{% if page.taxonomies.tags %}
129+
and tagged
130+
{% for tag in page.taxonomies.tags %}
131+
<a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">
132+
<span class="tag is-link">{{ tag }} </span>
133+
</a>
134+
{% if page.taxonomies.tags | length > 1 %}
135+
{% if loop.index != page.taxonomies.tags | length %}
136+
{% if loop.index == page.taxonomies.tags | length - 1 %}
137+
and
138+
{% else %}
139+
,
140+
{% endif %}
141+
{% endif %}
142+
{% endif %}
143+
{% endfor %}
144+
{% endif %}
145+
{% endmacro post_footer_tags %}

0 commit comments

Comments
 (0)