Class: Jekyll::GeneratorSingleSource::DocNavItem::WithoutSrc

Inherits:
Base
  • Object
show all
Defined in:
lib/jekyll/generator-single-source/doc_nav_item/without_src.rb

Instance Method Summary collapse

Methods inherited from Base

#dest, #generate_pages, #initialize, #items, make_for, #relative_path, #source, #translation_fallback?

Constructor Details

This class inherits a constructor from Jekyll::GeneratorSingleSource::DocNavItem::Base

Instance Method Details

#generate_single_source_page?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/jekyll/generator-single-source/doc_nav_item/without_src.rb', line 11

def generate_single_source_page?
  !@item_config['absolute_url'] || product_page?
end

#skip_item?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/jekyll/generator-single-source/doc_nav_item/without_src.rb', line 15

def skip_item?
  super || url.include?('/#')
end

#urlObject



7
8
9
# File 'lib/jekyll/generator-single-source/doc_nav_item/without_src.rb', line 7

def url
  @url ||= @item_config['url']
end