summaryrefslogtreecommitdiffhomepage
path: root/templates/default/layout/html/setup.rb
blob: dc567f2527e11e66b83415a03860362ec28a8705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
def init
  super
end

#
# Append yard-cucumber stylesheet to yard core stylesheets
#
def stylesheets
  super + %w(css/mruby.css)
end

#
# Append yard-cucumber javascript to yard core javascripts
#
def javascripts
  super + %w(js/mruby.js)
end

#
# Append yard-cucumber specific menus 'features' and 'tags'
#
# 'features' and 'tags' are enabled by default.
#
# 'step definitions' and 'steps' may be enabled by setting up a value in
# yard configuration file '~/.yard/config'
#
# @example `~/.yard.config`
#
#     yard-cucumber:
#       menus: [ 'features', 'directories', 'tags', 'step definitions', 'steps' ]
#
def menu_lists
  menus = super
  last = menus.pop

  menus.push({
    type: 'header',
    title: 'Headers',
    search_title: 'Header List'
  })

  menus.push({
    type: 'function',
    title: 'Functions',
    search_title: 'Function List'
  })

  menus.push last

  menus
end