_plugins/sidepanel_toc_generator.rb
# Converts a heading into a hash of the info for a link
Converts a heading into a hash of the info for a link
Converts a heading into a hash of the info for a link
def to_nav_item(page, heading)
    {
      "title" => heading.text, 
      "url" => [page.url, heading['id']].join("#") 
    }
  end
def to_nav_item ( page , heading ) { "title" => heading . text , "url" => [ page . url , heading [ 'id' ] ] . join ( "#" ) } end
Converts a heading into a hash of the info for a link
Converts a heading into a hash of the info for a link
page
<not_specific>
heading
<not_specific>