-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts: Use HTML as source for GitHub release notes
Using rendered HTML makes all links to the documentation work. Issue #9910
- Loading branch information
Showing
3 changed files
with
33 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- Copyright © Michal Čihař <[email protected]> | ||
-- | ||
-- SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
function fix_link (url) | ||
return url:sub(1,4) == "http" and url or "https://docs.weblate.org/en/latest/" .. url | ||
end | ||
function Link (link) | ||
link.target = fix_link(link.target); | ||
return link | ||
end | ||
function Image (img) | ||
img.src = fix_link(img.src); | ||
return src | ||
end | ||
return {{Link = Link, Image = Image}} |