website/docs/helpers/sidebar_helpers.rb
# This returns the overall section of the documentation we're on.
This returns the overall section of the documentation we're on.
This returns the overall section of the documentation we ' re on .
def sidebar_section
    current = current_page.data.sidebar_current
    return '' if !current
    current.split('-')[0]
  end
def sidebar_section current = current_page . data . sidebar_current return '' if ! current current . split ( '-' ) [ 0 ] end
This returns the overall section of the documentation we're on.
This returns the overall section of the documentation we ' re on .