Skip to content

Commit 905a9c0

Browse files
committed
Remove legacy code
1 parent 84d7139 commit 905a9c0

7 files changed

+12
-221
lines changed

Diff for: config.rb

+5-26
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838

3939

4040
helpers do
41-
41+
4242
def shared_partial(*sources)
4343
sources.inject([]) do |combined, source|
4444
combined << partial("../shared/includes/#{source}",:locals => { :guides => true })
4545
end.join
4646
end
47-
47+
4848
end
4949

5050
# Allow shared assets folder to not be in source, thereby not dragging in every asset
@@ -57,11 +57,10 @@ def shared_partial(*sources)
5757
end
5858

5959
navigation_data = {
60-
'dsl' => [
61-
{ :name => "podfile", :title => "Podfile Syntax Reference" },
62-
{:name => "podspec", :title => "Podspec Syntax Reference"}
60+
'dsl' => [
61+
{ :name => "podfile", :title => "Podfile Syntax Reference" },
62+
{:name => "podspec", :title => "Podspec Syntax Reference"}
6363
],
64-
'gems' => %w[ CocoaPods CLAide cocoapods-downloader cocoapods-core Xcodeproj]
6564
}
6665

6766
content_for :dsl_data do navigation_data * '<br>' end
@@ -83,23 +82,3 @@ def shared_partial(*sources)
8382
}
8483

8584
data.store("site", "guides")
86-
#
87-
gems = []
88-
navigation_data['gems'].each do |name|
89-
proxy "#{parameterize name}/index.html", "templates/gem.html", {
90-
:locals => { :name => name, :fullwidth => true },
91-
:ignore => true
92-
}
93-
94-
proxy "#{parameterize name}/name_spaces.html", "templates/gem_namespaces_list.html", {
95-
:locals => { :name => name, :fullwidth => true },
96-
:ignore => true
97-
}
98-
99-
proxy "#{parameterize name}/gem_todo_list.html", "templates/gem_todo_list.html", {
100-
:locals => { :name => name },
101-
:ignore => true
102-
}
103-
104-
end
105-
data.store('gems', gems)

Diff for: lib/navigation_helpers.rb

+2
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ def search_name_space_by_name(name, base_object = nil)
256256
parent = parent.parent
257257
end
258258
end
259+
p name
260+
p base_object
259261

260262
components = name.split('::')
261263
candidates = data.gems.map(&:children).flatten

Diff for: source/templates/dsl.html.slim

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ruby:
1515
['Hooks'],
1616
]
1717
}
18-
18+
1919

2020

2121
#tab-controller.col-md-3.col-lg-3
@@ -31,12 +31,12 @@ ruby:
3131
#tab-content.tab-content
3232
div.tab-pane.active id="tab_#{parameterize name_space.name}"
3333
h2 = name_space.name
34-
== link_doc_string name_space.html_description
34+
== name_space.html_description
3535

3636
- for group in name_space.groups
3737
div.tab-pane id="tab_group_#{parameterize group.name}"
3838
h2 = group.name
39-
== link_doc_string(group.html_description)
39+
== (group.html_description)
4040

4141
- for method in name_space.meths
4242
div.tab-pane id="tab_#{parameterize method.name}"
@@ -50,7 +50,7 @@ ruby:
5050
a.select-tab href="#tab_multi-platform-support-group"
5151
span.label.label-big multi-platform
5252

53-
== link_doc_string method.html_description
53+
== method.html_description
5454

5555
- if method.respond_to?(:html_default_values) && method.html_default_values
5656
h3 Defaults to:
@@ -69,4 +69,4 @@ ruby:
6969
- for key in method.html_keys
7070
== key
7171

72-
.clearfix
72+
.clearfix

Diff for: source/templates/gem.html.slim

-38
This file was deleted.

Diff for: source/templates/gem_namespace.html.slim

-125
This file was deleted.

Diff for: source/templates/gem_namespaces_list.html.slim

-14
This file was deleted.

Diff for: source/templates/gem_todo_list.html.slim

-13
This file was deleted.

0 commit comments

Comments
 (0)