Compare commits

...

3 commits

Author SHA1 Message Date
Simon Vieille e22dd7e567
update changelog
Some checks failed
Build and release / build_release (push) Failing after 49s
ci/woodpecker/push/woodpecker Pipeline was successful
2024-01-16 21:29:34 +01:00
Simon Vieille 12b8a0af40
update changelog generator
add makefile task to generate makefile
2024-01-16 21:29:05 +01:00
Simon Vieille b88e4b5cc7 add actions 2024-01-16 21:26:39 +01:00
4 changed files with 60 additions and 14 deletions

View file

@ -0,0 +1,19 @@
name: Build and release
on: [push]
jobs:
build_release:
runs-on: ubuntu-latest
steps:
- uses: https://code.forgejo.org/actions/checkout@v3
- run: |
lsb_release -a
- run: |
pip install mkdocs-material
pip install mkdocs-table-reader-plugin
pip install mkdocs-git-revision-date-localized-plugin
pip install pillow cairosvg
pip install mkdocs-autolinks-plugin
pip install mkdocs-markdownextradata-plugin
pip install mkdocs_version_annotations
pip install mkdocs-enumerate-headings-plugin
pip install mkdocs-redirects

View file

@ -1,3 +1,6 @@
changelog:
./bin/changelog-generator -l debug -u https://gitnet.fr/deblan/side_menu/raw/branch/master/CHANGELOG.md > docs/changelog.md
serve:
docker run \
-it --rm \

View file

@ -32,29 +32,41 @@ on_interrupt() {
}
main() {
while getopts "hf:" option; do
CHANGELOG_FILE="${CHANGELOG_FILE:-}"
CHANGELOG_URL="${CHANGELOG_URL:-}"
LOG_VERBOSE="${CHANGELOG_FILE:-info}"
while getopts "l:hf:u:" option; do
case "${option}" in
h) help; exit 0;;
f) CHANGELOG_FILE="$OPTARG";;
u) CHANGELOG_URL="$OPTARG";;
l) LOG_VERBOSE="$OPTARG";;
?) log -l error "$(usage)"; exit 1;;
esac
done
if [ -z "$CHANGELOG_FILE" ]; then
log -l error "The file of the changelog is required."
exit 1
fi
if [ ! -f "$CHANGELOG_FILE" ]; then
log -l error "No such file: $CHANGELOG_FILE"
exit 1
fi
temp_directory="$(mktemp -d)"
temp_directory="$(mktemp -d)"
version=
is_first=1
if [ -n "$CHANGELOG_FILE" ]; then
if [ ! -f "$CHANGELOG_FILE" ]; then
log -l error "No such file: $CHANGELOG_FILE"
else
log -l info "File used: $CHANGELOG_FILE"
fi
elif [ -n "$CHANGELOG_URL" ]; then
log -l debug "URL used: $CHANGELOG_URL"
CHANGELOG_FILE="$temp_directory/_changelog"
curl -sS -o "$CHANGELOG_FILE" "$CHANGELOG_URL" || exit 0
else
log -l error "You must define a file or an url"
exit 1
fi
cat << EOF
---
hide:
@ -144,7 +156,7 @@ log() {
if [ $LEVEL -ge $LOG_VERBOSE_VALUE ]; then
printf "%s\n" "$*" | while IFS='' read -r LINE; do
printf "%s%s%s\n" "${COLOR:-}" "${TIME:-}" "$LINE" >&2
printf "%s%s%s%s\n" "${COLOR:-}" "${TIME:-}" "$LINE" "$(tput init)" >&2
done
fi
}

View file

@ -6,7 +6,19 @@ hide:
# Changelog
???+ success "3.11.1"
???+ success "3.11.3"
**Fixed**
* fix menu icon in decks, collectives and other apps (#302)
??? abstract "3.11.2"
**Fixed**
* add default translations for Slovak - fix #298
??? abstract "3.11.1"
**Added**