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/Base.lproj/010_what_is_middlemac/index.html.md.erb
DELETED
@@ -1,126 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: What is <em>Middlemac</em>?
|
3
|
-
blurb: Discover what <em>Middlemac</em> can do for you, why it exists, and
|
4
|
-
what it’s made out of.
|
5
|
-
layout: template-logo-medium
|
6
|
-
---
|
7
|
-
<%= md_links %>
|
8
|
-
<%= md_images %>
|
9
|
-
|
10
|
-
|
11
|
-
<%= current_page.data.title %>
|
12
|
-
==============================
|
13
|
-
|
14
|
-
<%= current_page.data.blurb %>
|
15
|
-
|
16
|
-
## What does _Middlemac_ do?
|
17
|
-
|
18
|
-
_Middlemac_ makes it simple to do this in Terminal…
|
19
|
-
|
20
|
-
`bundle exec middleman build_all`
|
21
|
-
|
22
|
-
…and end up with versions of your help books specific to each version of your
|
23
|
-
Mac OS X application, with all of the Apple-required files in the Apple-required
|
24
|
-
formats in the correct locations of your Xcode source directory. Simply build
|
25
|
-
your help target, run your application, and find that it just works.
|
26
|
-
|
27
|
-
## Yeah, but what does it _do_?
|
28
|
-
|
29
|
-
_Middlemac_, using _Middleman_, takes a directory of source files, processes all
|
30
|
-
of the contents, and produces a finished Apple Help Book. The source files can
|
31
|
-
be standard HTML or Markdown, and _Middlemac_ takes care of nearly all of the
|
32
|
-
nitty gritty details for you.
|
33
|
-
|
34
|
-
- Write your help files with plain text using the
|
35
|
-
[Markdown](http://kramdown.gettalong.org/) format.
|
36
|
-
|
37
|
-
~~~ markdown
|
38
|
-
# Read this headline!
|
39
|
-
Markdown makes it easy to write text that’s legible in its text form and that
|
40
|
-
renders very easily to HTML.
|
41
|
-
~~~
|
42
|
-
|
43
|
-
- It decouples your content from your visual design and from HTML document
|
44
|
-
formats via the use of [templates][templates]. The templates can be used
|
45
|
-
as-is or easily tweaked to suit your needs, and they include a basic,
|
46
|
-
Apple-like CSS stylesheet offering a reasonably attractive out-of-the-box
|
47
|
-
appearance.
|
48
|
-
|
49
|
-
- Single or multiple build [targets][targets], e.g., your `pro` target can
|
50
|
-
include content specific to the professional version of your application.
|
51
|
-
**For example, the current target of this documentation is `<%= target_name
|
52
|
-
%>`**.
|
53
|
-
|
54
|
-
- [Features][features] support for each build target. For example each of your
|
55
|
-
build targets can specify whether or not they support specific features, and
|
56
|
-
this content will be included or excluded as your needs require. This offers
|
57
|
-
highly granular control versus trying to manage complex targets on their own.
|
58
|
-
|
59
|
-
- A low [learning curve][skills_refresher-index], especially if you’re already a
|
60
|
-
developer.
|
61
|
-
|
62
|
-
- A set of conventions and tools that make automatic tables of contents,
|
63
|
-
automatic sections, breadcrumbs, and other automatic navigation behavior
|
64
|
-
simple to implement.
|
65
|
-
|
66
|
-
- [Partials][partials], [helpers][helpers], and [resource methods][resources]
|
67
|
-
that make your static help documents appear more dynamic while
|
68
|
-
[keeping yourself DRY](http://en.wikipedia.org/wiki/Don't_repeat_yourself).
|
69
|
-
|
70
|
-
- Automatic management of `Info.plist` and `InfoPlist.strings` files make it
|
71
|
-
simple to work with Xcode.
|
72
|
-
|
73
|
-
- Automatic use of Apple’s help indexer tool ensures that the Help Viewer
|
74
|
-
is always aware of your content.
|
75
|
-
|
76
|
-
|
77
|
-
## Why _Middlemac_ exists
|
78
|
-
|
79
|
-
_Middlemac_ exists to solve these two problems:
|
80
|
-
|
81
|
-
- **How do I build help files for my Mac OS X applications?** Although
|
82
|
-
ostensibly a simple set of HTML files, a Mac OS X help book requires careful
|
83
|
-
application of data in order for the help book to interface properly with
|
84
|
-
your application. And for historical reasons, some of the pages have to use
|
85
|
-
different HTML versions.
|
86
|
-
|
87
|
-
- **How do I manage help files for multiple versions of my Mac OS X
|
88
|
-
applications, each of which has a different feature set?** Although
|
89
|
-
_Middlemac_ is great for applications that have a single version, it really
|
90
|
-
excels when managing applications that have multiple versions (such as Free
|
91
|
-
or Pro). _Middlemac_ makes it simple to produce help documents specific to
|
92
|
-
these versions, all using the same source.
|
93
|
-
|
94
|
-
|
95
|
-
## What is _Middlemac_ made of?
|
96
|
-
|
97
|
-
_Middlemac_ is a system of Gems that act as an extension to _Middleman_, a
|
98
|
-
static site building tool that offers a lot of dynamism to static web sites.
|
99
|
-
Without _Middleman_, nothing else in _Middlemac_ would work.
|
100
|
-
|
101
|
-
_Middlemac_ consists of the gems:
|
102
|
-
|
103
|
-
`middlemac`
|
104
|
-
|
105
|
-
: This gem requires all of the other gems in the system and adds several
|
106
|
-
helpers to make working with target and feature much more convenient. It’s
|
107
|
-
also responsible for providing the basic help book template and managing the
|
108
|
-
Apple help indexer.
|
109
|
-
|
110
|
-
`middlemac-extras`
|
111
|
-
|
112
|
-
: This gem adds features to _Middleman_ to make working with images and
|
113
|
-
Markdown reference style links easier. It’s released as a separate gem
|
114
|
-
because it can still be useful for standard _Middleman_ projects.
|
115
|
-
|
116
|
-
`middleman-pagegroups`
|
117
|
-
|
118
|
-
: This gem offers all of the automatic navigation features used by
|
119
|
-
_Middlemac_. It’s released as a separate gem because it can still be useful
|
120
|
-
for standard _Middleman_ projects.
|
121
|
-
|
122
|
-
`middleman-targets`
|
123
|
-
|
124
|
-
: This gem gives _Middleman_ the ability to build and serve multiple targets.
|
125
|
-
It’s released as a separate gem because it can still be useful for
|
126
|
-
standard _Middleman_ projects.
|
@@ -1,54 +0,0 @@
|
|
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: template-logo-medium
|
6
|
-
---
|
7
|
-
<%= md_links %>
|
8
|
-
<%= md_images %>
|
9
|
-
|
10
|
-
<%= current_page.data.title %>
|
11
|
-
==============================
|
12
|
-
|
13
|
-
<%= current_page.data.blurb %>
|
14
|
-
|
15
|
-
Front matter is a document header section that contains key-value data that
|
16
|
-
applies to a page. This data can be referred to later for output or control.
|
17
|
-
For example, the title of this page was specified with a `title:` key in the
|
18
|
-
source document’s front matter, and its layout was specified with a `layout:`
|
19
|
-
key.
|
20
|
-
|
21
|
-
Front matter can also control page order (a feature of _Middleman_’s
|
22
|
-
`middleman-pagegroups` gem), inclusion of pages for targets/features (provided
|
23
|
-
by the `middleman-targets` gem), and more.
|
24
|
-
|
25
|
-
Here’s this document’s front matter:
|
26
|
-
|
27
|
-
~~~ yaml
|
28
|
-
---
|
29
|
-
title: Front Matter
|
30
|
-
blurb: <em>Middleman</em> (and hence <em>Middlemac</em>) source files use
|
31
|
-
front matter to control a lot of features of pages.
|
32
|
-
layout: template-logo-medium
|
33
|
-
---
|
34
|
-
~~~
|
35
|
-
|
36
|
-
## Declaring Front Matter
|
37
|
-
|
38
|
-
Front matter is defined as being delimited at the beginning and end with a line
|
39
|
-
consisting of a series of three hyphens (`-`), and this block must appear at the
|
40
|
-
top of a document.
|
41
|
-
|
42
|
-
Although specific front matter keys are discussed elsewhere in this
|
43
|
-
documentation it’s worth pointing out that the `title:` and `:blurb` are used
|
44
|
-
extensively in _Middlemac_. For example all of the automatic navigation
|
45
|
-
features are built using this data, meaning that this data need only appear
|
46
|
-
once, here, in this very document.
|
47
|
-
|
48
|
-
## Markdown in Front Matter
|
49
|
-
|
50
|
-
You may have noticed that the front matter contains HTML. Because the front
|
51
|
-
matter consists of data rather than content specifically targeted for display,
|
52
|
-
it is not processed by the Markdown engine. Front matter is one of the very
|
53
|
-
few places in a _Middlemac_ project where you have to revert to using HTML.
|
54
|
-
|
@@ -1,67 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Ruby
|
3
|
-
blurb: As the language that powers <em>Middlemac</em>, it’s worth taking a
|
4
|
-
short look at the Ruby language.
|
5
|
-
layout: template-logo-medium
|
6
|
-
---
|
7
|
-
<%= md_links %>
|
8
|
-
<%= md_images %>
|
9
|
-
|
10
|
-
<%= current_page.data.title %>
|
11
|
-
==============================
|
12
|
-
|
13
|
-
<%= current_page.data.blurb %>
|
14
|
-
|
15
|
-
[Ruby](https://www.ruby-lang.org/en/) is the language that _Middlemac_,
|
16
|
-
_Middleman_, and many of the others tools are written with. You do not have to
|
17
|
-
learn Ruby to take advantage of _Middlemac_, although some ability to work with
|
18
|
-
it will be invaluable to you.
|
19
|
-
|
20
|
-
Ruby may surprise you
|
21
|
-
---------------------
|
22
|
-
|
23
|
-
If you’re a software developer, then it’s highly likely that you will be able to
|
24
|
-
read most Ruby code immediately. Coming from an Objective-C or Swift background,
|
25
|
-
these are a few things that may surprise you.
|
26
|
-
|
27
|
-
### Symbols
|
28
|
-
Ruby has a type of identifier called a `symbol`. They are used quite extensively
|
29
|
-
and look like `:this_symbol`. As identifiers and not variables, you can’t assign
|
30
|
-
values to them. Their value is themselves, though they have useful string
|
31
|
-
representations (`:this_symbol.to_s`). You can even get the symbol
|
32
|
-
representation of `'this_string'.to_sym`. Because they're unique, they make
|
33
|
-
excellent array/hash keys and excellent, guaranteed unique values.
|
34
|
-
|
35
|
-
### Everything is an object
|
36
|
-
Everything is an object, including what are fundamental datatypes in other
|
37
|
-
languages. Need to convert the integer `i` to a float? It’s as easy as
|
38
|
-
`i.to_f`.
|
39
|
-
|
40
|
-
### Everything has a return value
|
41
|
-
In Ruby you don’t require `return value`, or `result := value`, or
|
42
|
-
`function_name = value`. Just `value`, alone, will return its value. Even `if`
|
43
|
-
statements return values:
|
44
|
-
|
45
|
-
~~~ ruby
|
46
|
-
result = if answer == 'yes'
|
47
|
-
"The answer as affirmative."
|
48
|
-
else
|
49
|
-
"The answer was something else."
|
50
|
-
end
|
51
|
-
~~~
|
52
|
-
|
53
|
-
This example assigns the appropriate string to the variable `result`.
|
54
|
-
|
55
|
-
|
56
|
-
Just enough Ruby
|
57
|
-
----------------
|
58
|
-
To work effectively with _Middlemac_ you’ll only have to learn enough Ruby to
|
59
|
-
do a few simple things:
|
60
|
-
|
61
|
-
- Set variables in the `config.rb` file.
|
62
|
-
- Use a few helper functions from within files, e.g., `partial 'my_file'`.
|
63
|
-
- Use conditionals, if you want them. You know: simply `if/else/end`, or even
|
64
|
-
`unless/else/end`.
|
65
|
-
|
66
|
-
Examples of these last two points can be seen when we take a look at
|
67
|
-
[File Types][filetypes_skill].
|
@@ -1,136 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Ruby’s Ecosystem
|
3
|
-
blurb: Ruby has a huge ecosystem the can be confusing to new users. This
|
4
|
-
article makes a very brief introduction that should shorten the learning
|
5
|
-
curve.
|
6
|
-
layout: template-logo-medium
|
7
|
-
---
|
8
|
-
<%= md_links %>
|
9
|
-
<%= md_images %>
|
10
|
-
|
11
|
-
<%= current_page.data.title %>
|
12
|
-
==============================
|
13
|
-
|
14
|
-
<%= current_page.data.blurb %>
|
15
|
-
|
16
|
-
Gems
|
17
|
-
----
|
18
|
-
|
19
|
-
“Gems” are packages of Ruby or compiled code in a standard format that serve as
|
20
|
-
extensions or library additions to Ruby. _Middlemac_ is a system consisting of
|
21
|
-
the `middlemac` gem, among others.
|
22
|
-
|
23
|
-
By default Ruby is configured to fetch gems from
|
24
|
-
[rubygems.org](https://rubygems.org/), which is convenient as long as you are
|
25
|
-
connected to the internet.
|
26
|
-
|
27
|
-
Gems, as software, have versions and can have dependencies on other gems. This
|
28
|
-
can lead to dependency hell when multiple versions of multiple gems are
|
29
|
-
installed having a clash due to mixed dependencies. Luckily this has been mostly
|
30
|
-
solved via the use of Bundler.
|
31
|
-
|
32
|
-
Bundler
|
33
|
-
-------
|
34
|
-
|
35
|
-
Bundler is a gem version management system that ensures that the correct gem
|
36
|
-
version is used on a per-project basis, as specified in the `Gemfile` and locked
|
37
|
-
in `Gemfile.lock` (more on these below).
|
38
|
-
|
39
|
-
Using bundler will ensure that gem versions of known compatibility will be used.
|
40
|
-
For example, _Middlemac_ requires _Middleman_ version 4.1.7 or higher, which
|
41
|
-
itself requires other gems of specific versions. Bundler will ensure that when
|
42
|
-
building a _Middlemac_ project, _only_ the correct gems are used.
|
43
|
-
|
44
|
-
When you see a command such as:
|
45
|
-
|
46
|
-
~~~ bash
|
47
|
-
bundle exec middleman build
|
48
|
-
~~~
|
49
|
-
|
50
|
-
…it means that Bundler will execute the `middleman` gem, and will take
|
51
|
-
responsibility for ensuring the correct gem versions are used. If we want to
|
52
|
-
leave it up to chance, we might try this:
|
53
|
-
|
54
|
-
~~~ bash
|
55
|
-
middleman build
|
56
|
-
~~~
|
57
|
-
|
58
|
-
…and this might work, or it might not. Without using Bundler, the default
|
59
|
-
versions of gems installed on your system will be used, and they might not be
|
60
|
-
compatible the default version of `middleman`.
|
61
|
-
|
62
|
-
Ruby projects, including _Middlemac_ help book projects, specify gem versions
|
63
|
-
using a file in the project directory called `Gemfile`.
|
64
|
-
|
65
|
-
|
66
|
-
`Gemfile` and `Gemfile.lock`
|
67
|
-
----------------------------
|
68
|
-
|
69
|
-
Your _Middlemac_ project contains this file to specify to Bundler which versions
|
70
|
-
of Ruby gems should be used. In general you don't have to bother with this file
|
71
|
-
at all. However if you become more advanced and want to use other gems, you’ll
|
72
|
-
have to dive into this file eventually.
|
73
|
-
|
74
|
-
This file contains gems and the versions that are allowed. For example,
|
75
|
-
this documentation project’s `Gemfile` contains something similar to this:
|
76
|
-
|
77
|
-
~~~ ruby
|
78
|
-
gem 'middleman-pagegroups', '~> 1.0.3'
|
79
|
-
~~~
|
80
|
-
|
81
|
-
This declaration tells Bundler that `middleman-pagegroups` is a gem that is
|
82
|
-
required for this project, and that any version greater than 1.0.3 is allowed,
|
83
|
-
but only in the `1.0.x` series. The `~>` is called a “pessimistic operator” and
|
84
|
-
is used if we don’t trust the `1.1.x` will break nothing.
|
85
|
-
|
86
|
-
Other operators are available, too, of course, and are a simple web search away.
|
87
|
-
|
88
|
-
The file `Gemfile.lock` is generated automatically by Bundler, and you should
|
89
|
-
never, ever modify this file yourself (you should also exclude it from version
|
90
|
-
control). This file is the file that indicates to Bundler the _exact_ versions
|
91
|
-
of Gems that will be used. It ensures that the set of gems always stays
|
92
|
-
consistent (even if you update gems) unless you deliberately want it to do
|
93
|
-
otherwise.
|
94
|
-
|
95
|
-
### `bundle install`
|
96
|
-
|
97
|
-
When you `cd` into a project directory, you can:
|
98
|
-
|
99
|
-
~~~ bash
|
100
|
-
bundle install
|
101
|
-
~~~
|
102
|
-
|
103
|
-
This tells Bundler to check the `Gemfile` and install any gems that are required
|
104
|
-
but are missing, typically from [rubygems.org](https://rubygems.org/). After
|
105
|
-
installing the gems Bundler will also update the `Gemfile.lock`, thereby
|
106
|
-
freezing the versions to be used in your project.
|
107
|
-
|
108
|
-
What happens if I install a newer version of a Ruby gem? For example, if the
|
109
|
-
`Gemfile` is configured to use `middleman-pagegroups` 1.0.3 or above, and I’ve
|
110
|
-
been building with it for weeks, and then update my gem to 1.0.4? In this case,
|
111
|
-
as long as 1.0.3 is still installed on your system, Bundler will still use this
|
112
|
-
version.
|
113
|
-
|
114
|
-
You’ll either have to update the `Gemfile` with 1.0.4 and then `bundle install`
|
115
|
-
again, or…
|
116
|
-
|
117
|
-
### `bundle update`
|
118
|
-
|
119
|
-
This tells Bundler to install newer versions of all of your Gems, if available,
|
120
|
-
and within the pessimistic version checks in the `Gemfile`, and also updates
|
121
|
-
`Gemfile.lock` so that newer versions of the gems will be used.
|
122
|
-
|
123
|
-
~~~ bash
|
124
|
-
bundle update
|
125
|
-
~~~
|
126
|
-
|
127
|
-
|
128
|
-
`config.rb`
|
129
|
-
-----------
|
130
|
-
|
131
|
-
Nearly every Ruby project, including your _Middlemac_ help book project, follows
|
132
|
-
the convention of configuration via a `config.rb` file in the root level of your
|
133
|
-
project directory.
|
134
|
-
|
135
|
-
Information specific to _Middlemac_’s `config.rb` is available in the
|
136
|
-
[appropriate section][setup-index] of this documentation.
|
data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/index.html.md.erb
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Skills Refresher
|
3
|
-
blurb: If you don’t know a thing about Ruby or <em>Middleman</em>, don’t
|
4
|
-
worry; there’s enough information in this section to get you started.
|
5
|
-
layout: template-logo-large
|
6
|
-
navigate: true
|
7
|
-
---
|
8
|
-
<%= md_links %>
|
9
|
-
<%= md_images %>
|
10
|
-
|
11
|
-
<%= current_page.data.title %>
|
12
|
-
==============================
|
13
|
-
|
14
|
-
<%= current_page.data.blurb %>
|
15
|
-
|
16
|
-
_Middlemac_ uses tools you may already know. Or not.
|
17
|
-
|
18
|
-
- [Markdown](http://kramdown.gettalong.org/) is the text-based, human-readable,
|
19
|
-
easy to use format that will make writing your documentation a real pleasure.
|
20
|
-
This file is written using Markdown.
|
21
|
-
- [_Middleman_](http://middlemanapp.com) is a static HTML site generator, and is
|
22
|
-
the heart of _Middlemac_’s abilities, as well as an inspiration for the name.
|
23
|
-
- [Ruby](https://www.ruby-lang.org/en/) is the language that _Middlemac_,
|
24
|
-
_Middleman_, and many of the others tools are written with. You do not have
|
25
|
-
to learn Ruby to take advantage of _Middlemac_, although some ability to work
|
26
|
-
with it will be invaluable to you.
|
27
|
-
- HTML is the markup language that Apple requires for help books. But
|
28
|
-
_Middlemac_ promises to make things easy for you, and so…
|
29
|
-
|
30
|
-
|
31
|
-
* * *
|
32
|
-
|
33
|
-
<%= nav_legitimate_children %>
|
34
|
-
|
35
|
-
* * *
|
@@ -1,88 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: "Workflow: 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 to do this setup in this article.
|
5
|
-
layout: template-logo-medium
|
6
|
-
---
|
7
|
-
<%= md_links %>
|
8
|
-
<%= md_images %>
|
9
|
-
|
10
|
-
<%= current_page.data.title %>
|
11
|
-
==============================
|
12
|
-
|
13
|
-
<%= current_page.data.blurb %>
|
14
|
-
|
15
|
-
The file `config.rb` has settings which both affect how _Middleman_ operates as
|
16
|
-
well as how _Middlemac_ builds your help books. **If you follow the _Middlemac_
|
17
|
-
conventions, there should be no reason to change the _Middleman_ settings.**
|
18
|
-
|
19
|
-
When you open `config.rb` in your text editor, at the top you will readily
|
20
|
-
identify the start of the _Middlemac_ configuration section, which is delimited
|
21
|
-
by this block at the beginning:
|
22
|
-
|
23
|
-
~~~ ruby
|
24
|
-
################################################################################
|
25
|
-
# config.rb
|
26
|
-
# Configure Middleman to generate Apple HelpBook containers for multiple
|
27
|
-
# targets.
|
28
|
-
################################################################################
|
29
|
-
~~~
|
30
|
-
|
31
|
-
And terminated by this block at the end:
|
32
|
-
|
33
|
-
~~~ ruby
|
34
|
-
################################################################
|
35
|
-
# STOP! There's nothing below here that you should have to
|
36
|
-
# change. Just follow the conventions and framework provided.
|
37
|
-
################################################################
|
38
|
-
~~~
|
39
|
-
|
40
|
-
## Sections
|
41
|
-
|
42
|
-
Because _Middlemac_ is made from several components, its key configuration
|
43
|
-
is performed in several different blocks. The file is also very well commented,
|
44
|
-
and the [API Reference][config_ref] contains specific documentation for each
|
45
|
-
setting.
|
46
|
-
|
47
|
-
However the `targets` hash bears explaining.
|
48
|
-
|
49
|
-
## The `targets` hash explained
|
50
|
-
|
51
|
-
At first the `targets` option looks complicated in that it consists of nested
|
52
|
-
hashes, but the format is quite simple to get used to. Each root level item
|
53
|
-
in `targets` consists of the following items, which are unique for each target.
|
54
|
-
|
55
|
-
`:CFBundleID`
|
56
|
-
: Each help target must have a unique `CFBundleID` that matches a unique
|
57
|
-
`CFBundleHelpBookName` in your applications’ `Info.plist` files. This
|
58
|
-
pairing is the mechanism by which Mac OS X knows which help bundle belongs
|
59
|
-
to which application. If they are not unique, Mac OS X _will_ become
|
60
|
-
confused, and your end-users, if they have multiple versions of your product
|
61
|
-
installed, will not be very satisfied.
|
62
|
-
|
63
|
-
`:HPDBookIconPath`
|
64
|
-
: If specified a target-specific icon will be used as the help book icon by
|
65
|
-
Apple’s help viewer. This path must be relative to the location of the
|
66
|
-
`Info.plist` file per Apple’s specification. If `nil` (or not present) then
|
67
|
-
the default `shared/icon_32x32@2x.png` will be used.
|
68
|
-
|
69
|
-
`:CFBundleName`
|
70
|
-
: This value will be used for correct `.plists` and `.strings` setup, and will
|
71
|
-
determine final `.help` directory name. All targets should use the same
|
72
|
-
`:CFBundleName`. Built targets will be named `CFBundleName (target).help`.
|
73
|
-
This is *not* intended to be a product name, which is defined below.
|
74
|
-
|
75
|
-
`:ProductName`, `ProductVersion`, and `ProductURI`
|
76
|
-
: The default templates use these in a prominent way, and they’re also
|
77
|
-
available to you using _Middlemac_’s helpers.
|
78
|
-
|
79
|
-
`:Features`
|
80
|
-
: Aside from **targets** the use of **features** can give you fine-grained
|
81
|
-
control over what content appears in each target. It’s considered a
|
82
|
-
best-practice to include all of the same features in the hash for each
|
83
|
-
target, and specify a boolean (true/false) value for each key, as
|
84
|
-
appropriate for your target. _Middlemac_ documentation has four features
|
85
|
-
defined.
|
86
|
-
|
87
|
-
|
88
|
-
|
@@ -1,176 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Directories, filenames, images, and paths
|
3
|
-
blurb: Learn about proper structure for your directory hierarchy, filenames,
|
4
|
-
and image locations, and discover some best practices related to paths.
|
5
|
-
layout: template-logo-medium
|
6
|
-
---
|
7
|
-
<%= md_links %>
|
8
|
-
<%= md_images %>
|
9
|
-
|
10
|
-
|
11
|
-
<%= current_page.data.title %>
|
12
|
-
==============================
|
13
|
-
|
14
|
-
<%= current_page.data.blurb %>
|
15
|
-
|
16
|
-
Directory conventions
|
17
|
-
---------------------
|
18
|
-
|
19
|
-
You will have noticed by now that your content root appears to be two levels
|
20
|
-
below the actual project root. This is a result of the Apple Help directory
|
21
|
-
structure. Remember, _Middleman_ depends on building an output project that
|
22
|
-
mirrors the input project. In order for links, images, and other content to
|
23
|
-
be accessed properly, _Middlemac_ uses Apple’s convention.
|
24
|
-
|
25
|
-
Fortunately once inside the `Base.lproj` directory, we -- as help book
|
26
|
-
developers -- are free to organize files as we see fit, despite the examples
|
27
|
-
you may have seen in Apple’s documentation. _Middlemac_, though, has setup a
|
28
|
-
hierarchy that “just works,” and the explanation follows. Starting at the top,
|
29
|
-
let’s look at a _Middleman_ project layout. Also don’t forget to have a look
|
30
|
-
later at [Apple Help setup][apple_help_setup].
|
31
|
-
|
32
|
-
Note the many of the file names below are written with destination, _built_
|
33
|
-
file extensions, and not the complete extension as it might appear in the source
|
34
|
-
directory. For example, the top level source file for `index.html` could have
|
35
|
-
the name `index.html.md.erb` or `index.html.haml`, as you see fit.
|
36
|
-
{:.note}
|
37
|
-
|
38
|
-
`Contents/`
|
39
|
-
|
40
|
-
: Contains everything in your help project that will be compiled into or
|
41
|
-
contribute to the final `.help` project.
|
42
|
-
|
43
|
-
`Contents/Info.plist`
|
44
|
-
|
45
|
-
: The `Info.plist` file is the file that _Middlemac_ will process into the
|
46
|
-
final `Info.plist` that your Mac OS X application needs in order to work with
|
47
|
-
your help book. For a basic project you shouldn’t have to modify anything in
|
48
|
-
this file, but if you want or need to have other key-value pairs in the final
|
49
|
-
`Info.plist`, then add them here.
|
50
|
-
|
51
|
-
`Contents/Resources/shared`
|
52
|
-
|
53
|
-
: This directory contains assets that are common between all of your different
|
54
|
-
help language projects. Although _Middlemac_ is not a multilingual solution
|
55
|
-
_per se_, this is maintained because you can simply have a different
|
56
|
-
_Middlemac_ project per language, and then merge in the other language
|
57
|
-
`.lproj` directories into your final help book, sharing assets in this
|
58
|
-
directory.
|
59
|
-
|
60
|
-
`Contents/Resources/Base.lproj`
|
61
|
-
|
62
|
-
: This directory serves as your base [group][groups] and contains all of your
|
63
|
-
help book’s content as well as pieces that will contribute to your content
|
64
|
-
(such as templates).
|
65
|
-
|
66
|
-
Any other files that result in `.html` in this directory level, except for
|
67
|
-
`index.html` constitute part of the `Base.lproj` group. At this level you
|
68
|
-
should start adding directories to contain your other groups.
|
69
|
-
|
70
|
-
`Contents/Resources/Base.lproj/index.html`
|
71
|
-
|
72
|
-
: This is the top level file in your entire project, and is also the Apple
|
73
|
-
Help System main landing page.
|
74
|
-
|
75
|
-
`Contents/Resources/Base.lproj/InfoPlist.strings`
|
76
|
-
|
77
|
-
: The `InfoPlist.strings` file is the file that _Middlemac_ will process into
|
78
|
-
the final `InfoPlist.strings`, which contains the localized version of your
|
79
|
-
applications’ human-readable `Info.plist` data (specifically, `CFBundleName`
|
80
|
-
and `HPDBookTitle`).
|
81
|
-
|
82
|
-
_Middlemac_ is a multi-target solution for a single language, and not a
|
83
|
-
multi-language solution _per se_, and so the `CFBundleName` in your
|
84
|
-
`config.rb` will be used, whether it’s English or German or Chinese. This is
|
85
|
-
one of the strengths of `Base.lproj`: it’s agnostic.
|
86
|
-
|
87
|
-
`Contents/Resources/Base.lproj/assets/`
|
88
|
-
|
89
|
-
: This directory contains all of the non-content assets used in your help book
|
90
|
-
such as stylesheets, images, etc., as well as data source files, templates,
|
91
|
-
layouts and partials.
|
92
|
-
|
93
|
-
You will notice that some of these classes of items are in unconventional
|
94
|
-
locations compared to a default _Middleman_ project. This was done on your
|
95
|
-
behalf for the sake of portability and for having a non-distracting directory
|
96
|
-
environment.
|
97
|
-
|
98
|
-
`_data/`
|
99
|
-
: This directory contains data files that you can use to supply data for
|
100
|
-
[using local data][using_local_data]. This directory will not be
|
101
|
-
output in the final build.
|
102
|
-
|
103
|
-
`_layouts/`
|
104
|
-
: All layouts and templates should go here. This directory will not be
|
105
|
-
output in the final build.
|
106
|
-
|
107
|
-
`images/`
|
108
|
-
: All images should go here. _Middleman_ will find them automatically if
|
109
|
-
you use the helpers.
|
110
|
-
|
111
|
-
`javascripts/`
|
112
|
-
: Javascripts, if any, should go here. You should prefix each script with
|
113
|
-
an underscore so that they will _not_ be included. The already-present
|
114
|
-
file `all.js` will bundle them into a single file -- `all.js` -- and
|
115
|
-
_that’s_ the file loaded by the _Middlemac_ layouts.
|
116
|
-
|
117
|
-
`partials/`
|
118
|
-
: Partials can go here, and should be prefaced with an underscore so that
|
119
|
-
they will not generate build output. Partial files can also be included
|
120
|
-
in any other directory, too. This is for organizational convenience of
|
121
|
-
common partials that may be used anywhere.
|
122
|
-
|
123
|
-
`stylesheets/`
|
124
|
-
: Your `.css` and `.scss` files should go here. Read more about _Middlemac_
|
125
|
-
CSS organization [here][css].
|
126
|
-
|
127
|
-
|
128
|
-
Images
|
129
|
-
------
|
130
|
-
|
131
|
-
Most images, of course, should go into the `images` directory of the `assets`
|
132
|
-
directory.
|
133
|
-
|
134
|
-
However _Middlemac_ also depends on some magic images being placed in
|
135
|
-
`Contents/Resources/shared/`:
|
136
|
-
|
137
|
-
`icon_32x32.png` and `icon_32x32@2x.png`
|
138
|
-
|
139
|
-
: These files are your help file icon at 32 × 32 pixels and @2x, and will be
|
140
|
-
used by the included templates automatically. More importantly, however, your
|
141
|
-
main landing page is linked to this icon so that Apple Help Viewer knows what
|
142
|
-
the help icon is.
|
143
|
-
|
144
|
-
`icon_256x256.png` and `icon_256x256@2x.png`
|
145
|
-
|
146
|
-
: The same as above, but at 256 × 256 pixels and @2x.
|
147
|
-
|
148
|
-
You will also notice that there are target-specific versions of these images
|
149
|
-
located here, too. This documentation project takes advantage of them, and you
|
150
|
-
can do the same. Note that the non-target specific versions are still required
|
151
|
-
so that the Help Viewer knows to find them!
|
152
|
-
|
153
|
-
|
154
|
-
Images Organization
|
155
|
-
-------------------
|
156
|
-
|
157
|
-
When your content images are located in the `assets/images/` directory,
|
158
|
-
_Middleman_’s [helpers][middleman_helpers] can find them automatically
|
159
|
-
without any worry about relative or absolute file paths.
|
160
|
-
|
161
|
-
|
162
|
-
“Absolute” Paths
|
163
|
-
----------------
|
164
|
-
|
165
|
-
When using _Middleman_’s [helpers][middleman_helpers], absolute paths will be
|
166
|
-
converted to relative paths during the build. Absolute paths are relative to the
|
167
|
-
`Contents` directory and _not_ the filesystem root.
|
168
|
-
|
169
|
-
In general it’s _not_ recommended to use absolute paths unless you need assets
|
170
|
-
outside of _Middlemac_’s configuration. _Middleman_ will automatically build the
|
171
|
-
correct path using only the asset name when you use its helpers, if the assets
|
172
|
-
are in the correct directories (e.g., images in `images/`).
|
173
|
-
|
174
|
-
However you will use absolute paths to refer to items in the `shared/` directory
|
175
|
-
since this it outside of _Middlemac_’s normal search scope. The view templates
|
176
|
-
use this approach, for example.
|