Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
- 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
run: curl -fsSL https://github.com/getzola/zola/releases/download/v0.22.1/zola-v0.22.1-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
uses: actions/upload-pages-artifact@v4
with:
path: website/public/

Expand Down
1 change: 0 additions & 1 deletion release-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
set -e

typos
cargo upgrades

# Similar to CI
cargo clippy -- --deny warnings
Expand Down
16 changes: 1 addition & 15 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::{
env::{self, consts::EXE_SUFFIX},
process::{Command, Stdio},
str::from_utf8,
};
Expand Down Expand Up @@ -40,20 +39,7 @@ impl<'a> Cmd<'a> {

#[track_caller]
fn assert(&self, success: bool) {
let rustlings_bin = {
let mut path = env::current_exe().unwrap();
// Pop test binary name
path.pop();
// Pop `/deps`
path.pop();

path.push("rustlings");
let mut path = path.into_os_string();
path.push(EXE_SUFFIX);
path
};

let mut cmd = Command::new(rustlings_bin);
let mut cmd = Command::new(env!("CARGO_BIN_EXE_rustlings"));

if let Some(current_dir) = self.current_dir {
cmd.current_dir(current_dir);
Expand Down
6 changes: 3 additions & 3 deletions website/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ compile_sass = false
build_search_index = false

[markdown]
highlight_code = true
highlight_theme = "dracula"

insert_anchor_links = "heading"

[markdown.highlighting]
theme = "dracula"

[extra]
logo_path = "images/happy_ferris.svg"

Expand Down
8 changes: 2 additions & 6 deletions website/input.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,10 @@
@apply md:w-3/4 lg:w-3/5;
}
blockquote {
@apply px-3 pt-2 pb-0.5 mb-4 mt-2 border-s-4 border-white/80 bg-white/7 rounded-sm;
@apply px-3 pt-2 pb-px mb-4 mt-2 border-s-4 border-white/80 bg-white/7 rounded-sm;
}

pre {
@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-white/15;
}
pre code mark {
@apply pb-0.5 pt-1 pr-px text-inherit rounded-xs;
@apply px-2 pt-2 pb-1.5 overflow-x-auto text-sm sm:text-base rounded-sm mt-2 mb-4 selection:bg-white/15;
}
}

2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"@tailwindcss/cli": "^4.1"
"@tailwindcss/cli": "^4"
}
}