Commit 3de52a27 authored by Adrian DC's avatar Adrian DC
Browse files

docs(prepare): fix '<' and '>' changelog handlings and files list

Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent 3d02e035
Loading
Loading
Loading
Loading
Loading
+2 −2
Changes for docs/prepare.sh: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -23,8 +23,7 @@ sed -i \
  -e 's/<\(details\)>/<\1 markdown>/g' \
  -e 's/<\(div style="padding-left: 30px"\)>/<\1 markdown>/g' \
  -e '/<div style="padding-left: 30px"/{ n; /<br/d; }' \
  "${docs_path}/.cache/"*.md \
  "${docs_path}/.cache/"*/*.md
  $(find "${docs_path}/.cache/" -name '*.md')

# Export about/changelog
mkdir -p "${docs_path}/.cache/about/"
@@ -32,6 +31,7 @@ if ! type git-cliff >/dev/null 2>&1; then
  alias git-cliff='./.tmp/git-cliff'
fi
git-cliff --no-exec --config "${root_path}/config/cliff.toml" --output "${docs_path}/.cache/about/changelog.md"
sed -i '/^- /{ s/</\&lt;/g; s/>/\&gt;/g; }' "${docs_path}/.cache/about/changelog.md"
diff -u "${root_path}/CHANGELOG.md" "${docs_path}/.cache/about/changelog.md" || true

# Export about/license