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
data/documentation_project/Contents/Resources/en.lproj/030_get_started/070_about_ruby.html.md.erb
ADDED
@@ -0,0 +1,194 @@
|
|
1
|
+
---
|
2
|
+
title: About Ruby and its Ecosystem
|
3
|
+
blurb: As the language that powers <em>Middlemac</em>, it’s worth taking a
|
4
|
+
short look at the Ruby language and its ecosystem.
|
5
|
+
---
|
6
|
+
<%= md_links %>
|
7
|
+
<%= md_images %>
|
8
|
+
|
9
|
+
<%= current_page.data.blurb %>
|
10
|
+
|
11
|
+
[Ruby](https://www.ruby-lang.org/en/) is the language that _Middlemac_,
|
12
|
+
_Middleman_, and many of the others tools are written with. You do not have to
|
13
|
+
learn Ruby to take advantage of _Middlemac_, although some ability to work
|
14
|
+
with it will be invaluable to you.
|
15
|
+
|
16
|
+
Ruby may surprise you
|
17
|
+
---------------------
|
18
|
+
|
19
|
+
If you’re a software developer, then it’s highly likely that you will be able
|
20
|
+
to read most Ruby code immediately. Coming from an Objective-C or Swift
|
21
|
+
background, these are a few things that may surprise you.
|
22
|
+
|
23
|
+
### Symbols
|
24
|
+
Ruby has a type of identifier called a `symbol`. They are used quite
|
25
|
+
extensively and look like `:this_symbol`. As identifiers and not variables,
|
26
|
+
you can’t assign values to them. Their value is themselves, though they have
|
27
|
+
useful string representations (`:this_symbol.to_s`). You can even get the
|
28
|
+
symbol representation of `'this_string'.to_sym`. Because they're unique, they
|
29
|
+
make excellent array/hash keys and excellent, guaranteed unique values.
|
30
|
+
|
31
|
+
### Everything is an object
|
32
|
+
Everything is an object, including what are fundamental datatypes in other
|
33
|
+
languages. Need to convert the integer `i` to a float? It’s as easy as
|
34
|
+
`i.to_f`.
|
35
|
+
|
36
|
+
### Everything has a return value
|
37
|
+
In Ruby you don’t require `return value`, or `result := value`, or
|
38
|
+
`function_name = value`. Just `value`, alone, will return its value. Even `if`
|
39
|
+
statements return values:
|
40
|
+
|
41
|
+
~~~ ruby
|
42
|
+
result = if answer == 'yes'
|
43
|
+
"The answer as affirmative."
|
44
|
+
else
|
45
|
+
"The answer was something else."
|
46
|
+
end
|
47
|
+
~~~
|
48
|
+
|
49
|
+
This example assigns the appropriate string to the variable `result`.
|
50
|
+
|
51
|
+
|
52
|
+
Just enough Ruby
|
53
|
+
----------------
|
54
|
+
To work effectively with _Middlemac_ you’ll only have to learn enough Ruby to
|
55
|
+
do a few simple things:
|
56
|
+
|
57
|
+
- Set variables in the `config.rb` file.
|
58
|
+
- Use a few helper functions from within files, e.g., `partial 'my_file'`.
|
59
|
+
- Use conditionals, if you want them. You know: simply `if/else/end`, or even
|
60
|
+
`unless/else/end`.
|
61
|
+
|
62
|
+
|
63
|
+
Gems
|
64
|
+
----
|
65
|
+
|
66
|
+
“Gems” are packages of Ruby or compiled code in a standard format that serve
|
67
|
+
as extensions or library additions to Ruby. _Middlemac_ is a system consisting
|
68
|
+
of the `middlemac` gem, among others.
|
69
|
+
|
70
|
+
By default Ruby is configured to fetch gems from
|
71
|
+
[rubygems.org](https://rubygems.org/), which is convenient as long as you are
|
72
|
+
connected to the internet.
|
73
|
+
|
74
|
+
Gems, as software, have versions and can have dependencies on other gems. This
|
75
|
+
can lead to dependency hell when multiple versions of multiple gems are
|
76
|
+
installed having a clash due to mixed dependencies. Luckily this has been
|
77
|
+
mostly solved via the use of Bundler.
|
78
|
+
|
79
|
+
Bundler
|
80
|
+
-------
|
81
|
+
|
82
|
+
Bundler is a gem version management system that ensures that the correct gem
|
83
|
+
version is used on a per-project basis, as specified in the `Gemfile` and
|
84
|
+
locked in `Gemfile.lock` (more on these below).
|
85
|
+
|
86
|
+
Using bundler will ensure that gem versions of known compatibility will be
|
87
|
+
used. For example, _Middlemac_ requires _Middleman_ version 4.2 or higher,
|
88
|
+
which itself requires other gems of specific versions. Bundler will ensure
|
89
|
+
that when building a _Middlemac_ project, _only_ the correct gems and versions
|
90
|
+
are used.
|
91
|
+
|
92
|
+
When you see a command such as:
|
93
|
+
|
94
|
+
~~~
|
95
|
+
bundle exec middleman build
|
96
|
+
~~~
|
97
|
+
|
98
|
+
…it means that Bundler will execute the `middleman` gem, and will take
|
99
|
+
responsibility for ensuring the correct gem versions are used. If we want to
|
100
|
+
leave it up to chance, we might try this:
|
101
|
+
|
102
|
+
~~~
|
103
|
+
middleman build
|
104
|
+
~~~
|
105
|
+
|
106
|
+
…and this might work, or it might not. Without using Bundler, the default
|
107
|
+
versions of gems installed on your system will be used, and they might not be
|
108
|
+
compatible with the default version of `middleman`.
|
109
|
+
|
110
|
+
Ruby projects, including _Middlemac_ Help Book projects, specify gem versions
|
111
|
+
using a file in the project directory called `Gemfile`.
|
112
|
+
|
113
|
+
|
114
|
+
`Gemfile` and `Gemfile.lock`
|
115
|
+
----------------------------
|
116
|
+
|
117
|
+
Your _Middlemac_ project contains this file to specify to Bundler which
|
118
|
+
versions of Ruby gems should be used. In general you don’t have to bother with
|
119
|
+
this file at all. However if you become more advanced and want to use other
|
120
|
+
gems, you’ll have to dive into this file eventually.
|
121
|
+
|
122
|
+
This file contains gems and the versions that are allowed. For example, this
|
123
|
+
documentation project’s `Gemfile` contains something similar to this:
|
124
|
+
|
125
|
+
~~~ ruby
|
126
|
+
gem 'middleman-targets', '~> 1.0.12'
|
127
|
+
~~~
|
128
|
+
|
129
|
+
This declaration tells Bundler that `middleman-targets` is a gem that is
|
130
|
+
required for this project, and that any version greater than 1.0.12
|
131
|
+
(inclusive) is allowed, but only in the `1.0.x` series. The `~>` is called a
|
132
|
+
“pessimistic operator” and is used if we don’t trust the `1.1.x` will break
|
133
|
+
nothing.
|
134
|
+
|
135
|
+
Other operators are available, too, of course, and are a simple web search
|
136
|
+
away.
|
137
|
+
|
138
|
+
The file `Gemfile.lock` is generated automatically by Bundler, and you should
|
139
|
+
never modify this file yourself. This file is the file that indicates to
|
140
|
+
Bundler the _exact_ versions of Gems that will be used. It ensures that the
|
141
|
+
set of gems always stays consistent (even if you update gems) unless you
|
142
|
+
deliberately want it to do otherwise.
|
143
|
+
|
144
|
+
Whether or not you add `Gemfile.lock` to version control is up to you. Doing
|
145
|
+
so mean that anyone that checks out your project will use the exact gem
|
146
|
+
versions that you have committed; otherwise, consistent with the rules in the
|
147
|
+
`Gemfile`, any checkouts will generate a `Gemfile.lock` and run using
|
148
|
+
different versions of the gems. In theory, this should be perfectly fine, but
|
149
|
+
API-breaking changes sometimes do happen with point updates.
|
150
|
+
{: .tip .callout}
|
151
|
+
|
152
|
+
### `bundle install`
|
153
|
+
|
154
|
+
When you `cd` into a project directory, you can:
|
155
|
+
|
156
|
+
~~~
|
157
|
+
bundle install
|
158
|
+
~~~
|
159
|
+
|
160
|
+
This tells Bundler to check the `Gemfile` and install any gems that are
|
161
|
+
required but are missing, typically from
|
162
|
+
[rubygems.org](https://rubygems.org/). After installing the gems Bundler will
|
163
|
+
also update the `Gemfile.lock`, thereby freezing the versions to be used in
|
164
|
+
your project.
|
165
|
+
|
166
|
+
What happens if I install a newer version of a Ruby gem? For example, if the
|
167
|
+
`Gemfile` is configured to use `middleman-targets` 1.0.12 or above, and I’ve
|
168
|
+
been building with it for weeks, and then update my gem to 1.0.14? In this
|
169
|
+
case, as long as 1.0.12 is still installed on your system, Bundler will still
|
170
|
+
use this version.
|
171
|
+
|
172
|
+
You’ll either have to update the `Gemfile` with 1.0.14 and then `bundle
|
173
|
+
install` again, or…
|
174
|
+
|
175
|
+
### `bundle update`
|
176
|
+
|
177
|
+
This tells Bundler to install newer versions of all of your Gems, if
|
178
|
+
available, and within the pessimistic version checks in the `Gemfile`, and
|
179
|
+
also updates `Gemfile.lock` so that newer versions of the gems will be used.
|
180
|
+
|
181
|
+
~~~
|
182
|
+
bundle update
|
183
|
+
~~~
|
184
|
+
|
185
|
+
|
186
|
+
`config.rb`
|
187
|
+
-----------
|
188
|
+
|
189
|
+
Nearly every Ruby project, including your _Middlemac_ Help Book project,
|
190
|
+
follows the convention of configuration via a `config.rb` file in the root
|
191
|
+
level of your project directory.
|
192
|
+
|
193
|
+
Information specific to _Middlemac_’s `config.rb` is available in the
|
194
|
+
[appropriate section][setup] of this documentation.
|
data/documentation_project/Contents/Resources/en.lproj/030_get_started/aside_frontmatter.html.md.erb
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
---
|
2
|
+
title: Front Matter
|
3
|
+
blurb: <em>Middleman</em> (and hence <em>Middlemac</em>) source files use
|
4
|
+
front matter to control many features of pages.
|
5
|
+
layout: layout-apple-modern-aside
|
6
|
+
---
|
7
|
+
<%= md_links %>
|
8
|
+
<%= md_images %>
|
9
|
+
|
10
|
+
<%= current_page.data.blurb %>
|
11
|
+
|
12
|
+
Front matter is a document header section in format called YAML that contains
|
13
|
+
key-value data that applies to a page. This data can be referred to later for
|
14
|
+
output or control. For example, the title of this page was specified with a
|
15
|
+
`title:` key in the source document’s front matter, and it was given a blurb
|
16
|
+
(used as the opening paragraph and also the `meta description` `content` value
|
17
|
+
for the page) via the `blurb:` key.
|
18
|
+
|
19
|
+
If you examine the source for this page, you might notice that there is no
|
20
|
+
`meta description` tag in the `head`; rest assured, it _is_ present in the
|
21
|
+
HTML file, and used by the Apple Help Indexer.
|
22
|
+
{: .note}
|
23
|
+
|
24
|
+
Front matter can also control page order within a section, inclusion of pages
|
25
|
+
for targets/features (provided by the `middleman-targets` gem), and more.
|
26
|
+
|
27
|
+
Here’s this document’s front matter:
|
28
|
+
|
29
|
+
~~~ yaml
|
30
|
+
---
|
31
|
+
title: Front Matter
|
32
|
+
blurb: _Middleman_ (and hence _Middlemac_) source files use front matter to
|
33
|
+
control many features of pages.
|
34
|
+
---
|
35
|
+
~~~
|
36
|
+
|
37
|
+
## Declaring Front Matter
|
38
|
+
|
39
|
+
Front matter is defined as being delimited at the beginning and end with a line
|
40
|
+
consisting of a series of three hyphens (`-`), and this block must appear at the
|
41
|
+
top of a document.
|
42
|
+
|
43
|
+
Although specific front matter keys are discussed elsewhere in this
|
44
|
+
documentation it’s worth pointing out that the `title:` and `:blurb` are used
|
45
|
+
extensively in _Middlemac_. For example all of the automatic navigation
|
46
|
+
features are built using this data, meaning that this data need only appear
|
47
|
+
once, here, in this very document.
|
48
|
+
|
49
|
+
|
50
|
+
## JSON Frontmatter
|
51
|
+
|
52
|
+
Recent versions of _Middleman_ support the use of JSON instead of YAML for
|
53
|
+
frontmatter. The following example show how this page’s frontmatter may have
|
54
|
+
been written instead:
|
55
|
+
|
56
|
+
~~~ json
|
57
|
+
;;;
|
58
|
+
"title": "Front Matter",
|
59
|
+
"blurb": "_Middleman_ (and hence _Middlemac_) source files use front matter to control many features of pages."
|
60
|
+
;;;
|
61
|
+
~~~
|
62
|
+
|
63
|
+
JSON is indicated with delimiting `;;;` instead of hyphens.
|
64
|
+
{: .note}
|
data/documentation_project/Contents/Resources/en.lproj/040_compose_project/010_setup.html.md.erb
ADDED
@@ -0,0 +1,204 @@
|
|
1
|
+
---
|
2
|
+
title: Set Up your Help Project
|
3
|
+
blurb: Setting up your help project is the first step in <em>Middlemac</em>’s
|
4
|
+
workflow. Understand how configure your project and Xcode in this
|
5
|
+
article.
|
6
|
+
---
|
7
|
+
<%= md_links %>
|
8
|
+
<%= md_images %>
|
9
|
+
|
10
|
+
<%= current_page.data.blurb %>
|
11
|
+
|
12
|
+
The file `config.rb` has settings which both affect how _Middleman_ operates as
|
13
|
+
well as how _Middlemac_ builds your Help Books. **If you follow the _Middlemac_
|
14
|
+
conventions, there should be no reason to change the _Middleman_ settings.**
|
15
|
+
|
16
|
+
When you open `config.rb` in your text editor, at the top you will readily
|
17
|
+
identify the start of the _Middlemac_ configuration section, which is delimited
|
18
|
+
by this block at the beginning:
|
19
|
+
|
20
|
+
~~~ ruby
|
21
|
+
################################################################################
|
22
|
+
# config.rb
|
23
|
+
# Configure Middleman to generate Apple Help Book containers for multiple
|
24
|
+
# targets.
|
25
|
+
################################################################################
|
26
|
+
~~~
|
27
|
+
|
28
|
+
And terminated by this block at the end:
|
29
|
+
|
30
|
+
~~~ ruby
|
31
|
+
################################################################
|
32
|
+
# STOP! There's nothing below here that you should have to
|
33
|
+
# change. Just follow the conventions and framework provided.
|
34
|
+
################################################################
|
35
|
+
~~~
|
36
|
+
|
37
|
+
## Sections
|
38
|
+
|
39
|
+
Because _Middlemac_ is made from a few different components, its key
|
40
|
+
configuration is performed in a couple of different blocks. The file is also
|
41
|
+
very well commented, and the [API Reference][config_ref] contains specific
|
42
|
+
documentation for each setting.
|
43
|
+
|
44
|
+
However the `targets` hash bears explaining.
|
45
|
+
|
46
|
+
## The `targets` hash explained
|
47
|
+
|
48
|
+
At first the `targets` option looks complicated in that it consists of nested
|
49
|
+
hashes, but the format is quite simple to get used to. Each root level item
|
50
|
+
in `targets` consists of the following items, which are unique for each target.
|
51
|
+
|
52
|
+
`:CFBundleID`
|
53
|
+
: **Each help target must have a unique `CFBundleID` that matches a unique
|
54
|
+
`CFBundleHelpBookName` in your applications’ `Info.plist` files**. This
|
55
|
+
pairing is the mechanism by which macOS knows which help bundle belongs
|
56
|
+
to which application. If they are not unique, macOS _will_ become
|
57
|
+
confused, and your end-users, if they have multiple versions of your product
|
58
|
+
installed, will not be very satisfied.
|
59
|
+
|
60
|
+
`:HPDBookIconPath`
|
61
|
+
: If specified, a target-specific icon will be used as the Help Book icon by
|
62
|
+
Apple’s Help Viewer. This path must be relative to the location of the
|
63
|
+
`Info.plist` file per Apple’s specification. If `nil` (or not present)
|
64
|
+
then the default `SharedGlobalAssets/convention/icon_32x32@2x.png` will be
|
65
|
+
used.
|
66
|
+
|
67
|
+
`:CFBundleName`
|
68
|
+
: This value will be used for correct `.plists` and `.strings` setup, and will
|
69
|
+
determine final `.help` directory name. All targets should use the same
|
70
|
+
`:CFBundleName`. Built targets will be named `CFBundleName_(target).help`.
|
71
|
+
This is *not* intended to be a product name, which is defined below.
|
72
|
+
|
73
|
+
`:ProductName`
|
74
|
+
`:ProductVersion`
|
75
|
+
`:ProductURI`
|
76
|
+
`:ProductCopyright`
|
77
|
+
: The default templates use these in a prominent way, and they’re also
|
78
|
+
available to you using _Middlemac_’s helpers.
|
79
|
+
|
80
|
+
`:Features`
|
81
|
+
: Aside from **targets** the use of **features** can give you fine-grained
|
82
|
+
control over what content appears in each target. It’s considered a
|
83
|
+
best-practice to include all of the same features in the hash for each
|
84
|
+
target, and specify a boolean (true/false) value for each key, as
|
85
|
+
appropriate for your target. _Middlemac_ documentation has four features
|
86
|
+
defined.
|
87
|
+
{: .width25}
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
CFBundleName and Targets
|
92
|
+
------------------------
|
93
|
+
|
94
|
+
The first thing we need to do is come up with a `CFBundleName` for our help
|
95
|
+
projects, and decide what the targets are going to be. This will help us setup
|
96
|
+
Xcode shortly.
|
97
|
+
|
98
|
+
Xcode doesn’t know or care what the help bundle’s `CFBundleName` is, but
|
99
|
+
_Middlemac_ uses it and the target to name the final, built help bundle, and
|
100
|
+
Xcode _does_ have to know the name of those.
|
101
|
+
|
102
|
+
All of your targets will share the same `CFBundleName`, so it should be
|
103
|
+
descriptive of all of your targets and related to your product name. If the
|
104
|
+
examples on this page, we’ll use `Middlemac`. This project also has the
|
105
|
+
targets `pro` and `free`. What this means is _Middlemac_ will build help
|
106
|
+
bundles named `Middlemac_(pro).help` and `Middlemac_(free).help`.
|
107
|
+
|
108
|
+
If your `CFBundleName` contains any space characters, they will be replaced
|
109
|
+
during build with underscores. This ensures that if you use `make` (e.g., such
|
110
|
+
as from within Xcode) to build your Help Books, `make`’s broken handling of
|
111
|
+
spaces won’t prevent a build.
|
112
|
+
{: .note .callout}
|
113
|
+
|
114
|
+
|
115
|
+
CFBundleID and Targets
|
116
|
+
----------------------
|
117
|
+
|
118
|
+
You will also have to have unique bundle identifiers for each of your Help
|
119
|
+
Book targets, and you will have to have these available when you set up your
|
120
|
+
`Info.plist` files in Xcode.
|
121
|
+
|
122
|
+
As is standard with BundleID’s, reverse DNS notation is preferred. This
|
123
|
+
documentation project uses `com.balthisar.middlemac.free.help` and
|
124
|
+
`com.balthisar.middlemac.pro.help` for its two targets.
|
125
|
+
|
126
|
+
Let’s use this information and start to set up Xcode.
|
127
|
+
|
128
|
+
|
129
|
+
Xcode Configuration
|
130
|
+
-------------------
|
131
|
+
|
132
|
+
### Add Files
|
133
|
+
|
134
|
+
Let’s first tell your Xcode application targets that the help bundle files are
|
135
|
+
available. In your Xcode project, create folders named `Middlemac_(pro).help`
|
136
|
+
and `Middlemac_(free).help`. They typically go into your project’s
|
137
|
+
`Resources/` folder. Mac OS will automatically display them as bundles. For
|
138
|
+
now, these are just proxies for the bundles we’ll build later.
|
139
|
+
|
140
|
+
Help Books are bundles with their own localizations inside of them. Don’t put
|
141
|
+
Help Books in your application’s localized folders such as `Base.lproj/` or
|
142
|
+
`en.lproj/`. Putting them into `Resources/` is the right thing to do.
|
143
|
+
{: .tip .callout}
|
144
|
+
|
145
|
+
Next you can add these files to Xcode the usual way (“Add files…”). **Make
|
146
|
+
sure you add these by creating folder references. This is critical.** If you
|
147
|
+
are able to browse the folder contents in Xcode, then they were not properly
|
148
|
+
added and will not properly copy into the final application bundle.
|
149
|
+
|
150
|
+
Assuming you have a Pro and Free target in Xcode, you can use the file
|
151
|
+
inspector to make sure the Pro `.help` and the Free `.help` have the
|
152
|
+
appropriate, obvious target memberships.
|
153
|
+
|
154
|
+
### Configure your applications’ `Info.plist` files
|
155
|
+
|
156
|
+
If you have multiple Xcode targets, you may be using a different `Info.plist`
|
157
|
+
file for each target. If not, then you’ll have to start because they contain
|
158
|
+
information unique to each Help Book.
|
159
|
+
|
160
|
+
Alternatively you can setup an `Info.plist` pre-processor (this is my
|
161
|
+
preferred approach) that generates an `Info.plist` for each target when you
|
162
|
+
build. _That’s_ beyond the scope of this document, though. You can begin by
|
163
|
+
looking at your Xcode targets’ **Build Settings -> Packaging**.
|
164
|
+
{: .tip .callout}
|
165
|
+
|
166
|
+
In each of your `Info.plist` files, find or create the following keys:
|
167
|
+
|
168
|
+
`Help Book directory name` (`CFBundleHelpBookFolder`)
|
169
|
+
|
170
|
+
: Ensure you use the appropriate `Middlemac_(pro).help` or
|
171
|
+
`Middlemac_(free).help`, depending on which target’s `.plist` this is.
|
172
|
+
|
173
|
+
`Help Book identifier` (`CFBundleHelpBookName`)
|
174
|
+
|
175
|
+
: This must match the unique `CFBundleID` that you set for each of your
|
176
|
+
help targets in the help project’s `config.rb` file. If you’ve not setup
|
177
|
+
the `config.rb` yet, now is a good time to decide on the keys that you will
|
178
|
+
use.
|
179
|
+
|
180
|
+
This sample project uses `com.balthisar.middlemac.free.help` and
|
181
|
+
`com.balthisar.middlemac.pro.help`.
|
182
|
+
{: .nontabular}
|
183
|
+
|
184
|
+
|
185
|
+
Setup `config.rb` and especially `options.help_output_location`
|
186
|
+
-------------------------------------------------------------------
|
187
|
+
|
188
|
+
Next make sure you setup `config.rb` with matching values from above.
|
189
|
+
|
190
|
+
We setup empty proxy `.help` bundles for Xcode above. Make sure that you set
|
191
|
+
your `config.rb`’s `options.help_output_location` to the directory that you
|
192
|
+
created the proxy files. Then, any time you build your help projects with
|
193
|
+
_Middlemac_, they will be ready to go in Xcode automatically, the next time
|
194
|
+
you build your Xcode project.
|
195
|
+
|
196
|
+
|
197
|
+
_Middlemac_ takes care of everything else
|
198
|
+
-----------------------------------------
|
199
|
+
|
200
|
+
Once your `config.rb` is setup, _Middlemac_ takes care of setting all of the
|
201
|
+
required keys and data in all of the help bundle `.plist`, `.strings`, and
|
202
|
+
main `index.html` file, managing them for each target.
|
203
|
+
|
204
|
+
|
@@ -3,17 +3,13 @@ title: File Types
|
|
3
3
|
blurb: <em>Middleman</em> uses several filetypes to get its job done. An
|
4
4
|
understanding of their differences is important to your successful use
|
5
5
|
of <em>Middlemac</em>.
|
6
|
-
layout: template-logo-medium
|
7
6
|
---
|
8
7
|
<%= md_links %>
|
9
8
|
<%= md_images %>
|
10
9
|
|
11
|
-
<%= current_page.data.title %>
|
12
|
-
==============================
|
13
|
-
|
14
10
|
<%= current_page.data.blurb %>
|
15
11
|
|
16
|
-
Although you can use static `.html` files to build your
|
12
|
+
Although you can use static `.html` files to build your Help Book, you would be
|
17
13
|
sacrificing a lot of _Middleman_’s utility to do so, because static html is
|
18
14
|
simply copied to your build directory as-is, with no opportunity to take
|
19
15
|
advantages of the infrastructure that _Middleman_ and _Middlemac_ offer you.
|
@@ -43,11 +39,11 @@ extensions and will process them accordingly.
|
|
43
39
|
|
44
40
|
`.haml`
|
45
41
|
|
46
|
-
: The “HTML abstraction markup language” excels at enforcing structure in
|
47
|
-
HTML-target documents, and is clutter-free and easy to read. It
|
48
|
-
many built-in filters for including content in Ruby, Markdown,
|
49
|
-
code, and more. _Middlemac_’s
|
50
|
-
|
42
|
+
: The “HTML abstraction markup language” excels at enforcing structure in
|
43
|
+
your HTML-target documents, and is clutter-free and easy to read. It
|
44
|
+
supports many built-in filters for including content in Ruby, Markdown,
|
45
|
+
raw source code, and more. _Middlemac_’s layouts are written in HAML, but
|
46
|
+
you probably won’t use it for your own HTML documents.
|
51
47
|
|
52
48
|
You can learn more about HAML on [its website](http://haml.info/).
|
53
49
|
|
@@ -68,7 +64,7 @@ extensions and will process them accordingly.
|
|
68
64
|
and SCSS is the file format.
|
69
65
|
|
70
66
|
You can learn more about SASS on [its website](http://sass-lang.com/).
|
71
|
-
|
67
|
+
{: .width25}
|
72
68
|
|
73
69
|
Files with a leading underscore
|
74
70
|
-------------------------------
|