updated demo

This commit is contained in:
Christopher Pickering 2022-12-16 09:22:11 -06:00
parent c20bb80bca
commit 2c9995cd78
No known key found for this signature in database
GPG key ID: E14DB3B0A0FACF84
10 changed files with 21 additions and 22 deletions

View file

@ -26,27 +26,6 @@ jobs:
- name: Setup Poetry
uses: snok/install-poetry@v1
- name: Update wheels in docs demo
run: |
# remove old wheels
rm -f docs/src/static/py/*
# build new wheels
poetry run pip wheel . -w docs/src/static/py
# rename wheels
cd docs/src/static/py
mv djlint* djlint-99-py3-none-any.whl
mv click* click-99-py3-none-any.whl
mv colorama* colorama-99-py3-none-any.whl
mv cssbeautifier* cssbeautifier-99-py3-none-any.whl
mv EditorConfig* EditorConfig-99-py3-none-any.whl
mv html_tag_names* html_tag_names-99-py3-none-any.whl
mv html_void_elements* html_void_elements-99-py3-none-any.whl
mv importlib_metadata* importlib_metadata-99-py3-none-any.whl
mv jsbeautifier* jsbeautifier-99-py3-none-any.whl
mv pathspec* pathspec-99-py3-none-any.whl
mv PyYAML* PyYAML-99-py3-none-any.whl
mv zipp* zipp-99-py3-none-any.whl
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3

View file

@ -6,7 +6,7 @@
"@semantic-release/changelog",
"@semantic-release/npm",
["@semantic-release/exec", {
"prepareCmd" : "poetry version ${nextRelease.version}"
"prepareCmd" : "poetry version ${nextRelease.version}; ./build_demo.sh"
}],
["@semantic-release/git", {
"assets": ["package.json", "pyproject.toml", "docs"]

18
build_demo.sh Executable file
View file

@ -0,0 +1,18 @@
# remove old wheels
rm -f docs/src/static/py/*
# build new wheels
poetry run pip wheel . -w docs/src/static/py
# rename wheels
cd docs/src/static/py
mv djlint* djlint-99-py3-none-any.whl
mv click* click-99-py3-none-any.whl
mv colorama* colorama-99-py3-none-any.whl
mv cssbeautifier* cssbeautifier-99-py3-none-any.whl
mv EditorConfig* EditorConfig-99-py3-none-any.whl
mv html_tag_names* html_tag_names-99-py3-none-any.whl
mv html_void_elements* html_void_elements-99-py3-none-any.whl
mv importlib_metadata* importlib_metadata-99-py3-none-any.whl
mv jsbeautifier* jsbeautifier-99-py3-none-any.whl
mv pathspec* pathspec-99-py3-none-any.whl
mv PyYAML* PyYAML-99-py3-none-any.whl
mv zipp* zipp-99-py3-none-any.whl

View file

@ -14,6 +14,8 @@ const i18n_func = require('eleventy-plugin-i18n/i18n.js');
const rollupper = require('./src/_utils/rollupper');
const { nodeResolve } = require('@rollup/plugin-node-resolve');
process.setMaxListeners(0);
const slugifyCustom = (s) =>
slugify(s, { lower: true, remove: /[*+~.()'"!:@]/g });