Skip to content

Website #2247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open

Website #2247

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
5927a78
Remove Oranda
mo8it May 16, 2025
08548ab
Remove .editorconfig
mo8it May 16, 2025
a28000a
Remove markdown lint
mo8it May 16, 2025
74ab992
Start with Zola
mo8it May 16, 2025
7ec6986
Add templates
mo8it May 16, 2025
fda18e8
Add Ferris SVGs
mo8it May 17, 2025
61c17cb
Change syntax highlighting theme
mo8it May 17, 2025
7e26418
Remove the third-party exercises file
mo8it May 17, 2025
b9d1e63
Reduce the README to the website link
mo8it May 17, 2025
6d5369d
Add more menu and footer items
mo8it May 17, 2025
2673177
Update header and footer
mo8it May 17, 2025
3d8bef4
Remove landscape mode recommendation
mo8it May 17, 2025
b30973a
Compress the intro
mo8it May 17, 2025
f387f4c
Add setup and usage pages
mo8it May 17, 2025
69fe962
Update base URL
mo8it May 17, 2025
23b9aa3
Move Q/A menu item
mo8it May 17, 2025
8339007
Update setup and usage
mo8it May 17, 2025
984e9fe
Merge branch 'main'
mo8it May 17, 2025
b4a6b87
Less padding
mo8it May 17, 2025
2f70099
Remove macros
mo8it May 17, 2025
8fa598a
Add details shortcode
mo8it May 17, 2025
5fc787f
Style details body
mo8it May 17, 2025
dc46888
Highlight platform
mo8it May 17, 2025
8c24763
Q/A -> Q&A
mo8it May 17, 2025
f6a657a
Finish the usage page
mo8it May 17, 2025
a51d6f1
third-party/custom -> community
mo8it May 17, 2025
54a74fd
Use internal links for validation
mo8it May 17, 2025
69a9e9c
Less top margin for blockquotes
mo8it May 17, 2025
512ded8
Done community exercises page
mo8it May 17, 2025
596e7f3
Add website CI
mo8it May 17, 2025
47e490a
Run rustywind
mo8it May 17, 2025
edc8528
Improve CI
mo8it May 19, 2025
04520ae
Use the website link as header
mo8it May 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .editorconfig

This file was deleted.

16 changes: 10 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name: Rustlings Tests
name: Check

on:
push:
branches: [main]
paths-ignore:
- website
- '*.md'
pull_request:
branches: [main]
paths-ignore:
- website
- '*.md'

env:
CARGO_TERM_COLOR: always
Expand All @@ -14,14 +20,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo clippy -- --deny warnings
- name: Clippy
run: cargo clippy -- --deny warnings
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v16
with:
globs: "exercises/**/*.md"
- name: rustfmt
run: cargo fmt --all --check
test:
Expand All @@ -40,4 +44,4 @@ jobs:
- uses: actions/checkout@v4
- uses: swatinem/rust-cache@v2
- name: rustlings dev check
run: cargo run -- dev check --require-solutions
run: cargo dev check --require-solutions
87 changes: 0 additions & 87 deletions .github/workflows/web.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Website

on:
push:
branches: [main]
paths: [website]

jobs:
build:
defaults:
run:
working-directory: website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install TailwindCSS
run: npm install
- name: Build CSS
run: npx @tailwindcss/cli -m -i input.css -o static/main.css
- name: Download Zola
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
- name: Build site
run: ./zola build
- name: Upload static files as artifact
uses: actions/upload-pages-artifact@v3
with:
path: public/

deploy:
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ Cargo.lock
# State file
.rustlings-state.txt

# oranda
public/
.netlify

# OS
.DS_Store
.direnv/
Expand Down
2 changes: 0 additions & 2 deletions .markdownlint.yml

This file was deleted.

Loading
Loading