mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-07-15 00:00:55 -04:00
Compare commits
No commits in common. "dd3fb5e4a7403da5113ce4aff561c757aecc819d" and "8652d1978ffc767e8f1960c247575c28d07590f8" have entirely different histories.
dd3fb5e4a7
...
8652d1978f
@ -144,7 +144,6 @@ docs:
|
||||
paths:
|
||||
- rdoc/
|
||||
- wiki/
|
||||
- data/
|
||||
- coverage/
|
||||
only:
|
||||
- master
|
||||
|
25
Rakefile
25
Rakefile
@ -63,31 +63,8 @@ RDoc::Task.new do |rdoc|
|
||||
rdoc.rdoc_files.add RDOC_FILES
|
||||
end
|
||||
|
||||
desc "Builds jekyll data"
|
||||
task :prepare_jekyll_data do
|
||||
require "yaml"
|
||||
|
||||
FileUtils.mkdir_p("data")
|
||||
|
||||
version_tmpl = <<-VERSION
|
||||
-
|
||||
name: "%<name>s"
|
||||
path: "%<path>s"
|
||||
VERSION
|
||||
|
||||
`git tag -l`.lines(chomp: true)
|
||||
.map { |v| v[1..-1] }
|
||||
.sort_by(&Gem::Version.method(:new))
|
||||
.reverse
|
||||
.map { |v| { name: v, path: "#{v.tr(".", "_")}_md.html" } }
|
||||
.map { |v| format(version_tmpl, v) }
|
||||
.join
|
||||
.then { |v| "-\n#{v}" }
|
||||
.then { |output| File.write("data/versions.yml", output) }
|
||||
end
|
||||
|
||||
desc "Builds Homepage"
|
||||
task :prepare_website => %w[rdoc prepare_jekyll_data] do
|
||||
task :prepare_website => ["rdoc"] do
|
||||
require "fileutils"
|
||||
FileUtils.rm_rf("wiki")
|
||||
system("git clone https://gitlab.com/os85/httpx.wiki.git wiki")
|
||||
|
Loading…
x
Reference in New Issue
Block a user