middlemac 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +24 -0
- data/.yardopts +7 -0
- data/CHANGELOG.md +43 -0
- data/Gemfile +18 -0
- data/LICENSE.md +22 -0
- data/README.md +225 -0
- data/Rakefile +213 -0
- data/bin/middlemac +103 -0
- data/documentation_project/.gitignore +37 -0
- data/documentation_project/Contents/Info.plist.erb +42 -0
- data/documentation_project/Contents/Resources/Base.lproj/010_what_is_middlemac/index.html.md.erb +126 -0
- data/documentation_project/Contents/Resources/Base.lproj/020_setup_tutorial/index.html.md.erb +168 -0
- data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/10_markdown_skill.html.md.erb +63 -0
- data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/20_frontmatter_skill.html.md.erb +54 -0
- data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/30_middleman_skill.html.md.erb +93 -0
- data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/40_ruby_skill.html.md.erb +67 -0
- data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/50_ruby_ecosystem.html.md.erb +136 -0
- data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/60_filetypes_skill.html.md.erb +165 -0
- data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/index.html.md.erb +35 -0
- data/documentation_project/Contents/Resources/Base.lproj/040_setup/index.html.md.erb +88 -0
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/010_directories_and_images.html.md.erb +176 -0
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/020_layouts_and_templates.html.md.erb +71 -0
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/025_css.html.md.erb +71 -0
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/030_groups.html.md.erb +83 -0
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/040_breadcrumbs.html.md.erb +43 -0
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/050_navigator.html.md.erb +26 -0
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/060_targets.html.md.erb +63 -0
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/070_features.html.md.erb +122 -0
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/index.html.md.erb +21 -0
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/not_free.html.md.erb +43 -0
- data/documentation_project/Contents/Resources/Base.lproj/050_structure/not_pro.html.md.erb +43 -0
- data/documentation_project/Contents/Resources/Base.lproj/060_content/010_frontmatter.html.md.erb +88 -0
- data/documentation_project/Contents/Resources/Base.lproj/060_content/030_helpers.html.md.erb +247 -0
- data/documentation_project/Contents/Resources/Base.lproj/060_content/040_partials.html.md.erb +121 -0
- data/documentation_project/Contents/Resources/Base.lproj/060_content/050_resources.html.md.erb +60 -0
- data/documentation_project/Contents/Resources/Base.lproj/060_content/070_including_excluding.html.md.erb +68 -0
- data/documentation_project/Contents/Resources/Base.lproj/060_content/080_markdown_links_images.html.md.erb +93 -0
- data/documentation_project/Contents/Resources/Base.lproj/060_content/090_css_image_sizes.html.md.erb +90 -0
- data/documentation_project/Contents/Resources/Base.lproj/060_content/100_using_local_data.html.md.erb +37 -0
- data/documentation_project/Contents/Resources/Base.lproj/060_content/index.html.md.erb +21 -0
- data/documentation_project/Contents/Resources/Base.lproj/070_preview_build/index.html.md.erb +78 -0
- data/documentation_project/Contents/Resources/Base.lproj/090_build_application/10_apple_help_setup.html.md.erb +110 -0
- data/documentation_project/Contents/Resources/Base.lproj/090_build_application/20_xcode_integration.html.md.erb +64 -0
- data/documentation_project/Contents/Resources/Base.lproj/090_build_application/index.html.md.erb +25 -0
- data/documentation_project/Contents/Resources/Base.lproj/100_reference/10_cli_ref.html.md.erb +72 -0
- data/documentation_project/Contents/Resources/Base.lproj/100_reference/20_config_ref.html.md.erb +56 -0
- data/documentation_project/Contents/Resources/Base.lproj/100_reference/30_helpers_ext_ref.html.md.erb +51 -0
- data/documentation_project/Contents/Resources/Base.lproj/100_reference/40_helpers_ref.html.md.erb +45 -0
- data/documentation_project/Contents/Resources/Base.lproj/100_reference/50_resource_ext_ref.html.md.erb +25 -0
- data/documentation_project/Contents/Resources/Base.lproj/100_reference/index.html.md.erb +26 -0
- data/documentation_project/Contents/Resources/Base.lproj/110_acknowledgements/index.html.md.erb +61 -0
- data/documentation_project/Contents/Resources/Base.lproj/120_backwards_compatibility/index.html.md.erb +88 -0
- data/documentation_project/Contents/Resources/Base.lproj/130_all_help_content/index.html.md.erb +15 -0
- data/documentation_project/Contents/Resources/Base.lproj/InfoPlist.strings.erb +10 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/_data/globals.yml +11 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/_layouts/layout-html4.haml +22 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/_layouts/layout-xhtml.haml +28 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/_layouts/template-logo-large.haml +30 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/_layouts/template-logo-medium.haml +30 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/_layouts/template-logo-small.haml +30 -0
- 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 +655 -0
- 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/all-sample.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/all-sample@2x.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/free-middlemac-logo-small.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/free-middlemac-logo-small@2x.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/free-middlemac-logo.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/free-middlemac-logo@2x.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/middlemac-logo-small.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/middlemac-logo-small@2x.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/middlemac-logo.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/middlemac-logo@2x.png +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/images/mm-targets/free-logo-small.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-targets/free-logo-small@2x.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-targets/free-logo.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-targets/free-logo@2x.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-targets/pro-logo-small.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-targets/pro-logo-small@2x.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-targets/pro-logo.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-targets/pro-logo@2x.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/pro-middlemac-logo-small.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/pro-middlemac-logo-small@2x.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/pro-middlemac-logo.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/images/pro-middlemac-logo@2x.png +0 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/javascripts/all.js +1 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_breadcrumbs.haml +11 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_breadcrumbs_alt.haml +15 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_brethren.haml +18 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_brethren_index.haml +14 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_legitimate_children.haml +16 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_prev_next.haml +21 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_toc_index.haml +21 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_extras_config.erb +200 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_extras_helpers.erb +146 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_extras_helpers_extended.erb +135 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_middlemac_config.erb +207 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_middlemac_helpers.erb +297 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_middlemac_helpers_extended.erb +96 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_pagegroups_config.erb +744 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_pagegroups_helpers.erb +710 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_pagegroups_helpers_css.erb +523 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_pagegroups_helpers_extended.erb +56 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_pagegroups_resources.erb +540 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_targets_config.erb +402 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_targets_helpers.erb +235 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_targets_helpers_extended.erb +138 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_targets_instance.erb +81 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_targets_resources.erb +109 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/stylesheets/_apple_helpbook.scss +946 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/stylesheets/_github.scss +61 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/stylesheets/_normalize.scss +374 -0
- 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 +8 -0
- data/documentation_project/Contents/Resources/Base.lproj/assets/stylesheets/style.css.scss +4 -0
- data/documentation_project/Contents/Resources/Base.lproj/index.html.md.erb +31 -0
- data/documentation_project/Contents/Resources/shared/free-icon_256x256.png +0 -0
- data/documentation_project/Contents/Resources/shared/free-icon_256x256@2x.png +0 -0
- data/documentation_project/Contents/Resources/shared/free-icon_32x32.png +0 -0
- data/documentation_project/Contents/Resources/shared/free-icon_32x32@2x.png +0 -0
- data/documentation_project/Contents/Resources/shared/icon_256x256.png +0 -0
- data/documentation_project/Contents/Resources/shared/icon_256x256@2x.png +0 -0
- data/documentation_project/Contents/Resources/shared/icon_32x32.png +0 -0
- data/documentation_project/Contents/Resources/shared/icon_32x32@2x.png +0 -0
- data/documentation_project/Contents/Resources/shared/pro-icon_256x256.png +0 -0
- data/documentation_project/Contents/Resources/shared/pro-icon_256x256@2x.png +0 -0
- data/documentation_project/Contents/Resources/shared/pro-icon_32x32.png +0 -0
- data/documentation_project/Contents/Resources/shared/pro-icon_32x32@2x.png +0 -0
- data/documentation_project/Gemfile +51 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/project.pbxproj +529 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/xcshareddata/xcschemes/Help (free).xcscheme +80 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/xcshareddata/xcschemes/HelpViewerApp (free).xcscheme +91 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/xcshareddata/xcschemes/HelpViewerApp (pro).xcscheme +91 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp/AppDelegate.h +16 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp/AppDelegate.m +45 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp/Assets.xcassets/AppIcon.appiconset/Contents.json +58 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp/Base.lproj/MainMenu.xib +115 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp/Info-free.plist +38 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp/Info-pro.plist +38 -0
- data/documentation_project/HelpViewerApp/HelpViewerApp/main.m +13 -0
- data/documentation_project/HelpViewerApp/README.md +43 -0
- data/documentation_project/Middlemac (free).help/.gitignore +3 -0
- data/documentation_project/Middlemac (pro).help/.gitignore +3 -0
- data/documentation_project/config.rb +309 -0
- data/documentation_project/middlemac.webloc +0 -0
- data/features/main_features.feature +44 -0
- data/features/support/env.rb +20 -0
- data/fixtures/middlemac_app/.gitignore +25 -0
- data/fixtures/middlemac_app/Contents/Info.plist.erb +42 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/10_hello_world_file.html.md.erb +22 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/20_goodbye_world_file.html.md.erb +22 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/30_sample_group_number_one/index.html.md.erb +24 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/30_sample_group_number_one/page_one.html.md.erb +20 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/30_sample_group_number_one/page_two.html.md.erb +19 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/40_sample_group_number_two/01_nested_group_example/01_page_one.html.md.erb +18 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/40_sample_group_number_two/01_nested_group_example/02_pagina_dos.html.md.erb +19 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/40_sample_group_number_two/01_nested_group_example/03_page_san.html.md.erb +18 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/40_sample_group_number_two/01_nested_group_example/index.html.md.erb +18 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/40_sample_group_number_two/02_page_two.html.md.erb +19 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/40_sample_group_number_two/03_page_three.html.md.erb +19 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/40_sample_group_number_two/index.html.md.erb +24 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/45_testing_world_file.html.md.erb +55 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/50_entire_world_file.html.md.erb +15 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/InfoPlist.strings.erb +10 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/_new_style_partial.erb +1 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_data/globals.yml +11 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_layouts/layout-html4.haml +22 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_layouts/layout-xhtml.haml +28 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_layouts/template-logo-large.haml +30 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_layouts/template-logo-medium.haml +30 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_layouts/template-logo-small.haml +30 -0
- 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 +655 -0
- 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 +1 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/javascripts/all.js +1 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_breadcrumbs.haml +11 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_breadcrumbs_alt.haml +15 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_brethren.haml +18 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_brethren_index.haml +14 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_legitimate_children.haml +16 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_prev_next.haml +21 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_toc_index.haml +21 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_partials_dir_partial.erb +1 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/stylesheets/_apple_helpbook.scss +946 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/stylesheets/_github.scss +61 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/stylesheets/_normalize.scss +374 -0
- 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 +8 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/stylesheets/style.css.scss +4 -0
- data/fixtures/middlemac_app/Contents/Resources/Base.lproj/index.html.md.erb +17 -0
- data/fixtures/middlemac_app/Contents/Resources/shared/icon_256x256.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/shared/icon_256x256@2x.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/shared/icon_32x32.png +0 -0
- data/fixtures/middlemac_app/Contents/Resources/shared/icon_32x32@2x.png +0 -0
- data/fixtures/middlemac_app/Gemfile +51 -0
- data/fixtures/middlemac_app/config.rb +309 -0
- data/fixtures/middlemac_app/middlemac.webloc +0 -0
- data/lib/middlemac.rb +6 -0
- data/lib/middlemac/extension.rb +274 -0
- data/lib/middlemac/version.rb +5 -0
- data/middlemac.gemspec +38 -0
- data/yard/readme.md +9 -0
- data/yard/template-grouped/default/module/html/method_details_list.erb +11 -0
- data/yard/template-partials/default/method_details/setup.rb +4 -0
- data/yard/template-partials/default/module/html/attribute_details.erb +9 -0
- data/yard/template-partials/default/module/html/method_details_list.erb +10 -0
- data/yard/template-partials/default/module/setup.rb +6 -0
- data/yard/template-partials/default/onefile/html/layout.erb +1 -0
- data/yard/template-partials/default/onefile/html/setup.rb +4 -0
- data/yard/yard_extensions.rb +109 -0
- metadata +454 -0
Binary file
|
@@ -0,0 +1,44 @@
|
|
1
|
+
Feature: Middlemac produces plist and strings files, uses correct HTML formats,
|
2
|
+
and provides useful helpers to generate content.
|
3
|
+
|
4
|
+
As a software developer
|
5
|
+
I want to build useable Mac OS X help books.
|
6
|
+
|
7
|
+
Background:
|
8
|
+
Given a built app at "middlemac_app"
|
9
|
+
|
10
|
+
Scenario:
|
11
|
+
The correct HTML version must be used on the top level index page versus
|
12
|
+
other pages in the project.
|
13
|
+
When I cd to "New Project (pro).help/Contents/Resources/Base.lproj/"
|
14
|
+
And the file "index.html" should contain "DTD XHTML 1.0 Strict"
|
15
|
+
And the file "testing_world_file.html" should contain "DTD HTML 4.01"
|
16
|
+
|
17
|
+
Scenario: The Info.plist file must be processed with relevant data.
|
18
|
+
When I cd to "New Project (pro).help/Contents/"
|
19
|
+
And the file "Info.plist" should contain "<string>com.sample.project.pro.help</string>"
|
20
|
+
And the file "Info.plist" should contain "<string>New Project</string>"
|
21
|
+
And the file "Info.plist" should contain "<string>New Project.helpindex</string>"
|
22
|
+
And the file "Info.plist" should contain "<string>New Project Help</string>"
|
23
|
+
And the file "Info.plist" should contain "<string>http://www.sample.com</string>"
|
24
|
+
|
25
|
+
Scenario: The InfoPlist.strings file must be processed with relevant data.
|
26
|
+
When I cd to "New Project (pro).help/Contents/Resources/Base.lproj/"
|
27
|
+
And the file "InfoPlist.strings" should contain "<string>New Project</string>"
|
28
|
+
And the file "InfoPlist.strings" should contain "<string>New Project Help</string>"
|
29
|
+
|
30
|
+
Scenario: The help index file should have been produced.
|
31
|
+
When I cd to "New Project (pro).help/Contents/Resources/Base.lproj/"
|
32
|
+
And the file "New Project.helpindex" should exist
|
33
|
+
|
34
|
+
Scenario: The helpers will produce correct output.
|
35
|
+
When I cd to "New Project (pro).help/Contents/Resources/Base.lproj/"
|
36
|
+
And the file "testing_world_file.html" should contain "breadcrumbs:nav_breadcrumbs"
|
37
|
+
And the file "testing_world_file.html" should contain "partials_dir:Resources/Base.lproj/assets/partials"
|
38
|
+
And the file "testing_world_file.html" should contain "cfBundleIdentifier:com.sample.project.pro.help"
|
39
|
+
And the file "testing_world_file.html" should contain "cfBundleName:New Project"
|
40
|
+
And the file "testing_world_file.html" should contain "product_name:New Project Pro"
|
41
|
+
And the file "testing_world_file.html" should contain "product_version:2.0.0.wip"
|
42
|
+
And the file "testing_world_file.html" should contain "product_uri:http://www.sample.com"
|
43
|
+
And the file "testing_world_file.html" should contain "_new_style_partial"
|
44
|
+
And the file "testing_world_file.html" should contain "_partials_dir_partial"
|
@@ -0,0 +1,20 @@
|
|
1
|
+
PROJECT_ROOT_PATH = File.dirname(File.dirname(File.dirname(__FILE__)))
|
2
|
+
ENV['TEST'] = 'true'
|
3
|
+
|
4
|
+
require 'middleman'
|
5
|
+
require 'middleman-core/step_definitions'
|
6
|
+
require File.join(PROJECT_ROOT_PATH, 'lib', 'middlemac')
|
7
|
+
|
8
|
+
|
9
|
+
require 'cucumber/formatter/pretty'
|
10
|
+
class QuietFormatter < Cucumber::Formatter::Pretty
|
11
|
+
def initialize(runtime, io, options)
|
12
|
+
$stderr = File.new( '/dev/null', 'w' )
|
13
|
+
super(runtime, io, options)
|
14
|
+
end
|
15
|
+
|
16
|
+
def after_features(features)
|
17
|
+
$stderr = STDOUT
|
18
|
+
super(features)
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Rubymine noise
|
2
|
+
.idea/
|
3
|
+
|
4
|
+
# BBedit noise
|
5
|
+
*.bbprojectd
|
6
|
+
|
7
|
+
# Mac OS X noise
|
8
|
+
.DS_Store
|
9
|
+
|
10
|
+
# Ignore bundler lock files
|
11
|
+
Gemfile.lock
|
12
|
+
|
13
|
+
# Ignore pkg folder
|
14
|
+
/pkg
|
15
|
+
|
16
|
+
# Ignore build folders
|
17
|
+
.rbenv-*
|
18
|
+
.ruby-gemset
|
19
|
+
.ruby-version
|
20
|
+
.sass-cache
|
21
|
+
.sassc
|
22
|
+
.tmp
|
23
|
+
build*
|
24
|
+
Makefile
|
25
|
+
tmp
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>CFBundleIdentifier</key>
|
6
|
+
<string><%= cfBundleIdentifier %></string>
|
7
|
+
<key>CFBundleName</key>
|
8
|
+
<string><%= cfBundleName %></string>
|
9
|
+
<key>HPDBookAccessPath</key>
|
10
|
+
<string>index.html</string>
|
11
|
+
<key>HPDBookIndexPath</key>
|
12
|
+
<string><%= cfBundleName %>.helpindex</string>
|
13
|
+
<key>HPDBookTitle</key>
|
14
|
+
<string><%= cfBundleName %> Help</string>
|
15
|
+
<key>CFBundleDevelopmentRegion</key>
|
16
|
+
<string>en-us</string>
|
17
|
+
<key>CFBundleShortVersionString</key>
|
18
|
+
<string><%= config[:targets][config[:target]][:CFBundleShortVersionString] || product_version %></string>
|
19
|
+
<key>CFBundleVersion</key>
|
20
|
+
<string><%= config[:targets][config[:target]][:CFBundleVersion] || product_version %></string>
|
21
|
+
<key>HPDBookIconPath</key>
|
22
|
+
<string><%= config[:targets][config[:target]][:HPDBookIconPath] || 'shared/icon_32x32@2x.png' %></string>
|
23
|
+
<key>HPDBookKBProduct</key>
|
24
|
+
<string><%= config[:targets][config[:target]][:HPDBookKBProduct] %></string>
|
25
|
+
<key>HPDBookKBURL</key>
|
26
|
+
<string><%= config[:targets][config[:target]][:HPDBookKBURL] || product_uri %></string>
|
27
|
+
<key>HPDBookRemoteURL</key>
|
28
|
+
<string><%= config[:targets][config[:target]][:HPDBookRemoteURL] %></string>
|
29
|
+
<key>HPDBookTopicListCSSPath</key>
|
30
|
+
<string><%= config[:targets][config[:target]][:HPDBookTopicListCSSPath] %></string>
|
31
|
+
<key>HPDBookTopicListTemplatePath</key>
|
32
|
+
<string><%= config[:targets][config[:target]][:HPDBookTopicListTemplatePath] %></string>
|
33
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
34
|
+
<string>6.0</string>
|
35
|
+
<key>CFBundlePackageType</key>
|
36
|
+
<string>BNDL</string>
|
37
|
+
<key>CFBundleSignature</key>
|
38
|
+
<string>hbwr</string>
|
39
|
+
<key>HPDBookType</key>
|
40
|
+
<string>3</string>
|
41
|
+
</dict>
|
42
|
+
</plist>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
---
|
2
|
+
title: Hello World
|
3
|
+
blurb: Discover your project saying “Hello, world!”
|
4
|
+
layout: template-logo-small
|
5
|
+
---
|
6
|
+
<%= md_links %>
|
7
|
+
<%= md_images %>
|
8
|
+
|
9
|
+
|
10
|
+
<%= current_page.data.title %>
|
11
|
+
==============================
|
12
|
+
|
13
|
+
Hello World
|
14
|
+
-----------
|
15
|
+
|
16
|
+
Hello, World!
|
17
|
+
|
18
|
+
|
19
|
+
Lorem
|
20
|
+
-----
|
21
|
+
|
22
|
+
<%= lorem.paragraphs 3 %>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
---
|
2
|
+
title: Goodbye World
|
3
|
+
blurb: Discover your project saying “Goodbye, world!”
|
4
|
+
layout: template-logo-small
|
5
|
+
---
|
6
|
+
<%= md_links %>
|
7
|
+
<%= md_images %>
|
8
|
+
|
9
|
+
|
10
|
+
<%= current_page.data.title %>
|
11
|
+
==============================
|
12
|
+
|
13
|
+
Goodbye World
|
14
|
+
-------------
|
15
|
+
|
16
|
+
Goodbye, World!
|
17
|
+
|
18
|
+
|
19
|
+
Lorem
|
20
|
+
-----
|
21
|
+
|
22
|
+
<%= lorem.paragraphs 3 %>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
title: First Sample Group
|
3
|
+
blurb: A collection of pages in the first sample group.
|
4
|
+
layout: template-logo-large
|
5
|
+
navigate: true
|
6
|
+
---
|
7
|
+
<%= md_links %>
|
8
|
+
<%= md_images %>
|
9
|
+
|
10
|
+
<% content_for :seeAlso do %>
|
11
|
+
Sidebar stuff can go here.
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
|
15
|
+
<%= current_page.data.title %>
|
16
|
+
==============================
|
17
|
+
|
18
|
+
<%= current_page.data.blurb %>
|
19
|
+
|
20
|
+
* * *
|
21
|
+
|
22
|
+
<%= nav_legitimate_children %>
|
23
|
+
|
24
|
+
* * *
|
@@ -0,0 +1,20 @@
|
|
1
|
+
---
|
2
|
+
title: Page One
|
3
|
+
blurb: Check out Page One.
|
4
|
+
layout: template-logo-medium
|
5
|
+
order: 10
|
6
|
+
---
|
7
|
+
<%= md_links %>
|
8
|
+
<%= md_images %>
|
9
|
+
|
10
|
+
|
11
|
+
<%= current_page.data.title %>
|
12
|
+
==============================
|
13
|
+
|
14
|
+
<%= current_page.data.blurb %>
|
15
|
+
|
16
|
+
|
17
|
+
Lorem
|
18
|
+
-----
|
19
|
+
|
20
|
+
<%= lorem.paragraphs 6 %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
title: Page 2
|
3
|
+
blurb: Have a look at page two, too.
|
4
|
+
layout: template-logo-medium
|
5
|
+
order: 20
|
6
|
+
---
|
7
|
+
<%= md_links %>
|
8
|
+
<%= md_images %>
|
9
|
+
|
10
|
+
<%= current_page.data.title %>
|
11
|
+
==============================
|
12
|
+
|
13
|
+
<%= current_page.data.blurb %>
|
14
|
+
|
15
|
+
|
16
|
+
Lorem
|
17
|
+
-----
|
18
|
+
|
19
|
+
<%= lorem.paragraphs 6 %>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
title: Page 1
|
3
|
+
blurb: Think of something interesting for this blurb.
|
4
|
+
layout: template-logo-medium
|
5
|
+
---
|
6
|
+
<%= md_links %>
|
7
|
+
<%= md_images %>
|
8
|
+
|
9
|
+
|
10
|
+
<%= current_page.data.title %>
|
11
|
+
==============================
|
12
|
+
|
13
|
+
<%= current_page.data.blurb %>
|
14
|
+
|
15
|
+
Lorem
|
16
|
+
-----
|
17
|
+
|
18
|
+
<%= lorem.paragraphs 6 %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
title: Page 2
|
3
|
+
blurb: Think of something else interesting for this blurb.
|
4
|
+
layout: template-logo-medium
|
5
|
+
---
|
6
|
+
<%= md_links %>
|
7
|
+
<%= md_images %>
|
8
|
+
|
9
|
+
|
10
|
+
<%= current_page.data.title %>
|
11
|
+
==============================
|
12
|
+
|
13
|
+
<%= current_page.data.blurb %>
|
14
|
+
|
15
|
+
|
16
|
+
Lorem
|
17
|
+
-----
|
18
|
+
|
19
|
+
<%= lorem.paragraphs 6 %>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
title: Page 3
|
3
|
+
blurb: Think of something interesting for this blurb, as well.
|
4
|
+
layout: template-logo-medium
|
5
|
+
---
|
6
|
+
<%= md_links %>
|
7
|
+
<%= md_images %>
|
8
|
+
|
9
|
+
|
10
|
+
<%= current_page.data.title %>
|
11
|
+
==============================
|
12
|
+
|
13
|
+
<%= current_page.data.blurb %>
|
14
|
+
|
15
|
+
Lorem
|
16
|
+
-----
|
17
|
+
|
18
|
+
<%= lorem.paragraphs 6 %>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
title: A nested group example
|
3
|
+
blurb: See how nested groups work.
|
4
|
+
layout: template-logo-large
|
5
|
+
navigate: true
|
6
|
+
---
|
7
|
+
<%= md_links %>
|
8
|
+
<%= md_images %>
|
9
|
+
|
10
|
+
|
11
|
+
<%= current_page.data.title %>
|
12
|
+
==============================
|
13
|
+
|
14
|
+
<%= current_page.data.blurb %>
|
15
|
+
|
16
|
+
* * *
|
17
|
+
|
18
|
+
<%= nav_legitimate_children %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
title: Page two
|
3
|
+
blurb: Page two sort order is by filename, not by frontmatter.
|
4
|
+
layout: template-logo-medium
|
5
|
+
---
|
6
|
+
<%= md_links %>
|
7
|
+
<%= md_images %>
|
8
|
+
|
9
|
+
|
10
|
+
<%= current_page.data.title %>
|
11
|
+
==============================
|
12
|
+
|
13
|
+
<%= current_page.data.blurb %>
|
14
|
+
|
15
|
+
|
16
|
+
Lorem
|
17
|
+
-----
|
18
|
+
|
19
|
+
<%= lorem.paragraphs 6 %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
title: The third page
|
3
|
+
blurb: Page three sort order is by filename, not by frontmatter, also.
|
4
|
+
layout: template-logo-medium
|
5
|
+
---
|
6
|
+
<%= md_links %>
|
7
|
+
<%= md_images %>
|
8
|
+
|
9
|
+
|
10
|
+
<%= current_page.data.title %>
|
11
|
+
==============================
|
12
|
+
|
13
|
+
<%= current_page.data.blurb %>
|
14
|
+
|
15
|
+
|
16
|
+
Lorem
|
17
|
+
-----
|
18
|
+
|
19
|
+
<%= lorem.paragraphs 6 %>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
title: Sample Group Number 2
|
3
|
+
blurb: Some more pages are grouped <strong>right here</strong>.
|
4
|
+
layout: template-logo-large
|
5
|
+
navigate: true
|
6
|
+
---
|
7
|
+
<%= md_links %>
|
8
|
+
<%= md_images %>
|
9
|
+
|
10
|
+
<% content_for :seeAlso do %>
|
11
|
+
Sidebar stuff can go here.
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
|
15
|
+
<%= current_page.data.title %>
|
16
|
+
==============================
|
17
|
+
|
18
|
+
<%= current_page.data.blurb %>
|
19
|
+
|
20
|
+
* * *
|
21
|
+
|
22
|
+
<%= nav_legitimate_children %>
|
23
|
+
|
24
|
+
* * *
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
title: Testing World
|
3
|
+
blurb: A page that uses <strong>Middlemac</strong>’s helpers so that Cucumber
|
4
|
+
has something predictable to examine.
|
5
|
+
layout: template-logo-medium
|
6
|
+
---
|
7
|
+
<%= md_links %>
|
8
|
+
<%= md_images %>
|
9
|
+
|
10
|
+
<%= current_page.data.title %>
|
11
|
+
==============================
|
12
|
+
|
13
|
+
This page simply uses all of **Middlemac**’s helpers so that Cucumber testing
|
14
|
+
can be performed. This sample project is also the fixture for testing; if you
|
15
|
+
have this Gem’s source, you can
|
16
|
+
|
17
|
+
~~~ bash
|
18
|
+
rake test
|
19
|
+
~~~
|
20
|
+
|
21
|
+
…from the Gem’s directory to run the tests yourself.
|
22
|
+
|
23
|
+
Note that this isn’t the only file tested, but it’s a nice place to capture
|
24
|
+
some of the test output.
|
25
|
+
{:.note}
|
26
|
+
|
27
|
+
* * *
|
28
|
+
|
29
|
+
breadcrumbs:<%= breadcrumbs %>
|
30
|
+
|
31
|
+
partials_dir:<%= partials_dir %>
|
32
|
+
|
33
|
+
cfBundleIdentifier:<%= cfBundleIdentifier %>
|
34
|
+
|
35
|
+
cfBundleName:<%= cfBundleName %>
|
36
|
+
|
37
|
+
product_name:<%= product_name %>
|
38
|
+
|
39
|
+
product_version:<%= product_version %>
|
40
|
+
|
41
|
+
product_uri:<%= product_uri %>
|
42
|
+
|
43
|
+
* * *
|
44
|
+
|
45
|
+
## New Style Middleman Partial
|
46
|
+
|
47
|
+
~~~ html
|
48
|
+
<%= partial 'new_style_partial' %>
|
49
|
+
~~~
|
50
|
+
|
51
|
+
## Partial from `partials_dir`
|
52
|
+
|
53
|
+
~~~ html
|
54
|
+
<%= partial 'partials_dir_partial' %>
|
55
|
+
~~~
|