Class: Jekyll::GeneratorSingleSource::DocNavItem::WithoutSrc
- Inherits:
-
Base
- Object
- Base
- Jekyll::GeneratorSingleSource::DocNavItem::WithoutSrc
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?
Instance Method Details
#generate_single_source_page? ⇒ 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
15
16
17
|
# File 'lib/jekyll/generator-single-source/doc_nav_item/without_src.rb', line 15
def skip_item?
super || url.include?('/#')
end
|
#url ⇒ Object
7
8
9
|
# File 'lib/jekyll/generator-single-source/doc_nav_item/without_src.rb', line 7
def url
@url ||= @item_config['url']
end
|