mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Set latest download version automatically based on release notes
This commit is contained in:
parent
264321ed22
commit
bcebe9c481
3 changed files with 6 additions and 5 deletions
|
@ -17,6 +17,10 @@ module Jekyll
|
|||
self.data['redirect'] = dst.gsub('.md','')
|
||||
else
|
||||
self.data['category'] = 'release'
|
||||
if !site.config.has_key?('DOWNLOAD_DATE') or site.config['DOWNLOAD_DATE'] < year + '-' + month + '-' + day
|
||||
site.config['DOWNLOAD_DATE'] = year + '-' + month + '-' + day
|
||||
site.config['DOWNLOAD_VERSION'] = dst.gsub('.md','').gsub(/[a-z]/,'')
|
||||
end
|
||||
site.pages << ReleasePage.new(site, base, lang, srcdir, src, '/releases/' + year + '/' + month + '/' + day, dst, year, month, day)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue