Skip to content

Commit 4d54cda

Browse files
committed
remove css font replacements
no longer needed as of rust-lang/rust#13787 and rust-lang/rust#13744 \o/
1 parent a3e58af commit 4d54cda

File tree

3 files changed

+1
-93
lines changed

3 files changed

+1
-93
lines changed

Rakefile

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
require './lib/docset_index'
22
require './lib/docset_theme'
3-
require './lib/docset_fetch_assets'
4-
require './lib/docset_replace_assets'
53

64
task :default => %w(docset)
75

@@ -11,9 +9,7 @@ task :docset => [
119
"Rust.docset/Contents/Info.plist",
1210
"Rust.docset/Contents/Resources/Documents",
1311
"docset:index",
14-
"docset:theme",
15-
"docset:assets:fetch",
16-
"docset:assets:replace"
12+
"docset:theme"
1713
]
1814

1915
directory "Rust.docset/Contents/Resources"
@@ -95,24 +91,6 @@ namespace :docset do
9591
rm File.join(doc_path, "main.css.orig")
9692
Rake::Task["docset:theme"].invoke
9793
end
98-
99-
namespace :assets do
100-
doc_path = "Rust.docset/Contents/Resources/Documents"
101-
stylesheet = File.expand_path(File.join(doc_path, "main.css"))
102-
asset_path = File.expand_path(File.join(doc_path, "_assets"))
103-
104-
desc "Fetch remote assets"
105-
task :fetch do
106-
mkdir_p asset_path
107-
108-
DocsetFetchAssets.new(stylesheet, asset_path).save
109-
end
110-
111-
desc "Replace references to remote assets with local ones"
112-
task :replace => FileList[File.join(asset_path, "fonts", "*.woff")] do
113-
DocsetReplaceAssets.new(stylesheet).save
114-
end
115-
end
11694
end
11795

11896
desc "Remove docset"

lib/docset_fetch_assets.rb

Lines changed: 0 additions & 42 deletions
This file was deleted.

lib/docset_replace_assets.rb

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)