Module: Rop
- Defined in:
- lib/rop/version.rb,
lib/rop/site_type.rb,
lib/rop/blog_index.rb,
lib/rop/spec_builder.rb,
lib/rop/project_reader.rb,
lib/rop/filterable_index.rb,
lib/rop/png_diagram_page.rb
Defined Under Namespace
Classes: CollectionDocReader, CombinedPostArrayGenerator, FilteredIndexPage, FilteredIndexPageGenerator, IndexPageGenerator, NonLiquidDocument, PngDiagramPage, ProjectReader, SiteTypeVariableGenerator, SpecBuilder
Constant Summary collapse
- VERSION =
'2.1.18'- DEFAULT_DOCS_SUBTREE =
'docs'- DEFAULT_REPO_REMOTE_NAME =
'origin'- DEFAULT_REPO_BRANCH =
'main'- INDEXES =
On an open hub site, Jekyll Open Project theme assumes the existence of two types of item indexes: software and specs, where items are gathered from across open projects in the hub.
The need for :item_test arises from our data structure (see Jekyll Open Project theme docs) and the fact that Jekyll doesn’t intuitively handle nested collections.
{ 'software' => { item_test: ->(item) { item.path.include? '/_software' and !item.path.include? '/docs' } }, 'specs' => { item_test: ->(item) { item.path.include? '/_specs' and !item.path.include? '/docs' } } }.freeze