Skip to content

Commit 74ab992

Browse files
committed
Start with Zola
1 parent a28000a commit 74ab992

File tree

5 files changed

+93
-0
lines changed

5 files changed

+93
-0
lines changed

website/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/node_modules/
2+
/package-lock.json
3+
4+
/public/
5+
6+
/static/main.css
7+
/static/processed_images/

website/config.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
base_url = "https://rust-lang.github.io/rustlings"
2+
title = "Rustlings"
3+
description = "Small exercises to get you used to reading and writing Rust code!"
4+
5+
compile_sass = false
6+
build_search_index = false
7+
8+
[markdown]
9+
highlight_code = true
10+
11+
[[extra.menu_items]]
12+
name = "Home"
13+
url = "/"
14+
[[extra.menu_items]]
15+
name = "Custom Exercises"
16+
url = "/custom-exercises"
17+
18+
[[extra.footer_items]]
19+
name = "Repository"
20+
url = "https://github.com/rust-lang/rustlings"

website/input.css

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
@import 'tailwindcss';
2+
3+
@layer base {
4+
h1 {
5+
@apply text-4xl mt-3 mb-3 text-gray-50 font-bold;
6+
}
7+
h2 {
8+
@apply text-3xl mt-4 mb-1.5 text-gray-50 font-bold;
9+
}
10+
h3 {
11+
@apply text-2xl mt-5 mb-1.5 text-gray-50 font-bold;
12+
}
13+
h4 {
14+
@apply text-xl mt-6 mb-1.5 text-gray-50 font-bold;
15+
}
16+
p {
17+
@apply mb-2;
18+
}
19+
a {
20+
@apply text-[#F74C00] underline hover:decoration-orange-400 transition duration-300;
21+
}
22+
ul {
23+
@apply mt-2 mb-3 ml-1 list-disc list-inside marker:text-sky-600;
24+
}
25+
ol {
26+
@apply mt-2 mb-3 ml-1 list-decimal list-inside marker:text-sky-500;
27+
}
28+
li {
29+
@apply my-0.5;
30+
}
31+
code {
32+
@apply bg-white/10 px-1 pb-px pt-1 rounded-md;
33+
}
34+
pre code {
35+
@apply bg-inherit p-0 text-inherit;
36+
}
37+
hr {
38+
@apply my-5 rounded-full;
39+
}
40+
img {
41+
@apply max-w-full w-full h-full mx-auto my-5 object-contain md:w-3/4 lg:w-3/5 rounded-sm shadow-sm;
42+
}
43+
blockquote {
44+
@apply p-4 my-3 border-s-4 border-gray-300 bg-gray-800 italic;
45+
}
46+
47+
pre {
48+
@apply px-2 pt-2 pb-px overflow-x-auto text-sm sm:text-base rounded-sm mt-2 mb-4 after:content-[attr(data-lang)] after:text-[8px] after:opacity-40 selection:bg-gray-500/75;
49+
}
50+
pre code mark {
51+
@apply pb-0.5 pt-1 pr-px text-inherit rounded-xs;
52+
}
53+
}
54+

website/justfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
zola:
2+
zola serve --open
3+
4+
tailwind:
5+
fnm exec --using latest npx @tailwindcss/cli -i input.css -o static/main.css

website/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"devDependencies": {
3+
"rustywind": "^0.24",
4+
"tailwindcss": "^4.1",
5+
"@tailwindcss/cli": "^4.1"
6+
}
7+
}

0 commit comments

Comments
 (0)