File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
lib/rdoc/generator/template/darkfish Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1616 < meta name ="description " content ="<%= h "#{ file . page_name } : #{ excerpt ( file . comment ) } " %> ">
1717<%- elsif @title %>
1818 < meta name ="keywords " content ="ruby,documentation, <%= h @title %> ">
19-
20- <%- if @options . main_page and
21- main_page = @files . find { |f | f . full_name == @options . main_page } then %>
22- < meta name ="description " content ="<%= h "#{ @title } : #{ excerpt ( main_page . comment ) } " %> ">
23- <%- else %>
24- < meta name ="description " content ="Documentation for <%= h @title %> ">
25- <%- end %>
19+ <% description = @main_page ? "#{ @title } : #{ excerpt ( @main_page . comment ) } " : "Documentation for #{ @title } " %>
20+ < meta name ="description " content ="<%= h description %> ">
2621<%- end %>
2722
2823<%- if canonical_url = @options . canonical_root %>
Original file line number Diff line number Diff line change 44 < input id ="search-field " role ="combobox " aria-label ="Search "
55 aria-autocomplete ="list " aria-controls ="search-results "
66 type ="text " name ="search " placeholder ="Search (/) for a class, method, ... " spellcheck ="false "
7+ autocomplete ="off "
78 title ="Type to search, Up and Down to navigate, Enter to load ">
89 </ div >
910
Original file line number Diff line number Diff line change 4747 unless table . empty? then %>
4848 < ul >
4949<%- table . each do |item | %>
50- <%- label = item . respond_to? ( :label ) ? item . label ( klass ) : item . aref %>
50+ <%- label = item . respond_to? ( :label ) ? item . label ( klass ) : item . aref %>
5151 < li > < a href ="<%= klass . path %> # <%= label %> "> <%= item . plain_html %> </ a > </ li >
5252<%- end %>
5353 </ ul >
You can’t perform that action at this time.
0 commit comments