Update docs (#2544)

* Update docs

* escape & in git_logs_as_xml
This commit is contained in:
Adrià Arrufat 2022-03-14 21:39:42 +09:00 committed by GitHub
parent 516b744b43
commit f1a29f3595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 2 deletions

View File

@ -35,7 +35,7 @@ git_logs_as_xml()
(echo "<log>"; git log --stat=80 --date=iso-strict --pretty=format:"</files_changed></logentry>%n<logentry revision=\"%H\">%n<author email=\"%ae\">%an</author>%n<date>%ad</date>%nGIT_COMMIT_MESSAGE_BEGIN%sGIT_COMMIT_MESSAGE_END%n<files_changed>%n" $logrange $paths | tail -n+2 ; echo; echo '</files_changed></logentry>' ; echo "</log>" ) > $outfile
# sanitize git commit messages
sed -e '/GIT_COMMIT_MESSAGE_BEGIN.*GIT_COMMIT_MESSAGE_END/ { s/</\&lt;/g; s/>/\&gt;/g; s/GIT_COMMIT_MESSAGE_BEGIN/<msg>/g; s/GIT_COMMIT_MESSAGE_END/<\/msg>/g; }' -i $outfile
sed -e '/GIT_COMMIT_MESSAGE_BEGIN.*GIT_COMMIT_MESSAGE_END/ { s/</\&lt;/g; s/>/\&gt;/g; s/&/&amp;/g; s/GIT_COMMIT_MESSAGE_BEGIN/<msg>/g; s/GIT_COMMIT_MESSAGE_END/<\/msg>/g; }' -i $outfile
# trim whitespace at start and end of <files_changed> tags.
sed -e ':a' -e 'N' -e '$!ba' -e "s/<files_changed>[ \n]*/<files_changed> /g" -e "s/[ \n]*<\/files_changed>/<\/files_changed>/g" -i $outfile

View File

@ -11,6 +11,24 @@
<!-- ************************************************************************************** -->
<current>
New Features and Improvements:
- Added Beta distribution to dlib::rand.
- Deep learning tooling:
- Added ReOrg layer.
- Added visitor to draw network architectures using the DOT language.
- Made Barlow Twins loss much faster for high dimensionality inputs.
Non-Backwards Compatible Changes:
- Do not round coordinates in rectangle_transform (PR #2498).
Bug fixes:
- Fix missing ssize_t definition on Windows (PR #2492)
- Fix Barlow Twins loss gradient (PR #2518)
</current>
<!-- ************************************************************************************** -->
<old name="19.23" date="Jan 24, 2022">
New Features and Improvements:
- Added serialization support for std::variant and std::optional.
- Added upgrades to dlib::type_safe_union: type_safe_union_size, type_safe_union_alternative_t,
@ -35,7 +53,7 @@ Bug fixes:
- Fix trainer with unsupervised loss (PR #2436)
- Fix dnn_trainer trying to decrease the learning rate (PR #2442)
- Fix Layer Normalize (PR #2489)
</current>
</old>
<!-- ************************************************************************************** -->