diff --git a/.gitignore b/.gitignore index 474022f..e4bf5d5 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ all_chars.txt **/fonts/**/*-Subset.* woff2/ **/serve_* +/lexers.out diff --git a/acl.cool/lexers.out b/acl.cool/lexers.out new file mode 120000 index 0000000..1dfca52 --- /dev/null +++ b/acl.cool/lexers.out @@ -0,0 +1 @@ +../lexers.out \ No newline at end of file diff --git a/build.sh b/build.sh index f1b9caf..f479058 100755 --- a/build.sh +++ b/build.sh @@ -18,6 +18,11 @@ function soup_config { source ./pgvv/bin/activate +if ! [[ -f lexers.out ]] || [[ "$(head -1 lexers.out)" != "$(pygmentize -V)" ]]; then + pygmentize -L lexer >lexers.out + echo "Created pygments lexer cache at lexers.out" +fi + find acl.cool/site/ ytheleus.org/site/ -type f \( -name '*.dj' -o -name '*.html' \) -exec cat {} + >all_chars.txt cat common_chars.txt >>all_chars.txt diff --git a/soupault.toml b/soupault.toml index 81551f0..100a915 100644 --- a/soupault.toml +++ b/soupault.toml @@ -6,9 +6,6 @@ # Trying to process this config with an older version will result in an error message soupault_version = "4.11.0" -# Stop on page processing errors? -strict = true - # Display progress? verbose = true @@ -29,7 +26,7 @@ build_dir = "serve" # # Note that for formats other than HTML, you need to specify an external program # for converting them to HTML (see below). -page_file_extensions = ["htm", "html", "md", "rst", "adoc", "dj"] +page_file_extensions = ["html", "dj"] # By default, soupault uses "clean URLs", # that is, $site_dir/page.html is converted to $build_dir/page/index.html diff --git a/syntax_wrapper.sh b/syntax_wrapper.sh index a74245c..879ba4d 100755 --- a/syntax_wrapper.sh +++ b/syntax_wrapper.sh @@ -1,6 +1,6 @@ #! /usr/bin/env sh -if [ $# -lt 1 ] || ! pygmentize -L lexers | grep -qw "$1"; then +if [ $# -lt 1 ] || ! grep -qw "$1" lexers.out; then recode utf8..html else pygmentize -l $1 -f html | head -c -13 | awk -F '
' '{print $NF}'
diff --git a/ytheleus.org/lexers.out b/ytheleus.org/lexers.out
new file mode 120000
index 0000000..1dfca52
--- /dev/null
+++ b/ytheleus.org/lexers.out
@@ -0,0 +1 @@
+../lexers.out
\ No newline at end of file