mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Generate releases notes using releases.rb
Make releases notes layout and urls consistent with the alerts page Add RSS feed in download and version-history pages Add a canonical page with a redirect to the new url Simplify releases notes layouts
This commit is contained in:
parent
d45b9bbbfc
commit
6ac93df9f2
29 changed files with 118 additions and 98 deletions
|
@ -90,6 +90,19 @@ module Jekyll
|
|||
sitemap.puts ' <loc>http://bitcoin.org/en/alert/'+file.gsub('.html','')+'</loc>'
|
||||
sitemap.puts '</url>'
|
||||
end
|
||||
#Add english releases pages
|
||||
Dir.foreach('_releases') do |file|
|
||||
next if file == '.' or file == '..'
|
||||
file = file.split('-')
|
||||
next if file.length < 4
|
||||
file.shift()
|
||||
file.shift()
|
||||
file.shift()
|
||||
file = file.join('-')
|
||||
sitemap.puts '<url>'
|
||||
sitemap.puts ' <loc>http://bitcoin.org/en/release/'+file.gsub('.md','').gsub('.html','')+'</loc>'
|
||||
sitemap.puts '</url>'
|
||||
end
|
||||
#Add posts
|
||||
site.posts.each do |post|
|
||||
sitemap.puts '<url>'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue