local highlighter
This commit is contained in:
parent
b9df659e5d
commit
8c5b42a1b1
3 changed files with 11 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
**/serve/
|
**/serve/
|
||||||
**/soupault.toml
|
**/soupault.toml
|
||||||
css/code.css
|
css/code.css
|
||||||
|
pgvv/
|
||||||
|
|
6
build.sh
6
build.sh
|
@ -8,16 +8,18 @@ function soup_config {
|
||||||
cat soupault.toml.frag* >> soupault.toml
|
cat soupault.toml.frag* >> soupault.toml
|
||||||
}
|
}
|
||||||
|
|
||||||
|
source ./pgvv/bin/activate
|
||||||
|
|
||||||
rm css/code.css
|
rm css/code.css
|
||||||
pygmentize -f html -S algol_nu | grep -v 'line-height' > css/code.css
|
pygmentize -f html -S algol_nu | grep -v 'line-height' > css/code.css
|
||||||
|
|
||||||
builtin pushd acl.cool
|
builtin pushd acl.cool
|
||||||
#rm -rf serve/
|
|
||||||
soup_config
|
soup_config
|
||||||
soupault
|
soupault
|
||||||
popd
|
popd
|
||||||
builtin pushd ytheleus.org
|
builtin pushd ytheleus.org
|
||||||
#rm -rf serve/
|
|
||||||
soup_config
|
soup_config
|
||||||
soupault
|
soupault
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
deactivate
|
||||||
|
|
12
deps.sh
12
deps.sh
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
which dnf 2> /dev/null
|
if ! [[ -d pgvv/ ]]; then
|
||||||
if [[ $? == 0 ]]; then
|
python3 -m venv pgvv
|
||||||
sudo dnf install -y python3-pygments
|
source ./pgvv/bin/activate
|
||||||
else
|
python3 -m pip install --upgrade pip
|
||||||
echo 'failed to install pygments with dnf' >&2
|
pip install --upgrade pygments
|
||||||
exit 1
|
deactivate
|
||||||
fi
|
fi
|
||||||
|
|
||||||
which opam 2> /dev/null
|
which opam 2> /dev/null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue