Skip to content

Commit

Permalink
Releases documentation page includes MacOs
Browse files Browse the repository at this point in the history
#docs
  • Loading branch information
alandefreitas committed Jan 22, 2025
1 parent 6437919 commit 256c583
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/extensions/mrdocs-releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,14 @@ module.exports = function (registry) {

// Create table
let text = '|===\n'
text += '| 3+| 🪟 Windows 2+| 🐧 Linux \n'
text += '| 📃 Release | 📦 7z | 📦 msi | 📦 zip | 📦 tar.xz | 📦 tar.gz \n'
text += '| 3+| 🪟 Windows 2+| 🐧 Linux 2+| 🍏 macOS \n'
text += '| 📃 Release | 📦 7z | 📦 msi | 📦 zip | 📦 tar.xz | 📦 tar.gz | 📦 tar.xz | 📦 tar.gz \n'
releases.sort((a, b) => getReleaseDate(b) - getReleaseDate(a));
for (const release of releases) {
if (release.name === 'llvm-package') continue
const date = getReleaseDate(release)
text += `| ${release.html_url}[${release.name},window=_blank]\n\n${humanizeDate(date)} `
const assetSuffixes = ['win64.7z', 'win64.msi', 'win64.zip', 'Linux.tar.xz', 'Linux.tar.gz']
const assetSuffixes = ['win64.7z', 'win64.msi', 'win64.zip', 'Linux.tar.xz', 'Linux.tar.gz', 'Darwin.tar.xz', 'Darwin.tar.gz']
for (const suffix of assetSuffixes) {
const asset = release.assets.find(asset => asset.name.endsWith(suffix))
if (asset) {
Expand Down

0 comments on commit 256c583

Please sign in to comment.