middlemac 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile +11 -1
- data/README.md +38 -6
- data/Rakefile +7 -2
- data/documentation_project/.gitignore +1 -1
- data/documentation_project/Contents/Info.plist.erb +1 -1
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/_data/globals.yml +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/_data/locale-list.json +318 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/_layouts/layout-apple-modern-aside.haml +19 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/_layouts/layout-apple-modern.haml +61 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/_layouts/layout-blank.haml +11 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/_partials/_yard_middlemac_config.erb +276 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/_partials/_yard_middlemac_helpers.erb +897 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/_partials/_yard_middlemac_helpers_extended.erb +369 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets/partials/_yard_pagegroups_resources.erb → SharedGlobalAssets/_partials/_yard_middlemac_resources.erb} +342 -37
- data/documentation_project/Contents/Resources/{Base.lproj/assets/partials/_yard_targets_config.erb → SharedGlobalAssets/_partials/_yard_mmtargets_config.erb} +15 -110
- data/documentation_project/Contents/Resources/{Base.lproj/assets/partials/_yard_targets_helpers.erb → SharedGlobalAssets/_partials/_yard_mmtargets_helpers.erb} +4 -4
- data/documentation_project/Contents/Resources/{Base.lproj/assets/partials/_yard_targets_helpers_extended.erb → SharedGlobalAssets/_partials/_yard_mmtargets_helpers_extended.erb} +6 -2
- data/documentation_project/Contents/Resources/{Base.lproj/assets/partials/_yard_targets_instance.erb → SharedGlobalAssets/_partials/_yard_mmtargets_instance.erb} +1 -1
- data/documentation_project/Contents/Resources/{Base.lproj/assets/partials/_yard_targets_resources.erb → SharedGlobalAssets/_partials/_yard_mmtargets_resources.erb} +2 -2
- data/documentation_project/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-120x120.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-152x152.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-57x57.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-76x76.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-ipad.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-ipad_2x.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-iphone.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-iphone_2x.png +0 -0
- data/documentation_project/Contents/Resources/{shared → SharedGlobalAssets/convention}/icon_256x256.png +0 -0
- data/documentation_project/Contents/Resources/{shared → SharedGlobalAssets/convention}/icon_256x256@2x.png +0 -0
- data/documentation_project/Contents/Resources/{shared → SharedGlobalAssets/convention}/icon_32x32.png +0 -0
- data/documentation_project/Contents/Resources/{shared → SharedGlobalAssets/convention}/icon_32x32@2x.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/apple.css +3831 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/L0200_LeftArrow_2x.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/L0201_RightArrow_2x.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/arrow-blue.svg +1 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/arrow.svg +1 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/ask-siri.svg +1 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-clear-search.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-close-2.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-close-learnmore.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-close.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-search-small.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-search.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-toc-rtl.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-toc-small-rtl.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-toc-small.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-toc-toggle-rtl.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-toc-toggle.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-toc.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/changelanguage_icon2x.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/force-click.svg +1 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-arrow-2.svg +1 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-arrow.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-close.svg +1 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-external-link-lg.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-external-link.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-pause.svg +1 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-play.svg +1 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-replay.svg +1 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-warning-black.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-warning-eu.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-warning.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-120x120.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-152x152.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-57x57.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-76x76.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-ipad.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-ipad_2x.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-iphone.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-iphone_2x.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/movie-play_2x.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/nav-left.svg +1 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/nav-paddle-left.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/nav-paddle-right.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/nav-right.svg +1 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/search_image_large.svg +1 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/tip.svg +1 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/toc_blue_large.svg +1 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/apple/css/img/toc_large.svg +1 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets/stylesheets/_github.scss → SharedGlobalAssets/css/middlemac/github.css.scss} +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/middlemac/middlemac.css.scss +129 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/middlemac/note.svg +19 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/middlemac/tip.svg +1 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/css/middlemac/warning.svg +19 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/fonts/_dummy.txt +1 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/all-sample.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/all-sample@2x.png +0 -0
- data/documentation_project/Contents/Resources/{shared → SharedGlobalAssets/images}/free-icon_256x256.png +0 -0
- data/documentation_project/Contents/Resources/{shared → SharedGlobalAssets/images}/free-icon_256x256@2x.png +0 -0
- data/documentation_project/Contents/Resources/{shared → SharedGlobalAssets/images}/free-icon_32x32.png +0 -0
- data/documentation_project/Contents/Resources/{shared → SharedGlobalAssets/images}/free-icon_32x32@2x.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/free-middlemac-logo-small.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/free-middlemac-logo-small@2x.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/free-middlemac-logo.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/free-middlemac-logo@2x.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/middlemac-logo-small.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/middlemac-logo-small@2x.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/middlemac-logo.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/middlemac-logo@2x.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/mm-targets/free-logo-small.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/mm-targets/free-logo-small@2x.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/mm-targets/free-logo.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/mm-targets/free-logo@2x.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/mm-targets/pro-logo-small.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/mm-targets/pro-logo-small@2x.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/mm-targets/pro-logo.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/mm-targets/pro-logo@2x.png +0 -0
- data/documentation_project/Contents/Resources/{shared → SharedGlobalAssets/images}/pro-icon_256x256.png +0 -0
- data/documentation_project/Contents/Resources/{shared → SharedGlobalAssets/images}/pro-icon_256x256@2x.png +0 -0
- data/documentation_project/Contents/Resources/{shared → SharedGlobalAssets/images}/pro-icon_32x32.png +0 -0
- data/documentation_project/Contents/Resources/{shared → SharedGlobalAssets/images}/pro-icon_32x32@2x.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/pro-middlemac-logo-small.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/pro-middlemac-logo-small@2x.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/pro-middlemac-logo.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/images/pro-middlemac-logo@2x.png +0 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/js/app.5.1.27.js +6295 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/js/middlemac-debug.js +20 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/js/vendor.js +226 -0
- data/documentation_project/Contents/Resources/en.lproj/010_what_is_middlemac/index.html.md.erb +114 -0
- data/documentation_project/Contents/Resources/en.lproj/020_apple_help_features/index.html.md.erb +241 -0
- data/documentation_project/Contents/Resources/{Base.lproj/020_setup_tutorial/index.html.md.erb → en.lproj/030_get_started/010_set_up_middlemac.html.md.erb} +33 -37
- data/documentation_project/Contents/Resources/en.lproj/030_get_started/020_your_first_help_book.html.md.erb +374 -0
- data/documentation_project/Contents/Resources/en.lproj/030_get_started/030_serve_your_help_book.html.md.erb +97 -0
- data/documentation_project/Contents/Resources/en.lproj/030_get_started/040_build_your_help_book.html.md.erb +56 -0
- data/documentation_project/Contents/Resources/{Base.lproj/030_skills_refresher/10_markdown_skill.html.md.erb → en.lproj/030_get_started/050_about_markdown.html.md.erb} +12 -14
- data/documentation_project/Contents/Resources/{Base.lproj/030_skills_refresher/30_middleman_skill.html.md.erb → en.lproj/030_get_started/060_about_middleman.html.md.erb} +10 -14
- data/documentation_project/Contents/Resources/en.lproj/030_get_started/070_about_ruby.html.md.erb +194 -0
- data/documentation_project/Contents/Resources/en.lproj/030_get_started/aside_frontmatter.html.md.erb +64 -0
- data/documentation_project/Contents/Resources/en.lproj/030_get_started/index.html.md.erb +4 -0
- data/documentation_project/Contents/Resources/en.lproj/040_compose_project/010_setup.html.md.erb +204 -0
- data/documentation_project/Contents/Resources/{Base.lproj/030_skills_refresher/60_filetypes_skill.html.md.erb → en.lproj/040_compose_project/020_filetypes.html.md.erb} +7 -11
- data/documentation_project/Contents/Resources/en.lproj/040_compose_project/030_directory_conventions.html.md.erb +206 -0
- data/documentation_project/Contents/Resources/en.lproj/040_compose_project/040_groups.html.md.erb +96 -0
- data/documentation_project/Contents/Resources/en.lproj/040_compose_project/050_targets_and_features.html.md.erb +220 -0
- data/documentation_project/Contents/Resources/en.lproj/040_compose_project/060_frontmatter.html.md.erb +98 -0
- data/documentation_project/Contents/Resources/{Base.lproj/060_content/100_using_local_data.html.md.erb → en.lproj/040_compose_project/070_local_data.html.md.erb} +22 -9
- data/documentation_project/Contents/Resources/{Base.lproj/060_content/030_helpers.html.md.erb → en.lproj/040_compose_project/080_helpers/010_helpers.html.md.erb} +35 -69
- data/documentation_project/Contents/Resources/en.lproj/040_compose_project/080_helpers/020_markdown_links.html.md.erb +51 -0
- data/documentation_project/Contents/Resources/en.lproj/040_compose_project/080_helpers/030_markdown_images.html.md.erb +52 -0
- data/documentation_project/Contents/Resources/en.lproj/040_compose_project/080_helpers/index.html.md.erb +4 -0
- data/documentation_project/Contents/Resources/en.lproj/040_compose_project/090_partials.html.md.erb +64 -0
- data/documentation_project/Contents/Resources/en.lproj/040_compose_project/100_resources.html.md.erb +36 -0
- data/documentation_project/Contents/Resources/en.lproj/040_compose_project/110_implement_features.html.md.erb +197 -0
- data/documentation_project/Contents/Resources/en.lproj/040_compose_project/120_preview_build.html.md.erb +85 -0
- data/documentation_project/Contents/Resources/en.lproj/040_compose_project/index.html.md.erb +4 -0
- data/documentation_project/Contents/Resources/{Base.lproj/050_structure → en.lproj/040_compose_project}/not_free.html.md.erb +4 -11
- data/documentation_project/Contents/Resources/{Base.lproj/050_structure → en.lproj/040_compose_project}/not_pro.html.md.erb +4 -11
- data/documentation_project/Contents/Resources/en.lproj/100_reference/010_apple_help_books/010_dissect_help_book.html.md.erb +295 -0
- data/documentation_project/Contents/Resources/en.lproj/100_reference/010_apple_help_books/020_dissect_modern_help.html.md.erb +246 -0
- data/documentation_project/Contents/Resources/en.lproj/100_reference/010_apple_help_books/index.html.md.erb +4 -0
- data/documentation_project/Contents/Resources/en.lproj/100_reference/030_backwards_compatibility.html.md.erb +82 -0
- data/documentation_project/Contents/Resources/en.lproj/100_reference/040_directory_reference.html.md.erb +260 -0
- data/documentation_project/Contents/Resources/en.lproj/100_reference/050_xcode_integration.html.md.erb +165 -0
- data/documentation_project/Contents/Resources/{Base.lproj/100_reference/10_cli_ref.html.md.erb → en.lproj/100_reference/060_cli_ref.html.md.erb} +3 -29
- data/documentation_project/Contents/Resources/en.lproj/100_reference/080_frontmatter_reference.html.md.erb +111 -0
- data/documentation_project/Contents/Resources/en.lproj/100_reference/120_api_reference/070_config_ref.html.md.erb +31 -0
- data/documentation_project/Contents/Resources/en.lproj/100_reference/120_api_reference/090_helpers_ref.html.md.erb +20 -0
- data/documentation_project/Contents/Resources/{Base.lproj/100_reference/30_helpers_ext_ref.html.md.erb → en.lproj/100_reference/120_api_reference/091_helpers_ext_ref.html.md.erb} +3 -21
- data/documentation_project/Contents/Resources/{Base.lproj/100_reference/50_resource_ext_ref.html.md.erb → en.lproj/100_reference/120_api_reference/100_resource_ext_ref.html.md.erb} +3 -8
- data/documentation_project/Contents/Resources/en.lproj/100_reference/120_api_reference/index.html.md.erb +4 -0
- data/documentation_project/Contents/Resources/en.lproj/100_reference/index.html.md.erb +4 -0
- data/documentation_project/Contents/Resources/{Base.lproj → en.lproj}/110_acknowledgements/index.html.md.erb +5 -7
- data/documentation_project/Contents/Resources/en.lproj/ExactMatch.plist.erb +15 -0
- data/documentation_project/Contents/Resources/{Base.lproj → en.lproj}/InfoPlist.strings.erb +0 -0
- data/documentation_project/Contents/Resources/en.lproj/asides/aside_description.html.md.erb +21 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/apple_help_books_folder_reference.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/apple_help_books_project_membership.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/apple_help_features_aside_example.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/apple_help_features_chapter_heading.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/apple_help_features_copyright_footer.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/apple_help_features_landing_links.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/apple_help_features_language_chooser.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/apple_help_features_navigator.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/apple_help_features_see_also.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/apple_help_features_title_icons.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/apple_help_features_universal.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/get_started_init_contents.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/get_started_init_english.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/xcode_integration_config_sets.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/xcode_integration_plist_definitions.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/xcode_integration_target_dependencies.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/xcode_integration_target_template.png +0 -0
- data/documentation_project/Contents/Resources/en.lproj/assets/images/xcode_integration_tool_configuration.png +0 -0
- data/documentation_project/Contents/Resources/{Base.lproj → en.lproj}/index.html.md.erb +3 -13
- data/documentation_project/Contents/Resources/en.lproj/locale-info.json.erb +16 -0
- data/documentation_project/Contents/Resources/en.lproj/navigation.json.erb +57 -0
- data/documentation_project/Contents/Resources/en.lproj/searchTree.json.erb +1 -0
- data/documentation_project/Contents/Resources/es.lproj/ExactMatch.plist.erb +15 -0
- data/{fixtures/middlemac_app/Contents/Resources/Base.lproj → documentation_project/Contents/Resources/es.lproj}/InfoPlist.strings.erb +0 -0
- data/documentation_project/Contents/Resources/es.lproj/index.html.md.erb +27 -0
- data/documentation_project/Contents/Resources/es.lproj/locale-info.json.erb +16 -0
- data/documentation_project/Contents/Resources/es.lproj/navigation.json.erb +57 -0
- data/documentation_project/Contents/Resources/es.lproj/searchTree.json.erb +1 -0
- data/documentation_project/Contents/Resources/index.html.erb +118 -0
- data/documentation_project/Contents/Resources/locale-list.json.erb +14 -0
- data/documentation_project/Gemfile +4 -17
- data/documentation_project/HelpViewerApp/HelpViewerApp/AppDelegate.h +1 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp/AppDelegate.m +6 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp/Base.lproj/MainMenu.xib +39 -10
- data/documentation_project/HelpViewerApp/HelpViewerApp/Info-free.plist +4 -4
- data/documentation_project/HelpViewerApp/HelpViewerApp/Info-pro.plist +4 -4
- data/documentation_project/HelpViewerApp/HelpViewerApp/versions.xcconfig +8 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/project.pbxproj +79 -101
- data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/xcshareddata/xcschemes/Help (free).xcscheme +11 -6
- data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/xcshareddata/xcschemes/Help (pro).xcscheme +80 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/xcshareddata/xcschemes/HelpViewerApp (free).xcscheme +1 -1
- data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/xcshareddata/xcschemes/HelpViewerApp (pro).xcscheme +1 -1
- data/documentation_project/HelpViewerApp/README.md +6 -26
- data/documentation_project/{Middlemac (free).help → Middlemac_(free).help}/.gitignore +0 -0
- data/documentation_project/{Middlemac (pro).help → Middlemac_(pro).help}/.gitignore +0 -0
- data/documentation_project/config.rb +68 -100
- data/documentation_project/makefile +93 -0
- data/documentation_project/middlemac.webloc +0 -0
- data/features/helpers_features.feature +59 -0
- data/features/main_features.feature +21 -17
- data/features/support/env.rb +0 -14
- data/fixtures/middlemac_app/.gitignore +0 -1
- data/fixtures/middlemac_app/Contents/Info.plist.erb +1 -1
- data/fixtures/middlemac_app/Contents/Resources/{Base.lproj/assets → SharedGlobalAssets}/_data/globals.yml +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/_data/locale-list.json +318 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/_layouts/layout-apple-modern-aside.haml +19 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/_layouts/layout-apple-modern.haml +61 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/_layouts/layout-blank.haml +11 -0
- data/fixtures/middlemac_app/Contents/Resources/{Base.lproj/assets/partials → SharedGlobalAssets/_partials}/_partials_dir_partial.erb +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-120x120.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-152x152.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-57x57.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-76x76.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-ipad.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-ipad_2x.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-iphone.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/convention/icon-webclip-iphone_2x.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/{shared → SharedGlobalAssets/convention}/icon_256x256.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/{shared → SharedGlobalAssets/convention}/icon_256x256@2x.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/{shared → SharedGlobalAssets/convention}/icon_32x32.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/{shared → SharedGlobalAssets/convention}/icon_32x32@2x.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/apple.css +3831 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/L0200_LeftArrow_2x.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/L0201_RightArrow_2x.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/arrow-blue.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/arrow.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/ask-siri.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-clear-search.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-close-2.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-close-learnmore.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-close.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-search-small.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-search.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-toc-rtl.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-toc-small-rtl.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-toc-small.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-toc-toggle-rtl.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-toc-toggle.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/button-toc.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/changelanguage_icon2x.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/force-click.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-arrow-2.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-arrow.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-close.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-external-link-lg.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-external-link.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-pause.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-play.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-replay.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-warning-black.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-warning-eu.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-warning.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-120x120.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-152x152.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-57x57.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-76x76.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-ipad.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-ipad_2x.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-iphone.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/icon-webclip-iphone_2x.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/movie-play_2x.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/nav-left.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/nav-paddle-left.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/nav-paddle-right.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/nav-right.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/search_image_large.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/tip.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/toc_blue_large.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/apple/css/img/toc_large.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/{Base.lproj/assets/stylesheets/_github.scss → SharedGlobalAssets/css/middlemac/github.css.scss} +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/middlemac/middlemac.css.scss +129 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/middlemac/note.svg +19 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/middlemac/tip.svg +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/css/middlemac/warning.svg +19 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/fonts/_dummy.txt +1 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/images/global_thing_32x32.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/js/app.5.1.27.js +6295 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/js/middlemac-debug.js +20 -0
- data/fixtures/middlemac_app/Contents/Resources/SharedGlobalAssets/js/vendor.js +226 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/10_hello_world_file.html.md.erb +17 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/30_sample_group_number_one/index.html.md.erb +8 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/30_sample_group_number_one/page_one.html.md.erb +108 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/30_sample_group_number_one/page_two.html.md.erb +36 -0
- data/fixtures/middlemac_app/Contents/Resources/{Base.lproj → en.lproj}/40_sample_group_number_two/01_nested_group_example/01_page_one.html.md.erb +0 -5
- data/fixtures/middlemac_app/Contents/Resources/{Base.lproj → en.lproj}/40_sample_group_number_two/01_nested_group_example/02_pagina_dos.html.md.erb +0 -5
- data/fixtures/middlemac_app/Contents/Resources/{Base.lproj → en.lproj}/40_sample_group_number_two/01_nested_group_example/03_page_san.html.md.erb +0 -5
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/40_sample_group_number_two/01_nested_group_example/index.html.md.erb +4 -0
- data/fixtures/middlemac_app/Contents/Resources/{Base.lproj → en.lproj}/40_sample_group_number_two/02_page_two.html.md.erb +0 -5
- data/fixtures/middlemac_app/Contents/Resources/{Base.lproj → en.lproj}/40_sample_group_number_two/03_page_three.html.md.erb +0 -5
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/40_sample_group_number_two/index.html.md.erb +4 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/50_testing_world_file.html.md.erb +58 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/60_goodbye_world_file.html.md.erb +203 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/ExactMatch.plist.erb +15 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/InfoPlist.strings.erb +10 -0
- data/fixtures/middlemac_app/Contents/Resources/{Base.lproj → en.lproj}/_new_style_partial.erb +0 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/asides/aside_description.html.md.erb +20 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/assets/_partials/_localized_partials_dir_partial.erb +1 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/assets/images/all-graphic_32x32.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/assets/images/neat_thing_32x32.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/assets/images/subdirectory/logo_32x32.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/assets/images/subdirectory/pro-image_32x32.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/copyright.html.md.erb +19 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/index.html.md.erb +20 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/locale-info.json.erb +16 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/navigation.json.erb +57 -0
- data/fixtures/middlemac_app/Contents/Resources/en.lproj/searchTree.json.erb +1 -0
- data/fixtures/middlemac_app/Contents/Resources/es.lproj/10_hola_mundo_file.html.md.erb +15 -0
- data/fixtures/middlemac_app/Contents/Resources/es.lproj/60_goodbye_world_file.html.md.erb +193 -0
- data/fixtures/middlemac_app/Contents/Resources/es.lproj/ExactMatch.plist.erb +15 -0
- data/fixtures/middlemac_app/Contents/Resources/es.lproj/InfoPlist.strings.erb +10 -0
- data/fixtures/middlemac_app/Contents/Resources/es.lproj/assets/images/all-graphic_32x32.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/es.lproj/assets/images/neat_thing_32x32.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/es.lproj/assets/images/subdirectory/logo_32x32.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/es.lproj/assets/images/subdirectory/pro-image_32x32.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/es.lproj/copyright.html.md.erb +19 -0
- data/fixtures/middlemac_app/Contents/Resources/es.lproj/index.html.md.erb +21 -0
- data/fixtures/middlemac_app/Contents/Resources/es.lproj/locale-info.json.erb +16 -0
- data/fixtures/middlemac_app/Contents/Resources/es.lproj/navigation.json.erb +57 -0
- data/fixtures/middlemac_app/Contents/Resources/es.lproj/searchTree.json.erb +1 -0
- data/fixtures/middlemac_app/Contents/Resources/index.html.erb +118 -0
- data/fixtures/middlemac_app/Contents/Resources/locale-list.json.erb +14 -0
- data/fixtures/middlemac_app/Gemfile +4 -17
- data/fixtures/middlemac_app/config.rb +71 -100
- data/fixtures/middlemac_app/makefile +93 -0
- data/fixtures/middlemac_app/middlemac.webloc +0 -0
- data/lib/middlemac/extension.rb +123 -211
- data/lib/middlemac/helpers.rb +470 -0
- data/lib/middlemac/private.rb +494 -0
- data/lib/middlemac/sitemap.rb +516 -0
- data/lib/middlemac/trie.rb +37 -0
- data/lib/middlemac/version.rb +1 -1
- data/lib/middlemac.rb +4 -0
- data/middlemac.gemspec +7 -6
- data/resources/stopwords/ar.plist +206 -0
- data/resources/stopwords/ca.plist +0 -0
- data/resources/stopwords/cs.plist +30 -0
- data/resources/stopwords/da.plist +6 -0
- data/resources/stopwords/de.plist +119 -0
- data/resources/stopwords/el.plist +0 -0
- data/resources/stopwords/en.plist +0 -0
- data/resources/stopwords/es.plist +282 -0
- data/resources/stopwords/es_419.plist +282 -0
- data/resources/stopwords/fi.plist +206 -0
- data/resources/stopwords/fr.plist +132 -0
- data/resources/stopwords/he.plist +0 -0
- data/resources/stopwords/hr.plist +0 -0
- data/resources/stopwords/hu.plist +44 -0
- data/resources/stopwords/id.plist +6 -0
- data/resources/stopwords/it.plist +153 -0
- data/resources/stopwords/ja.plist +6 -0
- data/resources/stopwords/ko.plist +106 -0
- data/resources/stopwords/ms.plist +6 -0
- data/resources/stopwords/nl.plist +198 -0
- data/resources/stopwords/no.plist +207 -0
- data/resources/stopwords/pl.plist +207 -0
- data/resources/stopwords/pt.plist +207 -0
- data/resources/stopwords/pt_PT.plist +207 -0
- data/resources/stopwords/ro.plist +0 -0
- data/resources/stopwords/ru.plist +207 -0
- data/resources/stopwords/sk.plist +0 -0
- data/resources/stopwords/sv.plist +280 -0
- data/resources/stopwords/th.plist +56 -0
- data/resources/stopwords/tr.plist +200 -0
- data/resources/stopwords/uk.plist +764 -0
- data/resources/stopwords/vi.plist +6 -0
- data/resources/stopwords/zh_CN.plist +207 -0
- data/resources/stopwords/zh_TW.plist +207 -0
- data/yard/readme.md +4 -4
- metadata +394 -219
- data/documentation_project/Contents/Resources/Base.lproj/010_what_is_middlemac/index.html.md.erb +0 -126
- data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/20_frontmatter_skill.html.md.erb +0 -54
- data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/40_ruby_skill.html.md.erb +0 -67
- data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/50_ruby_ecosystem.html.md.erb +0 -136
- data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/index.html.md.erb +0 -35
- data/documentation_project/Contents/Resources/Base.lproj/040_setup/index.html.md.erb +0 -88
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/010_directories_and_images.html.md.erb +0 -176
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/020_layouts_and_templates.html.md.erb +0 -71
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/025_css.html.md.erb +0 -71
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/030_groups.html.md.erb +0 -83
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/040_breadcrumbs.html.md.erb +0 -43
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/050_navigator.html.md.erb +0 -26
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/060_targets.html.md.erb +0 -63
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/070_features.html.md.erb +0 -122
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/index.html.md.erb +0 -21
- data/documentation_project/Contents/Resources/Base.lproj/060_content/010_frontmatter.html.md.erb +0 -88
- data/documentation_project/Contents/Resources/Base.lproj/060_content/040_partials.html.md.erb +0 -121
- data/documentation_project/Contents/Resources/Base.lproj/060_content/050_resources.html.md.erb +0 -60
- data/documentation_project/Contents/Resources/Base.lproj/060_content/070_including_excluding.html.md.erb +0 -68
- data/documentation_project/Contents/Resources/Base.lproj/060_content/080_markdown_links_images.html.md.erb +0 -93
- data/documentation_project/Contents/Resources/Base.lproj/060_content/090_css_image_sizes.html.md.erb +0 -90
- data/documentation_project/Contents/Resources/Base.lproj/060_content/index.html.md.erb +0 -21
- data/documentation_project/Contents/Resources/Base.lproj/070_preview_build/index.html.md.erb +0 -78
- data/documentation_project/Contents/Resources/Base.lproj/090_build_application/10_apple_help_setup.html.md.erb +0 -110
- data/documentation_project/Contents/Resources/Base.lproj/090_build_application/20_xcode_integration.html.md.erb +0 -64
- data/documentation_project/Contents/Resources/Base.lproj/090_build_application/index.html.md.erb +0 -25
- data/documentation_project/Contents/Resources/Base.lproj/100_reference/20_config_ref.html.md.erb +0 -56
- data/documentation_project/Contents/Resources/Base.lproj/100_reference/40_helpers_ref.html.md.erb +0 -45
- data/documentation_project/Contents/Resources/Base.lproj/100_reference/index.html.md.erb +0 -26
- data/documentation_project/Contents/Resources/Base.lproj/120_backwards_compatibility/index.html.md.erb +0 -88
- data/documentation_project/Contents/Resources/Base.lproj/130_all_help_content/index.html.md.erb +0 -15
- data/documentation_project/Contents/Resources/Base.lproj/assets/_layouts/layout-html4.haml +0 -22
- data/documentation_project/Contents/Resources/Base.lproj/assets/_layouts/layout-xhtml.haml +0 -28
- data/documentation_project/Contents/Resources/Base.lproj/assets/_layouts/template-logo-large.haml +0 -30
- data/documentation_project/Contents/Resources/Base.lproj/assets/_layouts/template-logo-medium.haml +0 -30
- data/documentation_project/Contents/Resources/Base.lproj/assets/_layouts/template-logo-small.haml +0 -30
- data/documentation_project/Contents/Resources/Base.lproj/assets/fonts/font-awesome/FontAwesome.otf +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.eot +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.svg +0 -655
- data/documentation_project/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.woff +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.woff2 +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/middlemac-extras-small.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/middlemac-extras-small@2x.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/middlemac-extras.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/middlemac-extras@2x.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/sub_images/middlemac-extras-small.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/sub_images/middlemac-extras-small@2x.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/sub_images/middlemac-extras.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/sub_images/middlemac-extras@2x.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-pagegroups/middleman-pagegroups-small.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-pagegroups/middleman-pagegroups.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/javascripts/all.js +0 -1
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_breadcrumbs.haml +0 -11
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_breadcrumbs_alt.haml +0 -15
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_brethren.haml +0 -18
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_brethren_index.haml +0 -14
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_legitimate_children.haml +0 -16
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_prev_next.haml +0 -21
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_toc_index.haml +0 -21
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_extras_config.erb +0 -200
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_extras_helpers.erb +0 -146
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_extras_helpers_extended.erb +0 -135
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_middlemac_config.erb +0 -207
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_middlemac_helpers.erb +0 -297
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_middlemac_helpers_extended.erb +0 -96
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_pagegroups_config.erb +0 -744
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_pagegroups_helpers.erb +0 -710
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_pagegroups_helpers_css.erb +0 -523
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_pagegroups_helpers_extended.erb +0 -56
- data/documentation_project/Contents/Resources/Base.lproj/assets/stylesheets/_apple_helpbook.scss +0 -946
- data/documentation_project/Contents/Resources/Base.lproj/assets/stylesheets/_normalize.scss +0 -374
- data/documentation_project/Contents/Resources/Base.lproj/assets/stylesheets/breadcrumb-separator-light.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/stylesheets/image_sizes.css.erb +0 -8
- data/documentation_project/Contents/Resources/Base.lproj/assets/stylesheets/style.css.scss +0 -4
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/10_hello_world_file.html.md.erb +0 -22
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/20_goodbye_world_file.html.md.erb +0 -22
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/30_sample_group_number_one/index.html.md.erb +0 -24
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/30_sample_group_number_one/page_one.html.md.erb +0 -20
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/30_sample_group_number_one/page_two.html.md.erb +0 -19
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/40_sample_group_number_two/01_nested_group_example/index.html.md.erb +0 -18
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/40_sample_group_number_two/index.html.md.erb +0 -24
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/45_testing_world_file.html.md.erb +0 -55
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/50_entire_world_file.html.md.erb +0 -15
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_layouts/layout-html4.haml +0 -22
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_layouts/layout-xhtml.haml +0 -28
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_layouts/template-logo-large.haml +0 -30
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_layouts/template-logo-medium.haml +0 -30
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_layouts/template-logo-small.haml +0 -30
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/fonts/font-awesome/FontAwesome.otf +0 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.eot +0 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.svg +0 -655
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.woff +0 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.woff2 +0 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/images/_empty_directory.html.md.erb +0 -1
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/javascripts/all.js +0 -1
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_breadcrumbs.haml +0 -11
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_breadcrumbs_alt.haml +0 -15
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_brethren.haml +0 -18
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_brethren_index.haml +0 -14
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_legitimate_children.haml +0 -16
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_prev_next.haml +0 -21
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_toc_index.haml +0 -21
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/stylesheets/_apple_helpbook.scss +0 -946
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/stylesheets/_normalize.scss +0 -374
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/stylesheets/breadcrumb-separator-light.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/stylesheets/image_sizes.css.erb +0 -8
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/stylesheets/style.css.scss +0 -4
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/index.html.md.erb +0 -17
@@ -1,17 +1,10 @@
|
|
1
1
|
---
|
2
|
-
title: Helpers
|
2
|
+
title: Basic Helpers
|
3
3
|
blurb: A brief look at how <em>Middlemac</em>’s Helpers can help you out.
|
4
|
-
layout: template-logo-medium
|
5
4
|
---
|
6
5
|
<%= md_links %>
|
7
6
|
<%= md_images %>
|
8
7
|
|
9
|
-
|
10
|
-
<%= current_page.data.title %>
|
11
|
-
==============================
|
12
|
-
|
13
|
-
<%= current_page.data.blurb %>
|
14
|
-
|
15
8
|
Helpers are methods that return a string, typically a snippet of HTML code, or
|
16
9
|
sometimes a value that can be used with ERB. This page highlights some of the
|
17
10
|
helpers available in _Middleman_ and added via _Middlemac_.
|
@@ -64,22 +57,18 @@ the most common ones you will use.
|
|
64
57
|
of your images if you’ve followed the conventions.
|
65
58
|
|
66
59
|
~~~ erb
|
67
|
-
<%%= image_tag '
|
60
|
+
<%%= image_tag 'all-sample' %>
|
68
61
|
~~~
|
69
62
|
|
70
|
-
|
71
|
-
<%= image_tag 'my_image.png' %>
|
72
|
-
~~~
|
63
|
+
<%= image_tag 'all-sample', :figure => false %>
|
73
64
|
|
74
65
|
You can also specify attributes:
|
75
66
|
|
76
67
|
~~~ erb
|
77
|
-
<%%= image_tag '
|
68
|
+
<%%= image_tag 'all-sample', :alt => 'A murder of crows', :title => 'Birds' %>
|
78
69
|
~~~
|
79
70
|
|
80
|
-
|
81
|
-
<%= image_tag 'my_image.png', :alt => 'A murder of crows', :title => 'Birds' %>
|
82
|
-
~~~
|
71
|
+
<%= image_tag 'all-sample', :alt => 'A murder of crows', :title => 'Birds', :figure => false %>
|
83
72
|
|
84
73
|
Although these two examples describe _Middleman_’s built-in `image_tag`
|
85
74
|
helper, _Middlemac_ can extend this functionality even more.
|
@@ -99,7 +88,7 @@ the most common ones you will use.
|
|
99
88
|
|
100
89
|
As you get more advanced with your use of _Middleman_, you will certainly
|
101
90
|
think of more uses for this.
|
102
|
-
|
91
|
+
{: .nontabular}
|
103
92
|
|
104
93
|
Helpers that Middlemac Overrides
|
105
94
|
--------------------------------
|
@@ -109,14 +98,15 @@ provide extra functionality and/or to provide backward compatibility. They are
|
|
109
98
|
fully documented in [their reference section][helpers_ext_ref].
|
110
99
|
|
111
100
|
`partial`
|
101
|
+
|
112
102
|
: Starting with _Middleman_ version 4, the use of `partials_dir` was removed,
|
113
103
|
and now _Middleman_ expects a full path to partials. _Middlemac_, though
|
114
104
|
provides this helper with backwards compatibility. If you set `partials_dir`
|
115
|
-
in
|
116
|
-
|
117
|
-
|
118
|
-
|
105
|
+
in your `config.rb`, then _Middlemac_ will first check this directory for
|
106
|
+
your partial before using _Middleman_’s default behavior.
|
107
|
+
|
119
108
|
`image_tag`
|
109
|
+
|
120
110
|
: _Middlemac_ adds considerable functionality to the base `image_tag` helper.
|
121
111
|
|
122
112
|
- If your image name begins with the magic prefix `all-`, then
|
@@ -124,10 +114,10 @@ fully documented in [their reference section][helpers_ext_ref].
|
|
124
114
|
current target, if it exists (otherwise the `all-` image will be used).
|
125
115
|
This magic prefix is configurable in your `config.rb` file.
|
126
116
|
|
127
|
-
- If the image that you specify has an `@2x` version,
|
128
|
-
attribute specifying this Retina image will
|
129
|
-
you (unless you’ve added a `srcset` attribute
|
130
|
-
with magic prefixes.
|
117
|
+
- If the image that you specify has an `@2x`, `@3x`, and/or `@4x` version,
|
118
|
+
then a `srcset` attribute specifying this Retina image will
|
119
|
+
automatically be added for you (unless you’ve added a `srcset` attribute
|
120
|
+
yourself. This even works with magic prefixes.
|
131
121
|
|
132
122
|
For example if you specify image `all-example.png` and your target is
|
133
123
|
"pro", _and_ if the images exist, then _Middlemac_ will generate an
|
@@ -139,6 +129,14 @@ fully documented in [their reference section][helpers_ext_ref].
|
|
139
129
|
target, or if the target includes the specified feature. This provides
|
140
130
|
a handy alternative to **if target_name?** and **if target_feature?**
|
141
131
|
blocks in your code.
|
132
|
+
|
133
|
+
- The help automatically embeds images in a `<figure>` element, as this is
|
134
|
+
what Apple’s own style is. You can specify `:figure => false` in the
|
135
|
+
options to prevent this.
|
136
|
+
|
137
|
+
- Finally, you can specify `:figure_class => "someclass"` to provide a
|
138
|
+
class to this framing `<figure>`, if desired.
|
139
|
+
{: .nontabular}
|
142
140
|
|
143
141
|
|
144
142
|
### `image_tag` Target/Feature example
|
@@ -150,10 +148,6 @@ wherein the `@2x` resource is included as a `srcset` automatically.
|
|
150
148
|
<%%= image_tag 'middlemac-logo-small.png' %>
|
151
149
|
~~~
|
152
150
|
|
153
|
-
~~~ erb
|
154
|
-
<%= image_tag 'middlemac-logo-small.png' %>
|
155
|
-
~~~
|
156
|
-
|
157
151
|
<%= image_tag 'middlemac-logo-small.png' %>
|
158
152
|
|
159
153
|
* * *
|
@@ -166,26 +160,17 @@ though, so will be automatically used as the `srcset`.
|
|
166
160
|
<%%= image_tag 'all-sample.png' %>
|
167
161
|
~~~
|
168
162
|
|
169
|
-
~~~ erb
|
170
|
-
<%= image_tag 'all-sample.png' %>
|
171
|
-
~~~
|
172
|
-
|
173
163
|
<%= image_tag 'all-sample.png' %>
|
174
164
|
|
175
165
|
|
176
166
|
* * *
|
177
167
|
|
178
|
-
The next example selects the image based on the target automatically.
|
179
|
-
resources are available and so no `srcset` is added.
|
168
|
+
The next example selects the image based on the target automatically.
|
180
169
|
|
181
170
|
~~~ erb
|
182
171
|
<%%= image_tag 'all-middlemac-logo-small.png' %>
|
183
172
|
~~~
|
184
173
|
|
185
|
-
~~~ erb
|
186
|
-
<%= image_tag 'all-middlemac-logo-small.png' %>
|
187
|
-
~~~
|
188
|
-
|
189
174
|
<%= image_tag 'all-middlemac-logo-small.png' %>
|
190
175
|
|
191
176
|
|
@@ -199,10 +184,6 @@ there will be no image.
|
|
199
184
|
<%%= image_tag 'all-sample.png', :target=>:pro %>
|
200
185
|
~~~
|
201
186
|
|
202
|
-
~~~ erb
|
203
|
-
<%= image_tag 'all-sample.png', :target=>:pro %>
|
204
|
-
~~~
|
205
|
-
|
206
187
|
<%= image_tag 'all-sample.png', :target=>:pro %>
|
207
188
|
|
208
189
|
|
@@ -213,35 +194,20 @@ _Middlemac_ helpers
|
|
213
194
|
-------------------
|
214
195
|
|
215
196
|
_Middlemac_ introduces several other helpers that are available in your files.
|
216
|
-
A comprehensive list is available in the
|
217
|
-
|
218
|
-
|
219
|
-
`cfBundleIdentifier`
|
220
|
-
: Returns the product `CFBundleIdentifier` for the current target.
|
221
|
-
|
222
|
-
`cfBundleName`
|
223
|
-
: Returns the product `CFBundleName` for the current
|
224
|
-
target.
|
225
|
-
|
226
|
-
`product_name`
|
227
|
-
: Returns the `ProductName` for the current target.
|
228
|
-
|
229
|
-
`product_uri`
|
230
|
-
: Returns the `ProductURI` for the current target.
|
231
|
-
|
232
|
-
`target_name`
|
233
|
-
: Returns the current build target.
|
234
|
-
|
235
|
-
`target_name?(proposal)`
|
236
|
-
: Is the current target `proposal`?
|
237
|
-
|
238
|
-
`target_feature?(proposal)`
|
239
|
-
: Does the target have the feature `feature`?
|
197
|
+
A comprehensive list is available in the **Reference**, but these highlight
|
198
|
+
some of the helpers that you’ll use quite often.
|
240
199
|
|
200
|
+
| `cfBundleIdentifier` | Returns the product `CFBundleIdentifier` for the current target.
|
201
|
+
| `cfBundleName` | Returns the product `CFBundleName` for the current target.
|
202
|
+
| `product_name` | Returns the `ProductName` for the current target.
|
203
|
+
| `product_uri` | Returns the `ProductURI` for the current target.
|
204
|
+
| `target_name` | Returns the current build target.
|
205
|
+
| `target_name?(proposal)` | Is the current target `proposal`?
|
206
|
+
| `target_feature?(proposal)` | Does the target have the feature `feature`?
|
241
207
|
|
242
208
|
Other Helpers
|
243
209
|
-------------
|
244
210
|
|
245
211
|
_Middlemac_ is a system consisting of several gems, all of which contribute
|
246
|
-
helpers of their own. These are completely documented in the
|
247
|
-
section
|
212
|
+
helpers of their own. These are completely documented in the
|
213
|
+
**API Reference** section.
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
title: ‹md_links› Helper
|
3
|
+
blurb: Learn to take advantage of helpers that give you a hand using
|
4
|
+
reference style links to content and images.
|
5
|
+
---
|
6
|
+
<%= md_links %>
|
7
|
+
<%= md_images %>
|
8
|
+
|
9
|
+
<%= current_page.data.blurb %>
|
10
|
+
|
11
|
+
You’ll notice (as you look at the source files for this help content) that the
|
12
|
+
first ERB instructions immediately after the frontmatter are:
|
13
|
+
|
14
|
+
~~~ erb
|
15
|
+
<%%= md_links %>
|
16
|
+
<%%= md_images %>
|
17
|
+
~~~
|
18
|
+
|
19
|
+
These convenience helpers make it relatively simple to include Markdown links
|
20
|
+
and images using the reference format.
|
21
|
+
|
22
|
+
Links
|
23
|
+
-----
|
24
|
+
|
25
|
+
~~~ markdown
|
26
|
+
[What is Middlemac?][what_is_middlemac]
|
27
|
+
~~~
|
28
|
+
|
29
|
+
…will generate the following link:
|
30
|
+
|
31
|
+
[What is Middlemac?][what_is_middlemac]
|
32
|
+
|
33
|
+
This is especially useful if your page source filenames stay constant.
|
34
|
+
|
35
|
+
The reference name will always be the base output name of the file. For index
|
36
|
+
files, the format will be `groupname`, where the groupname is the name of the
|
37
|
+
containing directory, as you should already know. The top-level index file
|
38
|
+
will conveniently, simply be `en.lproj` (or as appropriate for your
|
39
|
+
development locale).
|
40
|
+
|
41
|
+
You should strive to use unique filenames if you use this feature, as this
|
42
|
+
will ensure that your references remain unique. In the event of reference name
|
43
|
+
collisions, the reference name will be prepended with its nesting groups as
|
44
|
+
many levels as necessary to become unique. For convenience items that are
|
45
|
+
higher in your directory hierarchy are prioritized against prepending.
|
46
|
+
|
47
|
+
Here’s the complete result of this helper for this Help Book:
|
48
|
+
|
49
|
+
<% code('markdown', :css_class => 'shrink_code') do %>
|
50
|
+
<%= md_links %>
|
51
|
+
<% end %>
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
title: ‹md_images› Helper
|
3
|
+
blurb: Learn to take advantage of helpers that give you a hand using
|
4
|
+
reference style links to content and images.
|
5
|
+
---
|
6
|
+
<%= md_links %>
|
7
|
+
<%= md_images %>
|
8
|
+
|
9
|
+
<%= current_page.data.blurb %>
|
10
|
+
|
11
|
+
You’ll notice (as you look at the source files for this help content) that the
|
12
|
+
first ERB instructions immediately after the frontmatter are:
|
13
|
+
|
14
|
+
~~~ erb
|
15
|
+
<%%= md_links %>
|
16
|
+
<%%= md_images %>
|
17
|
+
~~~
|
18
|
+
|
19
|
+
These convenience helpers make it relatively simple to include Markdown links
|
20
|
+
and images using the reference format.
|
21
|
+
|
22
|
+
|
23
|
+
Images
|
24
|
+
------
|
25
|
+
|
26
|
+
Markdown also supports a reference format for images. It looks like this:
|
27
|
+
|
28
|
+
~~~ markdown
|
29
|
+
![this is alt tag content][middlemac-logo-small]
|
30
|
+
~~~
|
31
|
+
|
32
|
+
And will generate this:
|
33
|
+
|
34
|
+
![this is alt tag content][middlemac-logo-small]
|
35
|
+
|
36
|
+
|
37
|
+
Here’s the complete result of this helper for this Help Book:
|
38
|
+
|
39
|
+
<% code('markdown', :css_class => 'shrink_code') do %>
|
40
|
+
<%= md_images %>
|
41
|
+
<% end %>
|
42
|
+
Note that using reference style Markdown images is performed by the Markdown
|
43
|
+
processor directly. Using magic prefixes for automatic target-based images
|
44
|
+
won’t work. However they will work with standard Markdown, non-reference
|
45
|
+
images. Note how this next example includes the target-specific logo:
|
46
|
+
{: .note}
|
47
|
+
|
48
|
+
~~~ markdown
|
49
|
+

|
50
|
+
~~~
|
51
|
+
|
52
|
+

|
data/documentation_project/Contents/Resources/en.lproj/040_compose_project/090_partials.html.md.erb
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
---
|
2
|
+
title: Partials
|
3
|
+
blurb: Use partials to keep yourself DRY.
|
4
|
+
---
|
5
|
+
<%= md_links %>
|
6
|
+
<%= md_images %>
|
7
|
+
|
8
|
+
<%= current_page.data.blurb %>
|
9
|
+
|
10
|
+
_Middlemac_ includes the ability to use partials, that is, bits of Markup, pure
|
11
|
+
HTML, and/or ERB that can be included in other files, as often as you like.
|
12
|
+
You might use partials to contain oft-used content. Maybe pieces of a change
|
13
|
+
log, should you want to present that information to your users in multiple
|
14
|
+
places. Maybe common warnings that can be included in multiple pages.
|
15
|
+
|
16
|
+
|
17
|
+
Conventions
|
18
|
+
-----------
|
19
|
+
|
20
|
+
Partials should be placed into the correct `partials` directory so that
|
21
|
+
_Middleman_’s `partial` helper can find them.
|
22
|
+
|
23
|
+
Because partials are not rendered into final HTML output files, you should
|
24
|
+
prefix their filenames with an underscore, and _not_ include `.html` in the
|
25
|
+
extensions chain.
|
26
|
+
|
27
|
+
When using the `partial` helper, _Middleman_ already expects the actual file
|
28
|
+
to be prefixed with an underscore, therefore you should _not_ include the
|
29
|
+
underscore when you use the helper.
|
30
|
+
|
31
|
+
~~~ erb
|
32
|
+
<%%= partial 'include_me' %>
|
33
|
+
~~~
|
34
|
+
|
35
|
+
_not_
|
36
|
+
|
37
|
+
~~~ erb
|
38
|
+
<%%= partial '_include_me' %>
|
39
|
+
~~~
|
40
|
+
|
41
|
+
You can pass data to partials as local variable context within the partial.
|
42
|
+
For example:
|
43
|
+
|
44
|
+
~~~ erb
|
45
|
+
<%%= partial 'hello_world', :locals => { :one => 'Rabbit', :color => 'pink' } %>
|
46
|
+
~~~
|
47
|
+
|
48
|
+
Then, within the code of the partial, you will have local variables `one` and
|
49
|
+
`color` available to you with their respective values.
|
50
|
+
|
51
|
+
These hash key-values use a symbol as a key, and a value as the value for the
|
52
|
+
key. This is not the same as assigning a value to the Ruby symbol, because the
|
53
|
+
symbol’s value is simply itself. The hash key is like an `id` object in an
|
54
|
+
`NSDictionary`. Then when passed to the partial, there will exist a new local
|
55
|
+
variable using the symbol name. The symbol `:one` becomes the variable `one`
|
56
|
+
having a string value “pink” in this example.
|
57
|
+
{: .note .callout}
|
58
|
+
|
59
|
+
|
60
|
+
Examples
|
61
|
+
--------
|
62
|
+
|
63
|
+
Have a look at the **Reference** section, where most of the API information is
|
64
|
+
added to this project as partials.
|
data/documentation_project/Contents/Resources/en.lproj/040_compose_project/100_resources.html.md.erb
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
title: ‹resource› Methods
|
3
|
+
blurb: <em>Middlemac</em> extends <em>Middleman</em>’s built in resource
|
4
|
+
(page) methods by adding several methods that make developing Help
|
5
|
+
Books even easier.
|
6
|
+
---
|
7
|
+
<%= md_links %>
|
8
|
+
<%= md_images %>
|
9
|
+
|
10
|
+
<% content_for :seeAlso do %>
|
11
|
+
<%= link_to 'Resource API Documentation', '../reference/api_reference/resource_ext_ref.html' %>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<%= current_page.data.blurb %>
|
15
|
+
|
16
|
+
_Resources_ in _Middleman_-speak generally refers to pages in _Middleman_’s
|
17
|
+
internal site-map. As Ruby objects, resources have a lot of useful information
|
18
|
+
about them.
|
19
|
+
|
20
|
+
There’s a lot you can do with _Middlemac_ without manipulating or using
|
21
|
+
resources directly. The _Middlemac_ framework does a lot of this manipulation
|
22
|
+
for you. There’s nothing in this documentation Help Book, for example, that
|
23
|
+
uses features not provided by the conventions.
|
24
|
+
{: .note .callout}
|
25
|
+
|
26
|
+
|
27
|
+
Common _Middleman_ Resources
|
28
|
+
----------------------------
|
29
|
+
|
30
|
+
Because _Middlemac_’s resources depend so heavily on the built-in resources, a
|
31
|
+
quick review and examples are in order.
|
32
|
+
|
33
|
+
| `current_page` or `current_resource` | The `current_page` resource is available in all of your help pages, as well as the partials that your help pages include.
|
34
|
+
| `current_page.breadcrumbs.first` | This refers to the top level landing page of your help file.
|
35
|
+
| _`resource`_`.parent` | This references the parent resource. For example `current_page.parent` would refer to the parent container of this one: **<%= current_page.parent.data.title %>**.
|
36
|
+
| _`resource`_`.brethren_next` and _`resource`_`.brethren_previous` | These _Middlemac_ supplied references refer to the next and previous pages, respectively, in the current group, and they are resources, too.
|
@@ -0,0 +1,197 @@
|
|
1
|
+
---
|
2
|
+
title: Implement Apple’s Help Features
|
3
|
+
blurb: <em>Middlemac</em> makes it pretty easy to implement modern Apple
|
4
|
+
Help Book features in your own Help Books. This page walks you
|
5
|
+
through them.
|
6
|
+
---
|
7
|
+
<%= md_links %>
|
8
|
+
<%= md_images %>
|
9
|
+
|
10
|
+
<%= current_page.data.blurb %>
|
11
|
+
|
12
|
+
|
13
|
+
Asides
|
14
|
+
------
|
15
|
+
|
16
|
+
“Asides” are loaded via AJAX from another file into a popup element on the
|
17
|
+
current page. To create an aside, simply:
|
18
|
+
|
19
|
+
- Create a file that will result in an html file, such as
|
20
|
+
`aside_description.html.md.erb`, as is used in this documentation.
|
21
|
+
- Do not specify a page order for this file, as we do not want it included as
|
22
|
+
a standard page.
|
23
|
+
- Ensure that its `categories` [frontmatter][frontmatter] includes `aside`.
|
24
|
+
- Ensure that its `layout` [frontmatter][frontmatter] is set to
|
25
|
+
`layout-apple-modern-aside`, or that the file is present in the magical
|
26
|
+
`asides/` directory.
|
27
|
+
|
28
|
+
To implement the “aside” in your project, simply use the `link_to` helper,
|
29
|
+
specifying the `:aside` option, like so:
|
30
|
+
|
31
|
+
~~~ erb
|
32
|
+
What is <%%= link_to "an aside", "aside_description.html", :aside => true %>?
|
33
|
+
~~~
|
34
|
+
|
35
|
+
Results in:
|
36
|
+
|
37
|
+
What is <%= link_to "an aside", "aside_description.html", :aside => true %>?
|
38
|
+
|
39
|
+
Because the `link_to` helper will search your sitemap for the specified file,
|
40
|
+
it’s not usually necessary to specify a path, and as such, you can organize
|
41
|
+
the aside files in any manner that you wish.
|
42
|
+
{: .tip .callout}
|
43
|
+
|
44
|
+
|
45
|
+
Copyright Information
|
46
|
+
---------------------
|
47
|
+
|
48
|
+
The `:ProductCopyright` value from `config.rb` will be displayed by Apple’s
|
49
|
+
help system at the bottom of every help page, as well as on your project’s
|
50
|
+
landing page, when served to a browser. Additionally, the message on the
|
51
|
+
landing page will automatically become a link to any page that has `copyright`
|
52
|
+
assigned as one of its `categories` in the [frontmatter][frontmatter].
|
53
|
+
|
54
|
+
If you have multiple pages with `copyright` assigned to the `categories`
|
55
|
+
frontmatter key, then the first one found in the sitemap will be the target
|
56
|
+
of the link.
|
57
|
+
|
58
|
+
|
59
|
+
Tasks
|
60
|
+
-----
|
61
|
+
|
62
|
+
To create “tasks” as demonstrated in [Apple Help Book Features][apple_help_features],
|
63
|
+
use the `helpbook_task` helper provided by _Middlemac_. For example:
|
64
|
+
|
65
|
+
~~~ erb
|
66
|
+
<%% helpbook_task "task_id_1", "This is the title of the first task" do %>
|
67
|
+
<%%= lorem.paragraphs 2 %>
|
68
|
+
<%% end %>
|
69
|
+
|
70
|
+
<%% helpbook_task "task_id_2", "I also have a title" do %>
|
71
|
+
<%%= lorem.paragraphs 2 %>
|
72
|
+
<%% end %>
|
73
|
+
~~~
|
74
|
+
|
75
|
+
|
76
|
+
Will result in:
|
77
|
+
|
78
|
+
<% helpbook_task "task_id_1", "This is the title of the first task" do %>
|
79
|
+
<%= lorem.paragraphs 2 %>
|
80
|
+
<% end %>
|
81
|
+
|
82
|
+
<% helpbook_task "task_id_2", "I also have a title" do %>
|
83
|
+
<%= lorem.paragraphs 2 %>
|
84
|
+
<% end %>
|
85
|
+
|
86
|
+
Remember, single tasks are always displayed in the expanded state, but when multiple tasks
|
87
|
+
are on the same page, like here, they have working disclosure triangles to
|
88
|
+
reveal them.
|
89
|
+
{: .tip .callout}
|
90
|
+
|
91
|
+
Make sure you provide unique id’s to the tasks, because Apple’s help system
|
92
|
+
keeps track of which one are revealed or hidden in between page visits.
|
93
|
+
{: .tip .callout}
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
Tips
|
98
|
+
----
|
99
|
+
|
100
|
+
If you would like to implement tips in the way that Apple does it exactly,
|
101
|
+
then use a structure like this:
|
102
|
+
|
103
|
+
~~~ html
|
104
|
+
<div class="Alert">
|
105
|
+
<p class="Tip">
|
106
|
+
<strong class="tip">Tip</strong> You can do lots of neat things like use
|
107
|
+
Apple’s tip style, and it’s easy with the plethora of helpers. This tip
|
108
|
+
uses the official Apple way to make a tip, but you have to use HTML to
|
109
|
+
conform to Apple’s `<div>` and `<p>` structure.
|
110
|
+
</p>
|
111
|
+
</div>
|
112
|
+
~~~
|
113
|
+
|
114
|
+
Which yields:
|
115
|
+
|
116
|
+
<div class="Alert">
|
117
|
+
<p class="Tip">
|
118
|
+
<strong class="tip">Tip</strong> You can do lots of neat things like use
|
119
|
+
Apple’s tip style, and it’s easy with the plethora of helpers. This tip
|
120
|
+
uses the official Apple way to make a tip, but you have to use HTML to
|
121
|
+
conform to Apple’s `<div>` and `<p>` structure.
|
122
|
+
</p>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
However, that’s cumbersome to use and remember, so _Middlemac_ has defined
|
126
|
+
a style that approximates Apple’s, that’s really simply to use via native
|
127
|
+
Markdown style tags. In Markdown you can simply do this:
|
128
|
+
|
129
|
+
~~~ markdown
|
130
|
+
However that’s kind of pain to remember, so _Middlemac_ makes it really
|
131
|
+
easy to add single-paragraph tips right in Markdown, by assigning a style.
|
132
|
+
The appearance is a _little_ bit different than Apple’s way, but honors the
|
133
|
+
look and feel.
|
134
|
+
{: .tip}
|
135
|
+
~~~
|
136
|
+
|
137
|
+
Which delivers this:
|
138
|
+
|
139
|
+
However that’s kind of pain to remember, so _Middlemac_ makes it really
|
140
|
+
easy to add single-paragraph tips right in Markdown, by assigning a style.
|
141
|
+
The appearance is a _little_ bit different than Apple’s way, but honors the
|
142
|
+
look and feel.
|
143
|
+
{: .tip}
|
144
|
+
|
145
|
+
Similarly, assigning the CSS classes `warning` or `note` with `{: .warning}`
|
146
|
+
or `{: .note}` give you these next two callout styles:
|
147
|
+
|
148
|
+
Although I couldn’t find any **warning** examples in Apple’s help, it’s
|
149
|
+
something that’s sure to be needed by other developers, and so imitating
|
150
|
+
Apple’s **Tip** style gives _Middlemac_ access to simple warnings, too.
|
151
|
+
{: .warning}
|
152
|
+
|
153
|
+
Can you guess that this is a note?
|
154
|
+
{: .note}
|
155
|
+
|
156
|
+
Finally, you can combine the `{: .tip}`, `{: .warning}`, and `{: .note}` with
|
157
|
+
the class `callout` like, e.g., `{: .note .callout}` to inset the left and
|
158
|
+
right margins by a couple of em. This isn’t Apple’s style, but it tends to
|
159
|
+
introduce some much-needed whitespace that serves to highlight these types of
|
160
|
+
paragraphs.
|
161
|
+
{: .note .callout}
|
162
|
+
|
163
|
+
|
164
|
+
Standard See Also
|
165
|
+
-----------------
|
166
|
+
|
167
|
+
Apple’s Help Books have a standard format for **See Also** sections of its
|
168
|
+
content pages. _Middlemac_’s templates will automatically provide the proper
|
169
|
+
HTML structure when you provide a `:seeAlso` block in any of your help pages.
|
170
|
+
|
171
|
+
Apple’s JavaScript even recognizes when links are internal or external, and
|
172
|
+
opens new tabs or windows as appropriate.
|
173
|
+
|
174
|
+
This page’s **See Also** block is defined as so:
|
175
|
+
|
176
|
+
~~~ erb
|
177
|
+
<%% content_for :seeAlso do %>
|
178
|
+
<%%= link_to 'Apple Help Book Features', 'apple_help_features/index.html' %>
|
179
|
+
<%%= link_to 'Help Book Landing Page', 'index.html' %>
|
180
|
+
<%% end %>
|
181
|
+
~~~
|
182
|
+
|
183
|
+
<% content_for :seeAlso do %>
|
184
|
+
<%= link_to 'Apple Help Book Features', 'apple_help_features/index.html' %>
|
185
|
+
<%= link_to 'Help Book Landing Page', 'index.html' %>
|
186
|
+
<% end %>
|
187
|
+
|
188
|
+
Although the **See Also** content is defined right here in the source file,
|
189
|
+
it will appear (properly) at the bottom of this page.
|
190
|
+
|
191
|
+
The use of the `md_links` helper to provide Markdown reference-style links is
|
192
|
+
not supported in the `:seeAlso` block. This is a limitation of the way that
|
193
|
+
_Middleman_ builds files. However, the `link_to` helper works just fine in
|
194
|
+
this case.
|
195
|
+
{: .note .callout}
|
196
|
+
|
197
|
+
|
@@ -0,0 +1,85 @@
|
|
1
|
+
---
|
2
|
+
title: Preview and Build your Help Books
|
3
|
+
blurb: Your development be quicker by previewing your work with
|
4
|
+
<em>Middleman</em>’s preview server before the next step:
|
5
|
+
building your Help Book.
|
6
|
+
---
|
7
|
+
<%= md_links %>
|
8
|
+
<%= md_images %>
|
9
|
+
|
10
|
+
<%= current_page.data.blurb %>
|
11
|
+
|
12
|
+
Preview in a Web Browser
|
13
|
+
------------------------
|
14
|
+
|
15
|
+
_Middleman_ has its own web server so that you can preview your work during
|
16
|
+
development. From within your project directory, simply do:
|
17
|
+
|
18
|
+
~~~
|
19
|
+
bundle exec middleman
|
20
|
+
~~~
|
21
|
+
|
22
|
+
This will start the server with your default target. To specify a specific
|
23
|
+
target to serve, simply use the `--target` command line option:
|
24
|
+
|
25
|
+
~~~
|
26
|
+
bundle exec middleman --target your_target_here
|
27
|
+
~~~
|
28
|
+
|
29
|
+
In general the server address to connect to in your browser is
|
30
|
+
`localhost:4567`, but your environment could be different. The server will
|
31
|
+
always provide one or more addresses to try.
|
32
|
+
|
33
|
+
Note also that if you try to connect to your Help Book project at the server
|
34
|
+
root, you will receive a file not found error. Do remember that due to macOS
|
35
|
+
Help Book requirements, the content actually begins at
|
36
|
+
`/Resources/index.html`.
|
37
|
+
|
38
|
+
|
39
|
+
Build your Help Book(s)
|
40
|
+
-----------------------
|
41
|
+
|
42
|
+
Building your projects is similarly easy:
|
43
|
+
|
44
|
+
~~~
|
45
|
+
bundle exec middleman build
|
46
|
+
~~~
|
47
|
+
|
48
|
+
…to build the default target.
|
49
|
+
|
50
|
+
~~~
|
51
|
+
bundle exec middleman build --target your_target_here
|
52
|
+
~~~
|
53
|
+
|
54
|
+
…to build the target named `your_target_here`.
|
55
|
+
|
56
|
+
|
57
|
+
~~~
|
58
|
+
bundle exec middleman build_all
|
59
|
+
~~~
|
60
|
+
|
61
|
+
…to build all of your targets at once.
|
62
|
+
|
63
|
+
|
64
|
+
Opening your Help Books
|
65
|
+
-----------------------
|
66
|
+
|
67
|
+
macOS won't open Help Books that haven’t been indexed by the operating system,
|
68
|
+
so you’ll have to preview them in a real application. Because you’re making
|
69
|
+
a Help Book, it’s presumed that you have an application that can fill this
|
70
|
+
role. If not, you can modify the included **HelpViewerApp** Xcode project
|
71
|
+
that’s in this documentation project’s directory.
|
72
|
+
|
73
|
+
To view the contents of the `.help` package in **Finder**, simply
|
74
|
+
context-click it and choose **Show Package Contents**.
|
75
|
+
|
76
|
+
|
77
|
+
Troubleshooting Caches
|
78
|
+
----------------------
|
79
|
+
|
80
|
+
Sometimes your Help Books will not function properly in Apple Help Viewer.
|
81
|
+
This can occur during development particularly, because macOS performs caching
|
82
|
+
to improve performance. If you experience difficulties with your Help Book
|
83
|
+
in Apple Help Viewer, consider clearing the caches by deleting the directories
|
84
|
+
`~/Library/Caches/com.apple.helpd/` and
|
85
|
+
`~/Library/Caches/com.apple.helpviewer/`.
|