Skip to content

Commit 2267f99

Browse files
authored
Merge pull request #2247 from rust-lang/website
Website
2 parents e36dd7a + bf74a3d commit 2267f99

33 files changed

+739
-439
lines changed

.editorconfig

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

.github/workflows/rust.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
name: Rustlings Tests
1+
name: Check
22

33
on:
44
push:
55
branches: [main]
6+
paths-ignore:
7+
- website
8+
- '*.md'
69
pull_request:
710
branches: [main]
11+
paths-ignore:
12+
- website
13+
- '*.md'
814

915
env:
1016
CARGO_TERM_COLOR: always
@@ -14,14 +20,12 @@ jobs:
1420
runs-on: ubuntu-latest
1521
steps:
1622
- uses: actions/checkout@v4
17-
- run: cargo clippy -- --deny warnings
23+
- name: Clippy
24+
run: cargo clippy -- --deny warnings
1825
fmt:
1926
runs-on: ubuntu-latest
2027
steps:
2128
- uses: actions/checkout@v4
22-
- uses: DavidAnson/markdownlint-cli2-action@v16
23-
with:
24-
globs: "exercises/**/*.md"
2529
- name: rustfmt
2630
run: cargo fmt --all --check
2731
test:
@@ -40,4 +44,4 @@ jobs:
4044
- uses: actions/checkout@v4
4145
- uses: swatinem/rust-cache@v2
4246
- name: rustlings dev check
43-
run: cargo run -- dev check --require-solutions
47+
run: cargo dev check --require-solutions

.github/workflows/web.yml

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

.github/workflows/website.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Website
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths: [website]
7+
8+
jobs:
9+
build:
10+
defaults:
11+
run:
12+
working-directory: website
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Install TailwindCSS
17+
run: npm install
18+
- name: Build CSS
19+
run: npx @tailwindcss/cli -m -i input.css -o static/main.css
20+
- name: Download Zola
21+
run: curl -fsSL https://github.com/getzola/zola/releases/download/v0.20.0/zola-v0.20.0-x86_64-unknown-linux-gnu.tar.gz | tar xz
22+
- name: Build site
23+
run: ./zola build
24+
- name: Upload static files as artifact
25+
uses: actions/upload-pages-artifact@v3
26+
with:
27+
path: public/
28+
29+
deploy:
30+
needs: build
31+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
32+
permissions:
33+
pages: write # to deploy to Pages
34+
id-token: write # to verify the deployment originates from an appropriate source
35+
# Deploy to the github-pages environment
36+
environment:
37+
name: github-pages
38+
url: ${{ steps.deployment.outputs.page_url }}
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Deploy to GitHub Pages
42+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ Cargo.lock
66
# State file
77
.rustlings-state.txt
88

9-
# oranda
10-
public/
11-
.netlify
12-
139
# OS
1410
.DS_Store
1511
.direnv/

.markdownlint.yml

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

0 commit comments

Comments
 (0)