Skip to content

Commit c3890df

Browse files
committed
additionalLanguages
1 parent 5176434 commit c3890df

File tree

2 files changed

+67
-30
lines changed

2 files changed

+67
-30
lines changed

docusaurus.config.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,11 +408,19 @@ const config = {
408408
},
409409
prism: {
410410
theme: prismThemes.github,
411-
// theme: prismThemes.dracula,
412-
// theme: prismThemes.vsDark,
413411
darkTheme: prismThemes.dracula,
414-
// darkTheme: prismThemes.github,
415-
additionalLanguages: ["powershell"],
412+
additionalLanguages: [
413+
'java',
414+
'latex',
415+
'haskell',
416+
'matlab',
417+
'PHp',
418+
'powershell',
419+
'bash',
420+
'diff',
421+
'json',
422+
'scss',
423+
],
416424
},
417425
docs: {
418426
sidebar: {

src/pages/code-of-conduct/index.tsx

Lines changed: 55 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,101 @@
1-
import React from 'react';
1+
import React, { ReactNode } from 'react';
22
import Layout from '@theme/Layout';
3-
import Link from "@docusaurus/Link";
3+
import Link from '@docusaurus/Link';
44

5-
const Section = ({ title, children }) => (
6-
<section>
5+
interface SectionProps {
6+
title: string;
7+
children: ReactNode;
8+
}
9+
10+
const Section = ({ title, children }: SectionProps) => (
11+
<section className="mb-6">
712
<h3 className="text-xl font-semibold mb-4">{title}</h3>
813
{children}
914
</section>
1015
);
1116

12-
const ListItem = ({ title, description }) => (
17+
interface ListItemProps {
18+
title: string;
19+
description: ReactNode;
20+
}
21+
22+
const ListItem = ({ title, description }: ListItemProps) => (
1323
<li className="mb-4">
14-
<strong>{title}</strong>
24+
<strong className="font-medium">{title}</strong>
1525
<p>{description}</p>
1626
</li>
1727
);
1828

1929
const LastUpdated = () => (
20-
<p><strong>Last Updated:</strong> 23rd May 2024</p>
30+
<p className="text-sm text-gray-600 dark:text-gray-500 mb-4">
31+
<strong>Last Updated:</strong> 23rd May 2024
32+
</p>
2133
);
2234

2335
const OurPledge = () => (
2436
<Section title="Our Pledge">
25-
<p>We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.</p>
26-
<p>We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.</p>
37+
<p className="mb-4">
38+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
39+
</p>
40+
<p>
41+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
42+
</p>
2743
</Section>
2844
);
2945

3046
const OurStandards = () => (
3147
<Section title="Our Standards">
32-
<p>Examples of behavior that contributes to a positive environment for our community include:</p>
48+
<p className="mb-4">Examples of behavior that contributes to a positive environment for our community include:</p>
3349
<ul className="list-disc list-inside mb-4">
3450
<li>Demonstrating empathy and kindness toward other people</li>
3551
<li>Being respectful of differing opinions, viewpoints, and experiences</li>
3652
<li>Giving and gracefully accepting constructive feedback</li>
3753
<li>Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience</li>
3854
<li>Focusing on what is best not just for us as individuals, but for the overall community</li>
3955
</ul>
40-
<p>Examples of unacceptable behavior include:</p>
56+
<p className="mb-4">Examples of unacceptable behavior include:</p>
4157
<ul className="list-disc list-inside mb-4">
4258
<li>The use of sexualized language or imagery, and sexual attention or advances of any kind</li>
4359
<li>Trolling, insulting or derogatory comments, and personal or political attacks</li>
4460
<li>Public or private harassment</li>
45-
<li>Publishing other&apos;s private information, such as a physical or email address, without their explicit permission</li>
61+
<li>Publishing others' private information, such as a physical or email address, without their explicit permission</li>
4662
<li>Other conduct which could reasonably be considered inappropriate in a professional setting</li>
4763
</ul>
4864
</Section>
4965
);
5066

5167
const EnforcementResponsibilities = () => (
5268
<Section title="Enforcement Responsibilities">
53-
<p>Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.</p>
54-
<p>Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.</p>
69+
<p className="mb-4">
70+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
71+
</p>
72+
<p>
73+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
74+
</p>
5575
</Section>
5676
);
5777

5878
const Scope = () => (
5979
<Section title="Scope">
60-
<p>This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.</p>
80+
<p>
81+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
82+
</p>
6183
</Section>
6284
);
6385

6486
const Enforcement = () => (
6587
<Section title="Enforcement">
66-
<p>Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at Email. All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the reporter of any incident.</p>
88+
<p>
89+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at Email. All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the reporter of any incident.
90+
</p>
6791
</Section>
6892
);
6993

7094
const EnforcementGuidelines = () => (
7195
<Section title="Enforcement Guidelines">
72-
<p>Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:</p>
96+
<p className="mb-4">
97+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
98+
</p>
7399
<ol className="list-decimal list-inside mb-4">
74100
<ListItem
75101
title="Correction"
@@ -87,7 +113,7 @@ const EnforcementGuidelines = () => (
87113
<>
88114
<strong>Community Impact:</strong> A violation through a single incident or series of actions.
89115
<br />
90-
<strong>Consequence:</strong> A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
116+
<strong>Consequence:</strong> A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period. Violating these terms may lead to a temporary or permanent ban.
91117
</>
92118
}
93119
/>
@@ -97,15 +123,15 @@ const EnforcementGuidelines = () => (
97123
<>
98124
<strong>Community Impact:</strong> A serious violation of community standards, including sustained inappropriate behavior.
99125
<br />
100-
<strong>Consequence:</strong> A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
126+
<strong>Consequence:</strong> A temporary ban from any interaction or public communication with the community for a specified period. Violating these terms may lead to a permanent ban.
101127
</>
102128
}
103129
/>
104130
<ListItem
105131
title="Permanent Ban"
106132
description={
107133
<>
108-
<strong>Community Impact:</strong> Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
134+
<strong>Community Impact:</strong> Demonstrating a pattern of violation of community standards, including harassment of an individual, or disparagement of groups.
109135
<br />
110136
<strong>Consequence:</strong> A permanent ban from any sort of public interaction within the community.
111137
</>
@@ -117,17 +143,20 @@ const EnforcementGuidelines = () => (
117143

118144
const Attribution = () => (
119145
<Section title="Attribution">
120-
<p>This Code of Conduct is adapted from the <Link to="https://www.contributor-covenant.org/" target="_blank" rel="noopener noreferrer">Contributor Covenant</Link>, version 2.0, available at <Link to="https://www.contributor-covenant.org/version/2/0/code_of_conduct/" target="_blank" rel="noopener noreferrer">https://www.contributor-covenant.org/version/2/0/code_of_conduct.html</Link>.</p>
121-
<p>Community Impact Guidelines were inspired by <Link to="https://github.com/mozilla/inclusion" target="_blank" rel="noopener noreferrer">Mozilla&apos;s code of conduct enforcement ladder</Link>.</p>
122-
<p>For answers to common questions about this code of conduct, see the FAQ at <Link to="https://www.contributor-covenant.org/faq/" target="_blank" rel="noopener noreferrer">https://www.contributor-covenant.org/faq/</Link>. Translations are available at <Link to="https://www.contributor-covenant.org/translations" target="_blank" rel="noopener noreferrer">https://www.contributor-covenant.org/translations</Link>.</p>
146+
<p className="mb-2">
147+
This Code of Conduct is adapted from the <Link to="https://www.contributor-covenant.org/" target="_blank" rel="noopener noreferrer">Contributor Covenant</Link>, version 2.0.
148+
</p>
149+
<p>
150+
For more details, visit <Link to="https://www.contributor-covenant.org/version/2/0/code_of_conduct/" target="_blank" rel="noopener noreferrer">here</Link>.
151+
</p>
123152
</Section>
124153
);
125154

126155
const CodeOfConduct = () => (
127156
<Layout>
128-
<div className="max-w-4xl mx-auto p-5 mt-5 mb-5 rounded-lg shadow-md">
157+
<div className="max-w-4xl mx-auto p-6 mt-5 mb-5 rounded-lg shadow-md">
129158
<h2 className="text-center text-2xl font-bold mb-5">Code Of Conduct</h2>
130-
<div className="mb-5">
159+
<div className="space-y-6">
131160
<LastUpdated />
132161
<OurPledge />
133162
<OurStandards />
@@ -141,4 +170,4 @@ const CodeOfConduct = () => (
141170
</Layout>
142171
);
143172

144-
export default CodeOfConduct;
173+
export default CodeOfConduct;

0 commit comments

Comments
 (0)