Skip to content

Conversation

@UlrichB22
Copy link

Related to moinwiki/moin#2122

Some new styles have been added since version 2.9.0.

Style stata.css has been renamed to stata-light.css because a new stata-dark.css has been added.

Regenerated css files using a script like this (no warrenty):

#!/usr/bin/bash

PYGMENTS_VERSION="2.19.2"
VENV=".venv-pygments"
OUTDIR="css_all"

echo "Creating virtual environment: $VENV ..."
python3 -m venv "$VENV"

echo "Installing Pygments $PYGMENTS_VERSION"
"$VENV/bin/pip" install --quiet "pygments==$PYGMENTS_VERSION"

PYGMENTIZE="$VENV/bin/pygmentize"
echo "Version: $($PYGMENTIZE -V)"

mkdir -p "$OUTDIR"

for style in $(pygmentize -L styles | grep -e '^*' |  awk '{print $2}' | sed 's/://')
    do
    echo "Regenerating $style.css ..."
    "$PYGMENTIZE" -S "$style" -f html > $OUTDIR/$style.css
done

Still need to be tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant