j1-template 2020.0.24 → 2021.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/_includes/themes/j1/blocks/ads/ad.html +1 -1
- data/_includes/themes/j1/blocks/footer/boxes/about_box.proc +1 -1
- data/_includes/themes/j1/blocks/footer/boxes/contacts_box.proc +1 -1
- data/_includes/themes/j1/blocks/footer/boxes/issue.proc +1 -1
- data/_includes/themes/j1/blocks/footer/boxes/legal_statements.proc +1 -1
- data/_includes/themes/j1/blocks/footer/boxes/links_box.proc +1 -1
- data/_includes/themes/j1/blocks/footer/boxes/news_box.proc +1 -1
- data/_includes/themes/j1/blocks/footer/boxes/social_media_icons.proc +1 -1
- data/_includes/themes/j1/blocks/footer/generator.html +1 -1
- data/_includes/themes/j1/layouts/content_generator_app.html +1 -1
- data/_includes/themes/j1/layouts/content_generator_blog_archive.html +10 -10
- data/_includes/themes/j1/layouts/content_generator_collection.html +1 -1
- data/_includes/themes/j1/layouts/content_generator_page.html +1 -1
- data/_includes/themes/j1/layouts/content_generator_post.html +1 -1
- data/_includes/themes/j1/layouts/content_generator_raw.html +1 -1
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +12 -12
- data/_includes/themes/j1/layouts/layout_module_generator.html +1 -1
- data/_includes/themes/j1/layouts/layout_resource_generator.html +1 -1
- data/_includes/themes/j1/modules/attics/generator.html +2 -2
- data/_includes/themes/j1/modules/boards/news_pin_board.html +1 -1
- data/_includes/themes/j1/modules/connectors/ad/custom-provider.html +1 -1
- data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +1 -1
- data/_includes/themes/j1/modules/connectors/ads +1 -1
- data/_includes/themes/j1/modules/connectors/analytic/custom-provider.html +1 -1
- data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +1 -1
- data/_includes/themes/j1/modules/connectors/analytics +1 -1
- data/_includes/themes/j1/modules/connectors/comment/custom-provider.html +1 -1
- data/_includes/themes/j1/modules/connectors/comment/disqus.html +1 -1
- data/_includes/themes/j1/modules/connectors/comment/facebook.html +1 -1
- data/_includes/themes/j1/modules/connectors/comments +1 -1
- data/_includes/themes/j1/modules/connectors/sharing +1 -1
- data/_includes/themes/j1/modules/connectors/translator +1 -1
- data/_includes/themes/j1/modules/connectors/translators/custom-translator.html +1 -1
- data/_includes/themes/j1/modules/connectors/translators/google-translator.html +1 -1
- data/_includes/themes/j1/modules/navigator/generator.html +1 -1
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +1 -1
- data/_includes/themes/j1/procedures/collections/create_collection_article_preview.proc +1 -1
- data/_includes/themes/j1/procedures/global/attributes_loader.proc +1 -1
- data/_includes/themes/j1/procedures/global/collect_frontmatter_options.proc +1 -1
- data/_includes/themes/j1/procedures/global/collect_page_options.proc +1 -1
- data/_includes/themes/j1/procedures/global/create_bs_button.proc +2 -2
- data/_includes/themes/j1/procedures/global/create_word_cloud.proc +4 -2
- data/_includes/themes/j1/procedures/global/get_category.proc +1 -1
- data/_includes/themes/j1/procedures/global/get_category_item.proc +1 -1
- data/_includes/themes/j1/procedures/global/get_documents_dir.proc +1 -1
- data/_includes/themes/j1/procedures/global/get_page_path.proc +1 -1
- data/_includes/themes/j1/procedures/global/get_page_url.proc +1 -1
- data/_includes/themes/j1/procedures/global/pager.proc +1 -1
- data/_includes/themes/j1/procedures/global/select_color.proc +1 -1
- data/_includes/themes/j1/procedures/global/select_font_size.proc +1 -1
- data/_includes/themes/j1/procedures/global/select_icon_size.proc +1 -1
- data/_includes/themes/j1/procedures/global/select_location.proc +1 -1
- data/_includes/themes/j1/procedures/global/set_base_vars_folders.proc +1 -1
- data/_includes/themes/j1/procedures/global/set_env_entry_document.proc +1 -1
- data/_includes/themes/j1/procedures/global/set_image_block.proc +1 -1
- data/_includes/themes/j1/procedures/global/setup.proc +1 -1
- data/_includes/themes/j1/procedures/layouts/content_writer.proc +1 -1
- data/_includes/themes/j1/procedures/layouts/default_writer.proc +1 -1
- data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
- data/_includes/themes/j1/procedures/layouts/resource_writer.proc +1 -1
- data/_includes/themes/j1/procedures/posts/collate_calendar.proc +1 -1
- data/_includes/themes/j1/procedures/posts/collate_list.proc +1 -1
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +19 -18
- data/_includes/themes/j1/procedures/posts/create_ad_block.proc +1 -1
- data/_includes/themes/j1/procedures/posts/create_series_header.proc +1 -1
- data/_layouts/app.html +1 -1
- data/_layouts/blog_archive.html +1 -1
- data/_layouts/collection.html +1 -1
- data/_layouts/compress.html +1 -1
- data/_layouts/default.html +1 -1
- data/_layouts/home.html +1 -1
- data/_layouts/page.html +1 -1
- data/_layouts/paginator/autopage_category.html +1 -1
- data/_layouts/paginator/autopage_collection.html +1 -1
- data/_layouts/paginator/autopage_collections_tags.html +1 -1
- data/_layouts/paginator/autopage_tags.html +1 -1
- data/_layouts/post.html +1 -1
- data/_layouts/raw.html +1 -1
- data/apps/public/cc/cc.yml +1 -1
- data/assets/data/authclient.html +1 -1
- data/assets/data/banner.html +11 -12
- data/assets/data/carousel.json +8 -16
- data/assets/data/cookiebar.html +4 -4
- data/assets/data/fam.html +1 -1
- data/assets/data/footer.html +1 -1
- data/assets/data/galleries.json +1 -1
- data/assets/data/gallery_customizer.html +19 -7
- data/assets/data/mdi_icons.json +1 -1
- data/assets/data/menu.html +1 -1
- data/assets/data/mmenu.html +1 -1
- data/assets/data/mmenu_sidebar.html +1 -1
- data/assets/data/mmenu_toc.html +1 -1
- data/assets/data/panel.html +1 -1
- data/assets/data/quicklinks.html +3 -3
- data/assets/data/themes.json +1 -1
- data/assets/data/twa_v1.json +1 -1
- data/assets/error_pages/HTTP204.html +1 -1
- data/assets/error_pages/HTTP400.html +1 -1
- data/assets/error_pages/HTTP401.html +1 -1
- data/assets/error_pages/HTTP403.html +1 -1
- data/assets/error_pages/HTTP404.html +1 -1
- data/assets/error_pages/HTTP500.html +1 -1
- data/assets/error_pages/HTTP501.html +1 -1
- data/assets/error_pages/HTTP502.html +1 -1
- data/assets/error_pages/HTTP503.html +1 -1
- data/assets/error_pages/HTTP520.html +1 -1
- data/assets/error_pages/HTTP521.html +1 -1
- data/assets/error_pages/HTTP533.html +1 -1
- data/assets/themes/j1/adapter/js/algolia.js +2 -2
- data/assets/themes/j1/adapter/js/attic.js +3 -3
- data/assets/themes/j1/adapter/js/bmd.js +2 -2
- data/assets/themes/j1/adapter/js/carousel.js +401 -38
- data/assets/themes/j1/adapter/js/clipboard.js +2 -2
- data/assets/themes/j1/adapter/js/cookiebar.js +9 -2
- data/assets/themes/j1/adapter/js/fam.js +2 -2
- data/assets/themes/j1/adapter/js/framer.js +2 -2
- data/assets/themes/j1/adapter/js/gallery_customizer.js +2 -2
- data/assets/themes/j1/adapter/js/j1.js +36 -9
- data/assets/themes/j1/adapter/js/jf_gallery.js +4 -4
- data/assets/themes/j1/adapter/js/lightbox.js +2 -2
- data/assets/themes/j1/adapter/js/logger.js +2 -2
- data/assets/themes/j1/adapter/js/lunr_search.js +2 -2
- data/assets/themes/j1/adapter/js/mmenu.js +9 -7
- data/assets/themes/j1/adapter/js/navigator.js +2 -3
- data/assets/themes/j1/adapter/js/rouge.js +8 -6
- data/assets/themes/j1/adapter/js/rtable.js +6 -4
- data/assets/themes/j1/adapter/js/themer.js +55 -47
- data/assets/themes/j1/adapter/js/toccer.js +3 -3
- data/assets/themes/j1/core/css/animate.css +2 -2
- data/assets/themes/j1/core/css/icon-fonts/fontawesome.css +2 -2
- data/assets/themes/j1/core/css/icon-fonts/iconify.css +5 -5
- data/assets/themes/j1/core/css/icon-fonts/materialdesign.css +9 -9
- data/assets/themes/j1/core/css/icon-fonts/twemoji.css +6 -6
- data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +1 -1
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +31 -31
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +125 -97
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +14 -17
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +5 -10
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +1 -1
- data/assets/themes/j1/modules/backstretch/js/backstretch.js +1 -1
- data/assets/themes/j1/modules/backstretch/js/backstretch.min.js +1 -1
- data/assets/themes/j1/modules/carousel/css/carousel.css +1 -1
- data/assets/themes/j1/modules/carousel/css/carousel.min.css +1 -1
- data/assets/themes/j1/modules/carousel/css/carousel_transitions.css +1 -1
- data/assets/themes/j1/modules/carousel/css/carousel_transitions.min.css +1 -1
- data/assets/themes/j1/modules/carousel/css/theme/uno.css +122 -83
- data/assets/themes/j1/modules/carousel/css/theme/uno.min.css +2 -2
- data/assets/themes/j1/modules/clipboard/css/theme/uno.css +3 -3
- data/assets/themes/j1/modules/clipboard/css/theme/uno.min.css +2 -2
- data/assets/themes/j1/modules/fam/css/uno/fam.css +1 -1
- data/assets/themes/j1/modules/fam/js/fam.js +1 -1
- data/assets/themes/j1/modules/iframeResizer/LICENSE +21 -21
- data/assets/themes/j1/modules/jquery/css/jqueryUI/theme.css +443 -0
- data/assets/themes/j1/modules/jquery/css/jqueryUI/theme.min.css +5 -0
- data/assets/themes/j1/modules/jquery/js/jqueryUI.js +18701 -0
- data/assets/themes/j1/modules/jquery/js/jqueryUI.min.js +13 -0
- data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/justifiedGallery/_versions/v4.0.0/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.css +6 -5
- data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.min.css +2 -2
- data/assets/themes/j1/modules/kofax.7z +0 -0
- data/assets/themes/j1/modules/lightGallery/css/themes/uno.css +1 -1
- data/assets/themes/j1/modules/lightGallery/css/themes/uno.min.css +1 -1
- data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-video.js +1 -1
- data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-video.min.js +1 -1
- data/assets/themes/j1/modules/lightbox/LICENSE +22 -22
- data/assets/themes/j1/modules/lightbox/css/lightbox.css +1 -1
- data/assets/themes/j1/modules/lightbox/css/lightbox.min.css +1 -1
- data/assets/themes/j1/modules/lightbox/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/lightbox/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/lightbox/js/lightbox.js +2 -2
- data/assets/themes/j1/modules/lightbox/js/lightbox.min.js +1 -1
- data/assets/themes/j1/modules/lunrSearch/css/lunr_search.css +1 -1
- data/assets/themes/j1/modules/lunrSearch/css/lunr_search.min.css +13 -6
- data/assets/themes/j1/modules/lunrSearch/js/lunr_search.js +1 -1
- data/assets/themes/j1/modules/lunrSearch/js/lunr_search.min.js +1 -1
- data/assets/themes/j1/modules/mdiPreviewer/css/previewer.css +1 -1
- data/assets/themes/j1/modules/mdiPreviewer/css/previewer.min.css +1 -1
- data/assets/themes/j1/modules/mmenuLight/css/mmenu.css +1 -1
- data/assets/themes/j1/modules/mmenuLight/css/mmenu.min.css +1 -1
- data/assets/themes/j1/modules/mmenuLight/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/mmenuLight/css/theme/uno.min.css +2 -2
- data/assets/themes/j1/modules/mmenuLight/js/mmenu.js +1 -1
- data/assets/themes/j1/modules/mmenuLight/js/mmenu.min.js +1 -1
- data/assets/themes/j1/modules/rtable/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/rtable/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/rtable/js/rtable.js +1 -1
- data/assets/themes/j1/modules/rtable/js/rtable.min.js +1 -1
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +1 -1
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +1 -1
- data/assets/themes/j1/modules/twemoji/css/picker/twemoji-picker.css +1 -1
- data/assets/themes/j1/modules/twemoji/css/picker/twemoji-picker.min.css +1 -1
- data/assets/themes/j1/modules/twemoji/js/LICENSE +21 -21
- data/assets/themes/j1/modules/twemoji/js/picker/LICENSE +21 -21
- data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.js +2 -2
- data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.min.js +1 -1
- data/assets/themes/j1/modules/twemoji/js/twemoji.js +1 -1
- data/assets/themes/j1/modules/twemoji/js/twemoji.min.js +1 -1
- data/exe/j1 +2 -0
- data/lib/j1/commands/generate.rb +48 -47
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.6/fastfilereaderext.so +0 -0
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.6/rubyeventmachine.so +0 -0
- data/lib/j1/utils/exec.rb +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/j1_app.rb +0 -4
- data/lib/j1_app/j1_auth_manager/auth_manager.rb +1 -1
- data/lib/j1_app/j1_auth_manager/commands.rb +1 -1
- data/lib/j1_app/j1_auth_manager/error_pages.rb +1 -1
- data/lib/j1_app/j1_auth_manager/helpers_disqus.rb +1 -1
- data/lib/j1_app/j1_auth_manager/helpers_facebook.rb +1 -1
- data/lib/j1_app/j1_auth_manager/helpers_github.rb +1 -1
- data/lib/j1_app/j1_auth_manager/helpers_patreon.rb +1 -1
- data/lib/j1_app/j1_auth_manager/helpers_twitter.rb +1 -1
- data/lib/j1_app/j1_auth_manager/warden_omniauth.rb +1 -1
- data/lib/j1_app/omniauth/strategies/disqus.rb +1 -1
- data/lib/j1_app/omniauth/strategies/facebook.rb +1 -1
- data/lib/j1_app/omniauth/strategies/github.rb +1 -1
- data/lib/j1_app/omniauth/strategies/patreon.rb +1 -1
- data/lib/j1_app/omniauth/strategies/twitter.rb +1 -1
- data/lib/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.6/fastfilereaderext.so +0 -0
- data/lib/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.6/rubyeventmachine.so +0 -0
- data/lib/starter_web/Gemfile +19 -30
- data/lib/starter_web/_config.yml +23 -92
- data/lib/starter_web/_data/_defaults/categories.yml +1 -1
- data/lib/starter_web/_data/_defaults/colors.yml +1 -1
- data/lib/starter_web/_data/_defaults/font_sizes.yml +1 -1
- data/lib/starter_web/_data/_defaults/j1_light_gallery.yml +1 -1
- data/lib/starter_web/_data/_defaults/resources.yml +1 -1
- data/lib/starter_web/_data/_defaults/template_settings.yml +1 -1
- data/lib/starter_web/_data/apps/carousel.yml +167 -346
- data/lib/starter_web/_data/apps/defaults/carousel.yml +88 -87
- data/lib/starter_web/_data/apps/defaults/gallery_customizer.yml +1 -1
- data/lib/starter_web/_data/apps/defaults/justified_gallery.yml +1 -1
- data/lib/starter_web/_data/apps/defaults/light_gallery.yml +1 -1
- data/lib/starter_web/_data/apps/defaults/lightbox.yml +1 -1
- data/lib/starter_web/_data/apps/gallery_customizer.yml +1 -1
- data/lib/starter_web/_data/apps/justified_gallery.yml +45 -11
- data/lib/starter_web/_data/apps/light_gallery.yml +1 -1
- data/lib/starter_web/_data/apps/lightbox.yml +1 -1
- data/lib/starter_web/_data/blocks/banner.yml +1 -1
- data/lib/starter_web/_data/blocks/defaults/banner.yml +1 -1
- data/lib/starter_web/_data/blocks/defaults/footer.yml +1 -1
- data/lib/starter_web/_data/blocks/defaults/panel.yml +1 -1
- data/lib/starter_web/_data/blocks/footer.yml +2 -2
- data/lib/starter_web/_data/blocks/panel.yml +1 -1
- data/lib/starter_web/_data/builder/blog_navigator.yml +1 -1
- data/lib/starter_web/_data/categories.yml +1 -1
- data/lib/starter_web/_data/colors.yml +1 -1
- data/lib/starter_web/_data/font_sizes.yml +1 -1
- data/lib/starter_web/_data/j1_config.yml +37 -34
- data/lib/starter_web/_data/layouts/app.yml +1 -1
- data/lib/starter_web/_data/layouts/blog_archive.yml +1 -1
- data/lib/starter_web/_data/layouts/collection.yml +7 -7
- data/lib/starter_web/_data/layouts/default.yml +1 -1
- data/lib/starter_web/_data/layouts/home.yml +1 -2
- data/lib/starter_web/_data/layouts/page.yml +2 -3
- data/lib/starter_web/_data/layouts/post.yml +2 -3
- data/lib/starter_web/_data/layouts/raw.yml +1 -1
- data/lib/starter_web/_data/modules/advertising.yml +1 -1
- data/lib/starter_web/_data/modules/attics.yml +1 -1
- data/lib/starter_web/_data/modules/authentication.yml +1 -1
- data/lib/starter_web/_data/modules/cookiebar.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/attics.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/authentication.yml +45 -43
- data/lib/starter_web/_data/modules/defaults/cookiebar.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/fam.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/framer.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/log4javascript.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/log4r.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/lunr_search.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/navigator.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/themer.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/toccer.yml +1 -1
- data/lib/starter_web/_data/modules/fam.yml +46 -12
- data/lib/starter_web/_data/modules/framer.yml +1 -1
- data/lib/starter_web/_data/modules/log4javascript.yml +1 -1
- data/lib/starter_web/_data/modules/log4r.yml +1 -1
- data/lib/starter_web/_data/modules/lunr_search.yml +1 -1
- data/lib/starter_web/_data/modules/navigator.yml +1 -1
- data/lib/starter_web/_data/modules/navigator_menu.yml +1 -46
- data/lib/starter_web/_data/modules/themer.yml +2 -97
- data/lib/starter_web/_data/modules/toccer.yml +1 -1
- data/lib/starter_web/_data/pages/builder.yml +1 -1
- data/lib/starter_web/_data/plugins/defaults/notebooks.yml +1 -1
- data/lib/starter_web/_data/plugins/defaults/paginator.yml +1 -1
- data/lib/starter_web/_data/plugins/notebooks.yml +1 -1
- data/lib/starter_web/_data/plugins/paginator.yml +1 -1
- data/lib/starter_web/_data/private.yml +1 -1
- data/lib/starter_web/_data/resources.yml +4 -3
- data/lib/starter_web/_data/utilities/defaults/util_srv.yml +1 -1
- data/lib/starter_web/_data/utilities/util_srv.yml +1 -1
- data/lib/starter_web/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/_includes/documents/licenses/mit.asciidoc +19 -19
- data/lib/starter_web/_includes/tables/jekyll_variables.asciidoc +45 -45
- data/lib/starter_web/_includes/tables/template_variables.asciidoc +46 -46
- data/lib/starter_web/_plugins/asciidoctor-extensions/admonition-block-answer.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/admonition-block-question.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/banner.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/carousel-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/fab-icon-inline.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/fas-icon-inline.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/gallery-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/gist-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/iconify-icon-inline.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/lightbox-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/mdi-icon-inline.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/panel.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/shout-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/twitter-emoji-inline.rb +1 -1
- data/lib/starter_web/_plugins/debug.rb +1 -1
- data/lib/starter_web/_plugins/filters.rb +1 -1
- data/lib/starter_web/_plugins/lorem_inline.rb +99 -4
- data/lib/starter_web/_plugins/lunr_index.rb +5 -2
- data/lib/starter_web/_plugins/minifyJS.rb +1 -1
- data/lib/starter_web/_plugins/minifyJSON.rb +1 -1
- data/lib/starter_web/_plugins/prettify.rb +1 -1
- data/lib/starter_web/_plugins/simple_search_filter.rb +1 -1
- data/lib/starter_web/_plugins/symlink_watcher.rb +1 -1
- data/lib/starter_web/assets/images/modules/icons/d1/d1-256x256.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-32x32.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-512x512.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-64x64.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/favicon.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/scalable/d1.svg +48 -43
- data/lib/starter_web/assets/images/pages/j1_webhooks/uml/auth_mgmr_signin_request_flow.uxf +632 -632
- data/lib/starter_web/assets/images/pages/j1_webhooks/uml/webhook_flow.uxf +648 -648
- data/lib/starter_web/assets/images/quotes/colored-1.jpg +0 -0
- data/lib/starter_web/assets/images/quotes/colored-2.jpg +0 -0
- data/lib/starter_web/assets/images/quotes/default.jpg +0 -0
- data/lib/starter_web/assets/images/quotes/light-blue.jpg +0 -0
- data/lib/starter_web/assets/images/quotes/people.jpg +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1-template.adoc.erb +9 -10
- data/lib/starter_web/collections/posts/public/featured/_posts/2018-05-01-confusion-about-base-url.adoc +6 -5
- data/lib/starter_web/collections/posts/public/featured/_posts/2019-05-01-top-open-source-static-site-generators.adoc +6 -5
- data/lib/starter_web/collections/posts/public/featured/_posts/2019-06-01-about-cookies.adoc +198 -197
- data/lib/starter_web/collections/posts/public/featured/_posts/_includes/documents/readme +1 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/_includes/documents/unsplash-badge.asciidoc +31 -31
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +6 -6
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +6 -6
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +6 -6
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +6 -6
- data/lib/starter_web/collections/posts/public/series/_posts/_includes/documents/100-docker-using-shared-folders.asciidoc +430 -430
- data/lib/starter_web/collections/posts/public/series/_posts/_includes/tables/debug_variables.asciidoc +47 -48
- data/lib/starter_web/config.ru +23 -24
- data/lib/starter_web/dot.gitattributes +1 -1
- data/lib/starter_web/dot.nojekyll +19 -19
- data/lib/starter_web/package.json +51 -38
- data/lib/starter_web/pages/public/about/about_site.adoc +2 -0
- data/lib/starter_web/pages/public/blog/navigator/archive.html +24 -6
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +32 -11
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +23 -6
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +0 -1
- data/lib/starter_web/pages/public/blog/navigator/index.html +0 -1
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/200_preparations.adoc +15 -3
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/300_first_awesome_web.adoc +16 -4
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/_includes/documents/300_first_awesome_web.asciidoc +11 -12
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/_includes/tables/debug_variables.asciidoc +47 -48
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/_includes/tables/readme +1 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +14 -60
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/600_lunr.adoc +236 -237
- data/lib/starter_web/pages/public/learn/roundtrip/610_fam.adoc +11 -19
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_bottom_info.asciidoc +14 -14
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_bottom_left_warning.asciidoc +11 -11
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_bottom_right_danger.asciidoc +11 -11
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_central_success.asciidoc +11 -11
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_full_height_left_info.asciidoc +11 -11
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_full_height_right_success.asciidoc +11 -11
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_top_info.asciidoc +11 -11
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_top_left_info.asciidoc +11 -11
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_top_right_success.asciidoc +11 -11
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +6 -3
- data/lib/starter_web/pages/public/legal/en/000_copyright.adoc +4 -3
- data/lib/starter_web/pages/public/legal/en/100_impress.adoc +4 -3
- data/lib/starter_web/pages/public/legal/en/200_terms_of_use.adoc +5 -4
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +7 -6
- data/lib/starter_web/pages/public/legal/en/400_license_agreement.adoc +4 -3
- data/lib/starter_web/pages/public/legal/en/500_support.adoc +4 -3
- data/lib/starter_web/pages/public/legal/en/eu/cookie.policy.asciidoc +50 -55
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +2 -3
- data/lib/starter_web/pages/public/previewer/_includes/documents/licenses/mit.asciidoc +19 -19
- data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +22 -30
- data/lib/starter_web/pages/public/previewer/iframer.adoc +13 -8
- data/lib/starter_web/pages/public/previewer/justified_gallery.html +15 -8
- data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +10 -7
- data/lib/starter_web/pages/public/previewer/rouge.adoc +247 -10
- data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +9 -7
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +7 -7
- data/lib/starter_web/utilsrv/server.js +1 -1
- metadata +29 -69
- data/assets/themes/j1/core/css/bootstrap.css +0 -7154
- data/assets/themes/j1/core/css/bootstrap.min.css +0 -6
- data/assets/themes/j1/core/css/custom.scss +0 -28
- data/assets/themes/j1/core/css/globals.css +0 -14523
- data/assets/themes/j1/core/css/globals.min.css +0 -1
- data/assets/themes/j1/core/css/globals.scss +0 -28
- data/assets/themes/j1/core/css/theme_extensions.css +0 -11558
- data/assets/themes/j1/core/css/theme_extensions.min.css +0 -1
- data/assets/themes/j1/core/css/uno.css +0 -11823
- data/assets/themes/j1/core/css/uno.min.css +0 -1
- data/assets/themes/j1/core/css/uno.scss +0 -28
- data/assets/themes/j1/core/css/vendor.scss +0 -28
- data/lib/j1_app/j1_auth_manager/views/auth_manager_ui.erb.kapott +0 -234
- data/lib/j1_app/j1_auth_manager/views/auth_manager_ui.new.erb +0 -297
- data/lib/starter_web/_data/modules/defaults/jekyll_search.yml +0 -151
- data/lib/starter_web/_data/modules/jekyll_search.yml +0 -33
- data/lib/starter_web/assets/images/quotes/default.png +0 -0
- data/lib/starter_web/assets/images/quotes/people.png +0 -0
- data/lib/starter_web/collections/posts/public/series/_posts/2018-11-01-docker-using-shared-folders.adoc +0 -494
- data/lib/starter_web/collections/posts/public/test_posts/_posts/2020-09-11-test_post.adoc +0 -218
- data/lib/starter_web/collections/posts/public/test_posts/_posts/_includes/attributes.asciidoc +0 -34
- data/lib/starter_web/collections/posts/public/test_posts/_posts/_includes/documents/readme +0 -0
- data/lib/starter_web/collections/posts/public/test_posts/_posts/_includes/tables/debug_variables.asciidoc +0 -48
- data/lib/starter_web/collections/posts/public/test_posts/_posts/_includes/tables/readme +0 -0
- data/lib/starter_web/pages/public/test_pages/_includes/attributes.asciidoc +0 -49
- data/lib/starter_web/pages/public/test_pages/_includes/documents/100_gistblock.asciidoc +0 -27
- data/lib/starter_web/pages/public/test_pages/_includes/tables/000_bem_specifiers.asciidoc +0 -22
- data/lib/starter_web/pages/public/test_pages/_includes/tables/000_specifier_examples.asciidoc +0 -56
- data/lib/starter_web/pages/public/test_pages/breadcrumbs_tester.adoc +0 -62
- data/lib/starter_web/pages/public/test_pages/deck_of_posts.adoc +0 -165
- data/lib/starter_web/pages/public/test_pages/floating_actions_button.adoc +0 -523
- data/lib/starter_web/pages/public/test_pages/floating_ad.adoc +0 -208
- data/lib/starter_web/pages/public/test_pages/floating_div.adoc +0 -196
- data/lib/starter_web/pages/public/test_pages/lunr_tester.adoc +0 -89
- data/lib/starter_web/pages/public/test_pages/nav_pagination_tester.adoc +0 -284
- data/lib/starter_web/pages/public/test_pages/page_attribute_tester.adoc +0 -196
- data/lib/starter_web/pages/public/test_pages/responsive_images.adoc +0 -213
- data/lib/starter_web/pages/public/test_pages/responsive_tables.adoc +0 -210
- data/lib/starter_web/pages/public/test_pages/toccer_tester.adoc +0 -2245
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/attributes.asciidoc +0 -117
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/100_gistblock.asciidoc +0 -27
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_bottom_info.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_bottom_left_warning.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_bottom_right_danger.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_central_success.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_full_height_left_info.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_full_height_right_success.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_table_3_column.asciidoc +0 -47
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_top_info.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_top_left_info.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_top_right_success.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/419_advanced_modals_html.asciidoc +0 -928
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_test_youtube_video.adoc +0 -141
- data/lib/starter_web/pages/public/test_pages/vtutorials/100_basic_video.adoc +0 -109
@@ -1,13 +1,13 @@
|
|
1
1
|
---
|
2
2
|
title: Roundtrip
|
3
3
|
tagline: advanced bootstrap modals
|
4
|
+
date: 2020-11-08 12:00:00
|
4
5
|
description: >
|
5
6
|
Bootstrap modals are used to add dialogues to your web pages for user
|
6
7
|
notifications. To highlight important information to your visitor's. Modals
|
7
8
|
are positioned over everything else in the document so that messages
|
8
9
|
get the users attention.
|
9
10
|
|
10
|
-
date: 2020-11-08 12:00:00
|
11
11
|
tags: [ Roundtrip, Introduction ]
|
12
12
|
categories: [ Bootstrap, Modal, Extension ]
|
13
13
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
---
|
2
2
|
title: Roundtrip
|
3
3
|
tagline: responsive tables
|
4
|
+
date: 2020-11-09 12:00:00
|
4
5
|
description: >
|
5
6
|
Creating a design for responsive tables is challenging. The approach used by
|
6
7
|
J1 Template is based on pure CSS on top of the classic Bootstrap styles for
|
7
8
|
simplicity and portability to be viewed best on all devices and browsers.
|
8
9
|
|
9
|
-
date: 2020-11-09 12:00:00
|
10
10
|
tags: [ Roundtrip, Introduction ]
|
11
11
|
categories: [ Bootstrap, Table, Extension ]
|
12
12
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
---
|
2
2
|
title: Roundtrip
|
3
3
|
tagline: themes
|
4
|
+
date: 2020-11-10 12:00:00
|
4
5
|
description: >
|
5
6
|
The themes feature for J1 is in an experimental state for the template
|
6
7
|
system. Anyway, it makes sense to present what is possible using different
|
7
8
|
versions of Bootstrap's CSS styles for a website.
|
8
9
|
|
9
|
-
date: 2020-11-10 12:00:00
|
10
10
|
tags: [ Roundtrip, Introduction ]
|
11
11
|
categories: [ Theme, Module ]
|
12
12
|
|
@@ -1,237 +1,236 @@
|
|
1
|
-
---
|
2
|
-
title: Lunr
|
3
|
-
tagline: full index search
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
categories: [
|
13
|
-
|
14
|
-
toc: true
|
15
|
-
scrollbar: false
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
//
|
33
|
-
//
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
//
|
38
|
-
//
|
39
|
-
|
40
|
-
|
41
|
-
//
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
//
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
//
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
The
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
matching
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
should be prefixed with a
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
----
|
1
|
+
---
|
2
|
+
title: Lunr
|
3
|
+
tagline: full index search
|
4
|
+
date: 2020-11-08 12:00:00
|
5
|
+
description: >
|
6
|
+
Learn the search query language used by Lunr. The DSL used by Lunr
|
7
|
+
is quite close to Solr to support a powerful search experience
|
8
|
+
for better result. Using search expressions with wildcards, conditions
|
9
|
+
like and|or and fuzzy search algorithms are supported.
|
10
|
+
|
11
|
+
tags: [ Roundtrip, Introduction ]
|
12
|
+
categories: [ Search ]
|
13
|
+
|
14
|
+
toc: true
|
15
|
+
scrollbar: false
|
16
|
+
|
17
|
+
permalink: /pages/public/learn/roundtrip/lunr/
|
18
|
+
regenerate: true
|
19
|
+
|
20
|
+
resources: [ lunr, rouge ]
|
21
|
+
resource_options:
|
22
|
+
- attic:
|
23
|
+
padding_top: 400
|
24
|
+
padding_bottom: 50
|
25
|
+
opacity: 0.5
|
26
|
+
slides:
|
27
|
+
- url: /assets/images/modules/attics/banner/lunr-banner-1280x800.jpg
|
28
|
+
alt: Lunr
|
29
|
+
---
|
30
|
+
|
31
|
+
// Page Initializer
|
32
|
+
// =============================================================================
|
33
|
+
// Enable the Liquid Preprocessor
|
34
|
+
:page-liquid:
|
35
|
+
|
36
|
+
// Set page (local) attributes here
|
37
|
+
// -----------------------------------------------------------------------------
|
38
|
+
// :page--attr: <attr-value>
|
39
|
+
|
40
|
+
// Load Liquid procedures
|
41
|
+
// -----------------------------------------------------------------------------
|
42
|
+
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
43
|
+
|
44
|
+
// Load page attributes
|
45
|
+
// -----------------------------------------------------------------------------
|
46
|
+
{% include {{load_attributes}} scope="all" %}
|
47
|
+
|
48
|
+
|
49
|
+
// Page content
|
50
|
+
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
51
|
+
|
52
|
+
== Searching
|
53
|
+
|
54
|
+
After you have built an index of your documents, the next step is to
|
55
|
+
perform a search.
|
56
|
+
|
57
|
+
The simplest way to start is to pass the text on which you want to
|
58
|
+
search into the search method:
|
59
|
+
|
60
|
+
[source, javascript]
|
61
|
+
----
|
62
|
+
idx.search('foo')
|
63
|
+
----
|
64
|
+
|
65
|
+
The above will return details of all documents that match the term
|
66
|
+
“foo”. Although it looks like a string, the `search` method parses the
|
67
|
+
string into a search query. This supports special syntax for defining
|
68
|
+
more complex queries.
|
69
|
+
|
70
|
+
Searches for multiple terms are also supported. If a document matches
|
71
|
+
_at least_ one of the search terms, it will show in the results. The
|
72
|
+
search terms are combined with OR.
|
73
|
+
|
74
|
+
[source, javascript]
|
75
|
+
----
|
76
|
+
idx.search('foo bar')
|
77
|
+
----
|
78
|
+
|
79
|
+
The above example will match documents that contain either “foo” or
|
80
|
+
“bar”. Documents that contain _both_ will score more highly and will be
|
81
|
+
returned first.
|
82
|
+
|
83
|
+
=== Scoring
|
84
|
+
|
85
|
+
The score (also known as relevance) of a document is calculated by the
|
86
|
+
https://en.wikipedia.org/wiki/Okapi_BM25[BM25] algorithm, along with
|
87
|
+
other factors such as link:#Boosts[boosts]. You don’t need to worry too
|
88
|
+
much about the details of how BM25 works; to summarize, the more a
|
89
|
+
search term occurs in a single document, the more that term will
|
90
|
+
increase that document’s score, but the more a search term occurs in the
|
91
|
+
overall _collection_ of documents, the less that term will increase a
|
92
|
+
document’s score.
|
93
|
+
|
94
|
+
For example, let’s say you’re indexing a collection of documents about
|
95
|
+
JavaScript testing libraries. The terms “JavaScript”, “library”, and
|
96
|
+
“test” may occur very frequently throughout the entire collection, so
|
97
|
+
finding a document that mentions one of these terms isn’t very
|
98
|
+
significant. However, if you’re searching for “integration test”, only
|
99
|
+
three documents in the collection have the term “integration” in them,
|
100
|
+
and _one_ of them mentions “integration” many times, that will bring the
|
101
|
+
score for that one document higher up.
|
102
|
+
|
103
|
+
=== Wildcards
|
104
|
+
|
105
|
+
Lunr supports wildcards when performing searches. A wildcard is
|
106
|
+
represented as an asterisk (`*`) and can appear anywhere in a search
|
107
|
+
term. For example, the following will match all documents with words
|
108
|
+
beginning with “foo”:
|
109
|
+
|
110
|
+
[source, javascript]
|
111
|
+
----
|
112
|
+
idx.search('foo*')
|
113
|
+
----
|
114
|
+
|
115
|
+
This will match all documents that end with ‘oo’:
|
116
|
+
|
117
|
+
[source, javascript]
|
118
|
+
----
|
119
|
+
idx.search('*oo')
|
120
|
+
----
|
121
|
+
|
122
|
+
Leading wildcards, as in the above example, should be used sparingly.
|
123
|
+
They can have a negative impact on the performance of a search,
|
124
|
+
especially in large indexes.
|
125
|
+
|
126
|
+
Finally, a wildcard can be in the middle of a term. The following will
|
127
|
+
match any documents that contain a term that begins with “f” and ends in
|
128
|
+
“o”:
|
129
|
+
|
130
|
+
[source, javascript]
|
131
|
+
----
|
132
|
+
idx.search('f*o')
|
133
|
+
----
|
134
|
+
|
135
|
+
It is also worth noting that, when a search term contains a wildcard, no
|
136
|
+
stemming is performed on the search term.
|
137
|
+
|
138
|
+
=== Fields
|
139
|
+
|
140
|
+
By default, Lunr will search all fields in a document for the query
|
141
|
+
term, and it is possible to restrict a term to a specific field. The
|
142
|
+
following example searches for the term “foo” in the field title:
|
143
|
+
|
144
|
+
[source, javascript]
|
145
|
+
----
|
146
|
+
idx.search('title:foo')
|
147
|
+
----
|
148
|
+
|
149
|
+
The search term is prefixed with the name of the field, followed by a
|
150
|
+
colon (`:`). The field _must_ be one of the fields defined when building
|
151
|
+
the index. Unrecognised fields will lead to an error.
|
152
|
+
|
153
|
+
Field-based searches can be combined with all other term modifiers and
|
154
|
+
wildcards, as well as other terms. For example, to search for words
|
155
|
+
beginning with “foo” in the title or with “bar” in any field the
|
156
|
+
following query can be used:
|
157
|
+
|
158
|
+
[source, javascript]
|
159
|
+
----
|
160
|
+
idx.search('title:foo* bar')
|
161
|
+
----
|
162
|
+
|
163
|
+
=== Boosts
|
164
|
+
|
165
|
+
In multi-term searches, a single term may be important than others. For
|
166
|
+
these cases Lunr supports term level boosts. Any document that matches a
|
167
|
+
boosted term will get a higher relevance score, and appear higher up in
|
168
|
+
the results. A boost is applied by appending a caret (`^`) and then a
|
169
|
+
positive integer to a term.
|
170
|
+
|
171
|
+
[source, javascript]
|
172
|
+
----
|
173
|
+
idx.search('foo^10 bar')
|
174
|
+
----
|
175
|
+
|
176
|
+
The above example weights the term “foo” 10 times higher than the term
|
177
|
+
“bar”. The boost value can be any positive integer, and different terms
|
178
|
+
can have different boosts:
|
179
|
+
|
180
|
+
[source, javascript]
|
181
|
+
----
|
182
|
+
idx.search('foo^10 bar^5 baz')
|
183
|
+
----
|
184
|
+
|
185
|
+
=== Fuzzy Matches
|
186
|
+
|
187
|
+
Lunr supports fuzzy matching search terms in documents, which can be
|
188
|
+
helpful if the spelling of a term is unclear, or to increase the number
|
189
|
+
of search results that are returned. The amount of fuzziness to allow
|
190
|
+
when searching can also be controlled. Fuzziness is applied by appending
|
191
|
+
a tilde (`~`) and then a positive integer to a term. The following
|
192
|
+
search matches all documents that have a word within 1 edit distance of
|
193
|
+
“foo”:
|
194
|
+
|
195
|
+
[source, javascript]
|
196
|
+
----
|
197
|
+
idx.search('foo~1')
|
198
|
+
----
|
199
|
+
|
200
|
+
An edit distance of 1 allows words to match if either adding, removing,
|
201
|
+
changing or transposing a character in the word would lead to a match.
|
202
|
+
For example “boo” requires a single edit (replacing “f” with “b”) and
|
203
|
+
would match, but “boot” would not as it also requires an additional “t”
|
204
|
+
at the end.
|
205
|
+
|
206
|
+
=== Term Presence
|
207
|
+
|
208
|
+
By default, Lunr combines multiple terms together in a search with a
|
209
|
+
logical OR. That is, a search for “foo bar” will match documents that
|
210
|
+
contain “foo” or contain “bar” or contain both. This behaviour is
|
211
|
+
controllable at the term level, i.e. the presence of each term in
|
212
|
+
matching documents can be specified. By default each term is optional in
|
213
|
+
a matching document, though a document must have at least one matching
|
214
|
+
term. It is possible to specify that a term must be present in matching
|
215
|
+
documents, or that it must be absent in matching documents.
|
216
|
+
|
217
|
+
To indicate that a term must be present in matching documents the term
|
218
|
+
should be prefixed with a plus (`+`) and to indicate that a term must be
|
219
|
+
absent the term should be prefixed with a minus (`-`). Without either
|
220
|
+
prefix the term’s presence in matching documents is optional.
|
221
|
+
|
222
|
+
The below example searches for documents that must contain “foo”, might
|
223
|
+
contain “bar” and must not contain “baz”:
|
224
|
+
|
225
|
+
[source, javascript]
|
226
|
+
----
|
227
|
+
idx.search("+foo bar -baz")
|
228
|
+
----
|
229
|
+
|
230
|
+
To simulate a logical AND search of “foo AND bar” mark both terms as
|
231
|
+
required:
|
232
|
+
|
233
|
+
[source, javascript]
|
234
|
+
----
|
235
|
+
idx.search("+foo +bar")
|
236
|
+
----
|