Skip to content

Commit 6672a0d

Browse files
committed
refactor: migrate components to TypeScript, remove unused Docusaurus assets and blog configuration, and add new design file.
1 parent e5345c8 commit 6672a0d

16 files changed

Lines changed: 133 additions & 531 deletions

File tree

.gitignore

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,41 @@
11
# macOS
22
.DS_Store
3+
.AppleDouble
4+
.LSOverride
35

46
# Windows
57
Thumbs.db
8+
ehthumbs.db
9+
Desktop.ini
610

711
# Docusaurus
812
.docusaurus
9-
node_modules
13+
node_modules/
14+
build/
15+
.cache/
1016

1117
# IDE
1218
.idea
19+
.vscode/
20+
*.swp
21+
*.swo
22+
*~
23+
24+
# Logs
25+
npm-debug.log*
26+
yarn-debug.log*
27+
yarn-error.log*
28+
lerna-debug.log*
29+
30+
# Environment
31+
.env
32+
.env.local
33+
.env.development.local
34+
.env.test.local
35+
.env.production.local
36+
37+
# Testing
38+
coverage/
39+
40+
# Misc
41+
*.log

blog/authors.yml

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

blog/tags.yml

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

docusaurus.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ const config: Config = {
138138
{
139139
title: 'More',
140140
items: [
141-
/* {
142-
label: 'Blog',
143-
to: '/blog',
144-
},*/
145141
{
146142
label: 'GitHub',
147143
href: 'https://github.com/marcofarina/',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "python-doesnt-byte",
3-
"version": "0.0.0",
3+
"version": "0.1.0",
44
"private": true,
55
"scripts": {
66
"docusaurus": "docusaurus",
@@ -63,6 +63,6 @@
6363
]
6464
},
6565
"engines": {
66-
"node": ">=18.0"
66+
"node": ">=20.0"
6767
}
6868
}

src/components/Chapters/Section/index.js

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React from 'react';
2+
3+
import styles from './styles.module.css';
4+
5+
interface SectionProps {
6+
children: React.ReactNode;
7+
}
8+
9+
function Section({ children }: SectionProps) {
10+
return (
11+
<div className={styles.wrapper}>
12+
<div className={styles.container}>{children}</div>
13+
</div>
14+
);
15+
}
16+
17+
export default Section;

src/components/Chapters/SectionTitle/index.js

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import Heading from '@theme/Heading';
2+
3+
import styles from './styles.module.css';
4+
5+
interface SectionTitleProps {
6+
title: string;
7+
description: React.ReactNode;
8+
}
9+
10+
function SectionTitle({ title, description }: SectionTitleProps) {
11+
return (
12+
<div className={styles.container}>
13+
<Heading as="h1" className={styles.title}>
14+
{title}
15+
</Heading>
16+
<Heading as="h3" className={styles.description}>
17+
{description}
18+
</Heading>
19+
</div>
20+
);
21+
}
22+
23+
export default SectionTitle;

0 commit comments

Comments
 (0)