middlemac 2.0.0 → 3.1.2
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 +5 -5
- data/.gitattributes +5 -0
- data/.gitignore +6 -0
- data/CHANGELOG.md +44 -10
- data/Gemfile +11 -1
- data/README.md +38 -6
- data/Rakefile +20 -4
- data/documentation_project/.gitignore +1 -1
- data/documentation_project/Contents/Info.plist.erb +5 -3
- 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/_layouts/layout-hpd.haml +14 -0
- data/documentation_project/Contents/Resources/SharedGlobalAssets/_partials/_yard_middlemac_config.erb +366 -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 +86 -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 +296 -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 +276 -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/index_hpd.html.md.erb +4 -0
- 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/index_hpd.html.md.erb +4 -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.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/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/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 +83 -100
- data/documentation_project/makefile +93 -0
- data/documentation_project/middlemac.webloc +0 -0
- data/ext/trie/darray.c +673 -0
- data/ext/trie/darray.h +233 -0
- data/ext/trie/extconf.rb +23 -0
- data/ext/trie/fileutils.c +151 -0
- data/ext/trie/fileutils.h +36 -0
- data/ext/trie/tail.c +340 -0
- data/ext/trie/tail.h +207 -0
- data/ext/trie/trie-private.c +299 -0
- data/ext/trie/trie-private.h +31 -0
- data/ext/trie/trie.c +628 -0
- data/ext/trie/trie.h +40 -0
- data/ext/trie/triedefs.h +73 -0
- data/ext/trie/typedefs.h +117 -0
- data/features/helpers_features.feature +58 -0
- data/features/main_features.feature +23 -19
- data/features/support/env.rb +0 -14
- data/fixtures/middlemac_app/.gitignore +0 -1
- data/fixtures/middlemac_app/Contents/Info.plist.erb +5 -3
- 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/SharedGlobalAssets/_layouts/layout-hpd.haml +14 -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/index_hpd.html.md.erb +4 -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/index_hpd.html.md.erb +4 -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 +82 -99
- data/fixtures/middlemac_app/makefile +93 -0
- data/fixtures/middlemac_app/middlemac.webloc +0 -0
- data/lib/middlemac.rb +4 -0
- data/lib/middlemac/extension.rb +152 -211
- data/lib/middlemac/helpers.rb +470 -0
- data/lib/middlemac/private.rb +497 -0
- data/lib/middlemac/sitemap.rb +516 -0
- data/lib/middlemac/trie-extension.rb +37 -0
- data/lib/middlemac/version.rb +1 -1
- data/middlemac.gemspec +25 -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 +423 -225
- 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
|
-
|