Skip to content

Commit

Permalink
Update mdbook-catppuccin, lock mdbook dependencies (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechStep authored Oct 8, 2023
1 parent 9d15032 commit 9494dbe
Show file tree
Hide file tree
Showing 8 changed files with 1,171 additions and 762 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ pre-commit:
@make check

install-website-dev:
@cargo install mdbook
@cargo install mdbook-linkcheck
@cargo install mdbook-katex
@cargo install mdbook-pagetoc
@cargo install mdbook-catppuccin
@cargo install mdbook@0.4.34
@cargo install mdbook-linkcheck@0.7.7
@cargo install mdbook-katex@0.5.7
@cargo install mdbook-pagetoc@0.1.7
@cargo install mdbook-catppuccin@1.2.0

.PHONY: unused-imports
unused-imports:
Expand Down
4 changes: 2 additions & 2 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ inline-delimiter = {left = "$", right = "$"}
macros = "website/latex-macros.txt"

[preprocessor.catppuccin]
assets_version = "0.2.1" # DO NOT EDIT: Managed by `mdbook-catppuccin install`
assets_version = "1.2.0" # DO NOT EDIT: Managed by `mdbook-catppuccin install`

[preprocessor.git-metadata]
command = "python3 ./scripts/preprocessor_git_metadata.py"
Expand Down Expand Up @@ -57,7 +57,7 @@ additional-css = [
"website/css/Agda-highlight.css",
"website/css/agda-logo.css",
"theme/catppuccin.css",
"theme/catppuccin-highlight.css",
"theme/catppuccin-admonish.css",
"theme/pagetoc.css",
]
additional-js = [
Expand Down
148 changes: 7 additions & 141 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
mdbook-catppuccin = {
url = "github:catppuccin/mdBook";
url = "github:catppuccin/mdBook/v1.2.0";
inputs.nixpkgs.follows = "nixpkgs";
};
};
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate_agda_css.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

# In mdbook-catppuccin this is merged to catppuccin.css, so we'll need
# to update this script accordingly
CATPPUCCIN_HIGHLIGHT_FILE = 'theme/catppuccin-highlight.css'
CATPPUCCIN_HIGHLIGHT_FILE = 'theme/catppuccin.css'
AGDA_HIGHLIGHT_FILE = 'website/css/Agda-highlight.css'

# First group -> theme name
# Second group -> token class
SELECTOR_HLJS_REGEX = re.compile(r'^\.(\w+) code \.hljs-(.+?) {')
SELECTOR_HLJS_REGEX = re.compile(r'^\.(\w+) \.hljs-(.+?) {')

# First group -> theme name
SELECTOR_CODE_REGEX = re.compile(r'^\.(\w+) code {')
Expand Down
Loading

0 comments on commit 9494dbe

Please sign in to comment.