middlemac 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +24 -0
  3. data/.yardopts +7 -0
  4. data/CHANGELOG.md +43 -0
  5. data/Gemfile +18 -0
  6. data/LICENSE.md +22 -0
  7. data/README.md +225 -0
  8. data/Rakefile +213 -0
  9. data/bin/middlemac +103 -0
  10. data/documentation_project/.gitignore +37 -0
  11. data/documentation_project/Contents/Info.plist.erb +42 -0
  12. data/documentation_project/Contents/Resources/Base.lproj/010_what_is_middlemac/index.html.md.erb +126 -0
  13. data/documentation_project/Contents/Resources/Base.lproj/020_setup_tutorial/index.html.md.erb +168 -0
  14. data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/10_markdown_skill.html.md.erb +63 -0
  15. data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/20_frontmatter_skill.html.md.erb +54 -0
  16. data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/30_middleman_skill.html.md.erb +93 -0
  17. data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/40_ruby_skill.html.md.erb +67 -0
  18. data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/50_ruby_ecosystem.html.md.erb +136 -0
  19. data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/60_filetypes_skill.html.md.erb +165 -0
  20. data/documentation_project/Contents/Resources/Base.lproj/030_skills_refresher/index.html.md.erb +35 -0
  21. data/documentation_project/Contents/Resources/Base.lproj/040_setup/index.html.md.erb +88 -0
  22. data/documentation_project/Contents/Resources/Base.lproj/050_structure/010_directories_and_images.html.md.erb +176 -0
  23. data/documentation_project/Contents/Resources/Base.lproj/050_structure/020_layouts_and_templates.html.md.erb +71 -0
  24. data/documentation_project/Contents/Resources/Base.lproj/050_structure/025_css.html.md.erb +71 -0
  25. data/documentation_project/Contents/Resources/Base.lproj/050_structure/030_groups.html.md.erb +83 -0
  26. data/documentation_project/Contents/Resources/Base.lproj/050_structure/040_breadcrumbs.html.md.erb +43 -0
  27. data/documentation_project/Contents/Resources/Base.lproj/050_structure/050_navigator.html.md.erb +26 -0
  28. data/documentation_project/Contents/Resources/Base.lproj/050_structure/060_targets.html.md.erb +63 -0
  29. data/documentation_project/Contents/Resources/Base.lproj/050_structure/070_features.html.md.erb +122 -0
  30. data/documentation_project/Contents/Resources/Base.lproj/050_structure/index.html.md.erb +21 -0
  31. data/documentation_project/Contents/Resources/Base.lproj/050_structure/not_free.html.md.erb +43 -0
  32. data/documentation_project/Contents/Resources/Base.lproj/050_structure/not_pro.html.md.erb +43 -0
  33. data/documentation_project/Contents/Resources/Base.lproj/060_content/010_frontmatter.html.md.erb +88 -0
  34. data/documentation_project/Contents/Resources/Base.lproj/060_content/030_helpers.html.md.erb +247 -0
  35. data/documentation_project/Contents/Resources/Base.lproj/060_content/040_partials.html.md.erb +121 -0
  36. data/documentation_project/Contents/Resources/Base.lproj/060_content/050_resources.html.md.erb +60 -0
  37. data/documentation_project/Contents/Resources/Base.lproj/060_content/070_including_excluding.html.md.erb +68 -0
  38. data/documentation_project/Contents/Resources/Base.lproj/060_content/080_markdown_links_images.html.md.erb +93 -0
  39. data/documentation_project/Contents/Resources/Base.lproj/060_content/090_css_image_sizes.html.md.erb +90 -0
  40. data/documentation_project/Contents/Resources/Base.lproj/060_content/100_using_local_data.html.md.erb +37 -0
  41. data/documentation_project/Contents/Resources/Base.lproj/060_content/index.html.md.erb +21 -0
  42. data/documentation_project/Contents/Resources/Base.lproj/070_preview_build/index.html.md.erb +78 -0
  43. data/documentation_project/Contents/Resources/Base.lproj/090_build_application/10_apple_help_setup.html.md.erb +110 -0
  44. data/documentation_project/Contents/Resources/Base.lproj/090_build_application/20_xcode_integration.html.md.erb +64 -0
  45. data/documentation_project/Contents/Resources/Base.lproj/090_build_application/index.html.md.erb +25 -0
  46. data/documentation_project/Contents/Resources/Base.lproj/100_reference/10_cli_ref.html.md.erb +72 -0
  47. data/documentation_project/Contents/Resources/Base.lproj/100_reference/20_config_ref.html.md.erb +56 -0
  48. data/documentation_project/Contents/Resources/Base.lproj/100_reference/30_helpers_ext_ref.html.md.erb +51 -0
  49. data/documentation_project/Contents/Resources/Base.lproj/100_reference/40_helpers_ref.html.md.erb +45 -0
  50. data/documentation_project/Contents/Resources/Base.lproj/100_reference/50_resource_ext_ref.html.md.erb +25 -0
  51. data/documentation_project/Contents/Resources/Base.lproj/100_reference/index.html.md.erb +26 -0
  52. data/documentation_project/Contents/Resources/Base.lproj/110_acknowledgements/index.html.md.erb +61 -0
  53. data/documentation_project/Contents/Resources/Base.lproj/120_backwards_compatibility/index.html.md.erb +88 -0
  54. data/documentation_project/Contents/Resources/Base.lproj/130_all_help_content/index.html.md.erb +15 -0
  55. data/documentation_project/Contents/Resources/Base.lproj/InfoPlist.strings.erb +10 -0
  56. data/documentation_project/Contents/Resources/Base.lproj/assets/_data/globals.yml +11 -0
  57. data/documentation_project/Contents/Resources/Base.lproj/assets/_layouts/layout-html4.haml +22 -0
  58. data/documentation_project/Contents/Resources/Base.lproj/assets/_layouts/layout-xhtml.haml +28 -0
  59. data/documentation_project/Contents/Resources/Base.lproj/assets/_layouts/template-logo-large.haml +30 -0
  60. data/documentation_project/Contents/Resources/Base.lproj/assets/_layouts/template-logo-medium.haml +30 -0
  61. data/documentation_project/Contents/Resources/Base.lproj/assets/_layouts/template-logo-small.haml +30 -0
  62. data/documentation_project/Contents/Resources/Base.lproj/assets/fonts/font-awesome/FontAwesome.otf +0 -0
  63. data/documentation_project/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.eot +0 -0
  64. data/documentation_project/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.svg +655 -0
  65. data/documentation_project/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
  66. data/documentation_project/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.woff +0 -0
  67. data/documentation_project/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.woff2 +0 -0
  68. data/documentation_project/Contents/Resources/Base.lproj/assets/images/all-sample.png +0 -0
  69. data/documentation_project/Contents/Resources/Base.lproj/assets/images/all-sample@2x.png +0 -0
  70. data/documentation_project/Contents/Resources/Base.lproj/assets/images/free-middlemac-logo-small.png +0 -0
  71. data/documentation_project/Contents/Resources/Base.lproj/assets/images/free-middlemac-logo-small@2x.png +0 -0
  72. data/documentation_project/Contents/Resources/Base.lproj/assets/images/free-middlemac-logo.png +0 -0
  73. data/documentation_project/Contents/Resources/Base.lproj/assets/images/free-middlemac-logo@2x.png +0 -0
  74. data/documentation_project/Contents/Resources/Base.lproj/assets/images/middlemac-logo-small.png +0 -0
  75. data/documentation_project/Contents/Resources/Base.lproj/assets/images/middlemac-logo-small@2x.png +0 -0
  76. data/documentation_project/Contents/Resources/Base.lproj/assets/images/middlemac-logo.png +0 -0
  77. data/documentation_project/Contents/Resources/Base.lproj/assets/images/middlemac-logo@2x.png +0 -0
  78. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/middlemac-extras-small.png +0 -0
  79. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/middlemac-extras-small@2x.png +0 -0
  80. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/middlemac-extras.png +0 -0
  81. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/middlemac-extras@2x.png +0 -0
  82. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/sub_images/middlemac-extras-small.png +0 -0
  83. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/sub_images/middlemac-extras-small@2x.png +0 -0
  84. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/sub_images/middlemac-extras.png +0 -0
  85. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-extras/sub_images/middlemac-extras@2x.png +0 -0
  86. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-pagegroups/middleman-pagegroups-small.png +0 -0
  87. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-pagegroups/middleman-pagegroups.png +0 -0
  88. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-targets/free-logo-small.png +0 -0
  89. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-targets/free-logo-small@2x.png +0 -0
  90. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-targets/free-logo.png +0 -0
  91. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-targets/free-logo@2x.png +0 -0
  92. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-targets/pro-logo-small.png +0 -0
  93. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-targets/pro-logo-small@2x.png +0 -0
  94. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-targets/pro-logo.png +0 -0
  95. data/documentation_project/Contents/Resources/Base.lproj/assets/images/mm-targets/pro-logo@2x.png +0 -0
  96. data/documentation_project/Contents/Resources/Base.lproj/assets/images/pro-middlemac-logo-small.png +0 -0
  97. data/documentation_project/Contents/Resources/Base.lproj/assets/images/pro-middlemac-logo-small@2x.png +0 -0
  98. data/documentation_project/Contents/Resources/Base.lproj/assets/images/pro-middlemac-logo.png +0 -0
  99. data/documentation_project/Contents/Resources/Base.lproj/assets/images/pro-middlemac-logo@2x.png +0 -0
  100. data/documentation_project/Contents/Resources/Base.lproj/assets/javascripts/all.js +1 -0
  101. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_breadcrumbs.haml +11 -0
  102. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_breadcrumbs_alt.haml +15 -0
  103. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_brethren.haml +18 -0
  104. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_brethren_index.haml +14 -0
  105. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_legitimate_children.haml +16 -0
  106. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_prev_next.haml +21 -0
  107. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_nav_toc_index.haml +21 -0
  108. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_extras_config.erb +200 -0
  109. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_extras_helpers.erb +146 -0
  110. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_extras_helpers_extended.erb +135 -0
  111. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_middlemac_config.erb +207 -0
  112. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_middlemac_helpers.erb +297 -0
  113. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_middlemac_helpers_extended.erb +96 -0
  114. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_pagegroups_config.erb +744 -0
  115. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_pagegroups_helpers.erb +710 -0
  116. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_pagegroups_helpers_css.erb +523 -0
  117. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_pagegroups_helpers_extended.erb +56 -0
  118. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_pagegroups_resources.erb +540 -0
  119. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_targets_config.erb +402 -0
  120. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_targets_helpers.erb +235 -0
  121. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_targets_helpers_extended.erb +138 -0
  122. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_targets_instance.erb +81 -0
  123. data/documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_targets_resources.erb +109 -0
  124. data/documentation_project/Contents/Resources/Base.lproj/assets/stylesheets/_apple_helpbook.scss +946 -0
  125. data/documentation_project/Contents/Resources/Base.lproj/assets/stylesheets/_github.scss +61 -0
  126. data/documentation_project/Contents/Resources/Base.lproj/assets/stylesheets/_normalize.scss +374 -0
  127. data/documentation_project/Contents/Resources/Base.lproj/assets/stylesheets/breadcrumb-separator-light.png +0 -0
  128. data/documentation_project/Contents/Resources/Base.lproj/assets/stylesheets/image_sizes.css.erb +8 -0
  129. data/documentation_project/Contents/Resources/Base.lproj/assets/stylesheets/style.css.scss +4 -0
  130. data/documentation_project/Contents/Resources/Base.lproj/index.html.md.erb +31 -0
  131. data/documentation_project/Contents/Resources/shared/free-icon_256x256.png +0 -0
  132. data/documentation_project/Contents/Resources/shared/free-icon_256x256@2x.png +0 -0
  133. data/documentation_project/Contents/Resources/shared/free-icon_32x32.png +0 -0
  134. data/documentation_project/Contents/Resources/shared/free-icon_32x32@2x.png +0 -0
  135. data/documentation_project/Contents/Resources/shared/icon_256x256.png +0 -0
  136. data/documentation_project/Contents/Resources/shared/icon_256x256@2x.png +0 -0
  137. data/documentation_project/Contents/Resources/shared/icon_32x32.png +0 -0
  138. data/documentation_project/Contents/Resources/shared/icon_32x32@2x.png +0 -0
  139. data/documentation_project/Contents/Resources/shared/pro-icon_256x256.png +0 -0
  140. data/documentation_project/Contents/Resources/shared/pro-icon_256x256@2x.png +0 -0
  141. data/documentation_project/Contents/Resources/shared/pro-icon_32x32.png +0 -0
  142. data/documentation_project/Contents/Resources/shared/pro-icon_32x32@2x.png +0 -0
  143. data/documentation_project/Gemfile +51 -0
  144. data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/project.pbxproj +529 -0
  145. data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  146. data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/xcshareddata/xcschemes/Help (free).xcscheme +80 -0
  147. data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/xcshareddata/xcschemes/HelpViewerApp (free).xcscheme +91 -0
  148. data/documentation_project/HelpViewerApp/HelpViewerApp.xcodeproj/xcshareddata/xcschemes/HelpViewerApp (pro).xcscheme +91 -0
  149. data/documentation_project/HelpViewerApp/HelpViewerApp/AppDelegate.h +16 -0
  150. data/documentation_project/HelpViewerApp/HelpViewerApp/AppDelegate.m +45 -0
  151. data/documentation_project/HelpViewerApp/HelpViewerApp/Assets.xcassets/AppIcon.appiconset/Contents.json +58 -0
  152. data/documentation_project/HelpViewerApp/HelpViewerApp/Base.lproj/MainMenu.xib +115 -0
  153. data/documentation_project/HelpViewerApp/HelpViewerApp/Info-free.plist +38 -0
  154. data/documentation_project/HelpViewerApp/HelpViewerApp/Info-pro.plist +38 -0
  155. data/documentation_project/HelpViewerApp/HelpViewerApp/main.m +13 -0
  156. data/documentation_project/HelpViewerApp/README.md +43 -0
  157. data/documentation_project/Middlemac (free).help/.gitignore +3 -0
  158. data/documentation_project/Middlemac (pro).help/.gitignore +3 -0
  159. data/documentation_project/config.rb +309 -0
  160. data/documentation_project/middlemac.webloc +0 -0
  161. data/features/main_features.feature +44 -0
  162. data/features/support/env.rb +20 -0
  163. data/fixtures/middlemac_app/.gitignore +25 -0
  164. data/fixtures/middlemac_app/Contents/Info.plist.erb +42 -0
  165. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/10_hello_world_file.html.md.erb +22 -0
  166. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/20_goodbye_world_file.html.md.erb +22 -0
  167. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/30_sample_group_number_one/index.html.md.erb +24 -0
  168. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/30_sample_group_number_one/page_one.html.md.erb +20 -0
  169. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/30_sample_group_number_one/page_two.html.md.erb +19 -0
  170. 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
  171. 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
  172. 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
  173. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/40_sample_group_number_two/01_nested_group_example/index.html.md.erb +18 -0
  174. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/40_sample_group_number_two/02_page_two.html.md.erb +19 -0
  175. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/40_sample_group_number_two/03_page_three.html.md.erb +19 -0
  176. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/40_sample_group_number_two/index.html.md.erb +24 -0
  177. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/45_testing_world_file.html.md.erb +55 -0
  178. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/50_entire_world_file.html.md.erb +15 -0
  179. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/InfoPlist.strings.erb +10 -0
  180. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/_new_style_partial.erb +1 -0
  181. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_data/globals.yml +11 -0
  182. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_layouts/layout-html4.haml +22 -0
  183. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_layouts/layout-xhtml.haml +28 -0
  184. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_layouts/template-logo-large.haml +30 -0
  185. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_layouts/template-logo-medium.haml +30 -0
  186. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/_layouts/template-logo-small.haml +30 -0
  187. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/fonts/font-awesome/FontAwesome.otf +0 -0
  188. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.eot +0 -0
  189. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.svg +655 -0
  190. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
  191. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.woff +0 -0
  192. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/fonts/font-awesome/fontawesome-webfont.woff2 +0 -0
  193. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/images/_empty_directory.html.md.erb +1 -0
  194. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/javascripts/all.js +1 -0
  195. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_breadcrumbs.haml +11 -0
  196. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_breadcrumbs_alt.haml +15 -0
  197. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_brethren.haml +18 -0
  198. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_brethren_index.haml +14 -0
  199. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_legitimate_children.haml +16 -0
  200. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_prev_next.haml +21 -0
  201. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_nav_toc_index.haml +21 -0
  202. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/partials/_partials_dir_partial.erb +1 -0
  203. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/stylesheets/_apple_helpbook.scss +946 -0
  204. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/stylesheets/_github.scss +61 -0
  205. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/stylesheets/_normalize.scss +374 -0
  206. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/stylesheets/breadcrumb-separator-light.png +0 -0
  207. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/stylesheets/image_sizes.css.erb +8 -0
  208. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/assets/stylesheets/style.css.scss +4 -0
  209. data/fixtures/middlemac_app/Contents/Resources/Base.lproj/index.html.md.erb +17 -0
  210. data/fixtures/middlemac_app/Contents/Resources/shared/icon_256x256.png +0 -0
  211. data/fixtures/middlemac_app/Contents/Resources/shared/icon_256x256@2x.png +0 -0
  212. data/fixtures/middlemac_app/Contents/Resources/shared/icon_32x32.png +0 -0
  213. data/fixtures/middlemac_app/Contents/Resources/shared/icon_32x32@2x.png +0 -0
  214. data/fixtures/middlemac_app/Gemfile +51 -0
  215. data/fixtures/middlemac_app/config.rb +309 -0
  216. data/fixtures/middlemac_app/middlemac.webloc +0 -0
  217. data/lib/middlemac.rb +6 -0
  218. data/lib/middlemac/extension.rb +274 -0
  219. data/lib/middlemac/version.rb +5 -0
  220. data/middlemac.gemspec +38 -0
  221. data/yard/readme.md +9 -0
  222. data/yard/template-grouped/default/module/html/method_details_list.erb +11 -0
  223. data/yard/template-partials/default/method_details/setup.rb +4 -0
  224. data/yard/template-partials/default/module/html/attribute_details.erb +9 -0
  225. data/yard/template-partials/default/module/html/method_details_list.erb +10 -0
  226. data/yard/template-partials/default/module/setup.rb +6 -0
  227. data/yard/template-partials/default/onefile/html/layout.erb +1 -0
  228. data/yard/template-partials/default/onefile/html/setup.rb +4 -0
  229. data/yard/yard_extensions.rb +109 -0
  230. metadata +454 -0
@@ -0,0 +1,402 @@
1
+
2
+
3
+
4
+
5
+ <div id="instance_attr_details" class="attr_details">
6
+
7
+
8
+ <span id="config[:build_dir]=-instance_method"></span>
9
+ <div class="method_details first">
10
+ <h3 class="signature first" id="config[:build_dir]=-instance_method">
11
+
12
+ - (<tt>String</tt>) <strong>config[:build_dir]=</strong>(value)
13
+
14
+
15
+
16
+
17
+
18
+ </h3><div class="docstring">
19
+ <div class="discussion">
20
+
21
+ <div class="note notetag">
22
+ <strong>Note:</strong>
23
+ <div class='inline'><p>This is a Middleman application level config option.</p>
24
+ </div>
25
+ </div>
26
+
27
+ <p>Indicates where <strong>Middleman</strong> will put build output. This standard config
28
+ value will be treated as a <em>prefix</em>; for example if the current target is
29
+ <code>:pro</code> and this value is set to its default <code>build</code>, then the actual build
30
+ directory will be <code>build (pro)/</code>.</p>
31
+
32
+ <p>If the <code>build_dir</code> key is present for any of the <code>config[:targets]</code>, they
33
+ will override this setting.</p>
34
+
35
+
36
+ </div>
37
+ </div>
38
+ <div class="tags">
39
+ <p class="tag_title">Parameters:</p>
40
+ <ul class="param">
41
+
42
+ <li>
43
+
44
+ <span class='name'>value</span>
45
+
46
+
47
+ <span class='type'>(<tt>String</tt>)</span>
48
+
49
+
50
+
51
+ &mdash;
52
+ <div class='inline'><p>Indicate the build directory prefix that should be
53
+ used for build output.</p>
54
+ </div>
55
+
56
+ </li>
57
+
58
+ </ul>
59
+
60
+ <p class="tag_title">Returns:</p>
61
+ <ul class="return">
62
+
63
+ <li>
64
+
65
+
66
+ <span class='type'>(<tt>String</tt>)</span>
67
+
68
+
69
+
70
+ &mdash;
71
+ <div class='inline'><p>Returns the current value of this configuration setting.</p>
72
+ </div>
73
+
74
+ </li>
75
+
76
+ </ul>
77
+
78
+ </div>
79
+ </div>
80
+
81
+
82
+ <span id="config[:target]=-instance_method"></span>
83
+ <div class="method_details ">
84
+ <h3 class="signature " id="config[:target]=-instance_method">
85
+
86
+ - (<tt>Symbol</tt>) <strong>config[:target]=</strong>(value)
87
+
88
+
89
+
90
+
91
+
92
+ </h3><div class="docstring">
93
+ <div class="discussion">
94
+
95
+ <div class="note notetag">
96
+ <strong>Note:</strong>
97
+ <div class='inline'><p>This is a Middleman application level config option.</p>
98
+ </div>
99
+ </div>
100
+
101
+ <p>Indicates the current target that is being built or served. When
102
+ set in <code>config.rb</code> it indicates the default target if one is not
103
+ specified on the command line.</p>
104
+
105
+
106
+ </div>
107
+ </div>
108
+ <div class="tags">
109
+ <p class="tag_title">Parameters:</p>
110
+ <ul class="param">
111
+
112
+ <li>
113
+
114
+ <span class='name'>value</span>
115
+
116
+
117
+ <span class='type'>(<tt>Symbol</tt>)</span>
118
+
119
+
120
+
121
+ &mdash;
122
+ <div class='inline'><p>The target from <code>config[:targets]</code> that should
123
+ be used as the default.</p>
124
+ </div>
125
+
126
+ </li>
127
+
128
+ </ul>
129
+
130
+ <p class="tag_title">Returns:</p>
131
+ <ul class="return">
132
+
133
+ <li>
134
+
135
+
136
+ <span class='type'>(<tt>Symbol</tt>)</span>
137
+
138
+
139
+
140
+ &mdash;
141
+ <div class='inline'><p>Returns the current target.</p>
142
+ </div>
143
+
144
+ </li>
145
+
146
+ </ul>
147
+
148
+ </div>
149
+ </div>
150
+
151
+
152
+ <span id="config[:target_magic_images]=-instance_method"></span>
153
+ <div class="method_details ">
154
+ <h3 class="signature " id="config[:target_magic_images]=-instance_method">
155
+
156
+ - (<tt>Boolean</tt>) <strong>config[:target_magic_images]=</strong>(value)
157
+
158
+
159
+
160
+
161
+
162
+ </h3><div class="docstring">
163
+ <div class="discussion">
164
+
165
+ <div class="note notetag">
166
+ <strong>Note:</strong>
167
+ <div class='inline'><p>This is a Middleman application level config option.</p>
168
+ </div>
169
+ </div>
170
+
171
+ <p>This option is used to enable or disable the target magic images feature.
172
+ If it’s <code>true</code> then the <code>image_tag</code> helper will attempt to substitute
173
+ target-specific images instead of the specified image, if the specified
174
+ image begins with <code>:target_magic_word</code>.</p>
175
+
176
+
177
+ </div>
178
+ </div>
179
+ <div class="tags">
180
+ <p class="tag_title">Parameters:</p>
181
+ <ul class="param">
182
+
183
+ <li>
184
+
185
+ <span class='name'>value</span>
186
+
187
+
188
+ <span class='type'>(<tt>Boolean</tt>)</span>
189
+
190
+
191
+
192
+ &mdash;
193
+ <div class='inline'><p>Specify whether or not automatic target-specific
194
+ image substitution should be enabled.</p>
195
+ </div>
196
+
197
+ </li>
198
+
199
+ </ul>
200
+
201
+ <p class="tag_title">Returns:</p>
202
+ <ul class="return">
203
+
204
+ <li>
205
+
206
+
207
+ <span class='type'>(<tt>Boolean</tt>)</span>
208
+
209
+
210
+
211
+ &mdash;
212
+ <div class='inline'><p>Returns the current state of this option.</p>
213
+ </div>
214
+
215
+ </li>
216
+
217
+ </ul>
218
+
219
+ </div>
220
+ </div>
221
+
222
+
223
+ <span id="config[:target_magic_word]=-instance_method"></span>
224
+ <div class="method_details ">
225
+ <h3 class="signature " id="config[:target_magic_word]=-instance_method">
226
+
227
+ - (<tt>String</tt>) <strong>config[:target_magic_word]=</strong>(value)
228
+
229
+
230
+
231
+
232
+
233
+ </h3><div class="docstring">
234
+ <div class="discussion">
235
+
236
+ <div class="note notetag">
237
+ <strong>Note:</strong>
238
+ <div class='inline'><p>This is a Middleman application level config option.</p>
239
+ </div>
240
+ </div>
241
+
242
+ <p>Indicates the magic image prefix for image substitution with the
243
+ <code>image_tag</code> helper when <code>:target_magic_images</code> is enabled. For example
244
+ if you specify <code>all-image.png</code> and <code>pro-image.png</code> exists, then the
245
+ latter will be used by the helper instead of the former.</p>
246
+
247
+
248
+ </div>
249
+ </div>
250
+ <div class="tags">
251
+ <p class="tag_title">Parameters:</p>
252
+ <ul class="param">
253
+
254
+ <li>
255
+
256
+ <span class='name'>value</span>
257
+
258
+
259
+ <span class='type'>(<tt>String</tt>)</span>
260
+
261
+
262
+
263
+ &mdash;
264
+ <div class='inline'><p>Indicate the prefix that should indicate and image
265
+ the should be substituted, such as <code>all</code>.</p>
266
+ </div>
267
+
268
+ </li>
269
+
270
+ </ul>
271
+
272
+ <p class="tag_title">Returns:</p>
273
+ <ul class="return">
274
+
275
+ <li>
276
+
277
+
278
+ <span class='type'>(<tt>String</tt>)</span>
279
+
280
+
281
+
282
+ &mdash;
283
+ <div class='inline'><p>Returns the current magic prefix.</p>
284
+ </div>
285
+
286
+ </li>
287
+
288
+ </ul>
289
+
290
+ </div>
291
+ </div>
292
+
293
+
294
+ <span id="config[:targets]=-instance_method"></span>
295
+ <div class="method_details ">
296
+ <h3 class="signature " id="config[:targets]=-instance_method">
297
+
298
+ - (<tt>Hash</tt>) <strong>config[:targets]=</strong>(value)
299
+
300
+
301
+
302
+
303
+
304
+ </h3><div class="docstring">
305
+ <div class="discussion">
306
+
307
+ <div class="note notetag">
308
+ <strong>Note:</strong>
309
+ <div class='inline'><p>This is a Middleman application level config option.</p>
310
+ </div>
311
+ </div>
312
+
313
+ <p>A hash that defines all of the characteristics of your individual targets.
314
+ The <code>build_dir</code> and <code>features</code> keys in a target have special meanings;
315
+ other keys can be added arbitrarily and helpers can fetch these for you.
316
+ A best practice is to assign the same features to <em>all</em> of your targets and
317
+ toggle them <code>on</code> or <code>off</code> on a target-specific basis.</p>
318
+
319
+
320
+ </div>
321
+ </div>
322
+ <div class="tags">
323
+
324
+ <div class="examples">
325
+ <p class="tag_title">Examples:</p>
326
+
327
+
328
+ <p class="example_title"><div class='inline'><p>You might define this in your <code>config.rb</code> like this:</p>
329
+ </div></p>
330
+
331
+ <pre class="example code"><code><span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:targets</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span>
332
+ <span class='symbol'>:free</span> <span class='op'>=&gt;</span>
333
+ <span class='lbrace'>{</span>
334
+ <span class='symbol'>:sample_key</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>People who use free versions don\&#39;t drive profits.</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
335
+ <span class='symbol'>:build_dir</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>build (%s)</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
336
+ <span class='symbol'>:features</span> <span class='op'>=&gt;</span>
337
+ <span class='lbrace'>{</span>
338
+ <span class='symbol'>:feature_advertise_pro</span> <span class='op'>=&gt;</span> <span class='kw'>true</span><span class='comma'>,</span>
339
+ <span class='symbol'>:insults_user</span> <span class='op'>=&gt;</span> <span class='kw'>true</span><span class='comma'>,</span>
340
+ <span class='symbol'>:grants_wishes</span> <span class='op'>=&gt;</span> <span class='kw'>false</span><span class='comma'>,</span>
341
+ <span class='rbrace'>}</span>
342
+ <span class='rbrace'>}</span><span class='comma'>,</span>
343
+
344
+ <span class='symbol'>:pro</span> <span class='op'>=&gt;</span>
345
+ <span class='lbrace'>{</span>
346
+ <span class='symbol'>:sample_key</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>You are a valued contributor to our balance sheet!</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
347
+ <span class='symbol'>:features</span> <span class='op'>=&gt;</span>
348
+ <span class='lbrace'>{</span>
349
+ <span class='symbol'>:feature_advertise_pro</span> <span class='op'>=&gt;</span> <span class='kw'>false</span><span class='comma'>,</span>
350
+ <span class='symbol'>:insults_user</span> <span class='op'>=&gt;</span> <span class='kw'>false</span><span class='comma'>,</span>
351
+ <span class='symbol'>:grants_wishes</span> <span class='op'>=&gt;</span> <span class='kw'>true</span><span class='comma'>,</span>
352
+ <span class='rbrace'>}</span>
353
+ <span class='rbrace'>}</span><span class='comma'>,</span>
354
+ <span class='rbrace'>}</span></code></pre>
355
+
356
+ </div>
357
+ <p class="tag_title">Parameters:</p>
358
+ <ul class="param">
359
+
360
+ <li>
361
+
362
+ <span class='name'>value</span>
363
+
364
+
365
+ <span class='type'>(<tt>Hash</tt>)</span>
366
+
367
+
368
+
369
+ &mdash;
370
+ <div class='inline'><p>The complete definition of your targets, their
371
+ features, and other keys-value pairs that you wish to include.</p>
372
+ </div>
373
+
374
+ </li>
375
+
376
+ </ul>
377
+
378
+ <p class="tag_title">Returns:</p>
379
+ <ul class="return">
380
+
381
+ <li>
382
+
383
+
384
+ <span class='type'>(<tt>Hash</tt>)</span>
385
+
386
+
387
+
388
+ &mdash;
389
+ <div class='inline'><p>Returns the attributes of your targets.</p>
390
+ </div>
391
+
392
+ </li>
393
+
394
+ </ul>
395
+
396
+ </div>
397
+ </div>
398
+
399
+ </div>
400
+
401
+
402
+
@@ -0,0 +1,235 @@
1
+
2
+
3
+
4
+
5
+
6
+ <div class="method_details_list">
7
+
8
+
9
+
10
+ <div class="method_details first">
11
+ <h3 class="signature first" id="target_feature?-instance_method">
12
+
13
+ - (<tt>Boolean</tt>) <strong>target_feature?</strong>(feature)
14
+
15
+
16
+
17
+
18
+
19
+ </h3><div class="docstring">
20
+ <div class="discussion">
21
+ <p>Does the target have the feature <code>feature</code> enabled?</p>
22
+
23
+
24
+ </div>
25
+ </div>
26
+ <div class="tags">
27
+ <p class="tag_title">Parameters:</p>
28
+ <ul class="param">
29
+
30
+ <li>
31
+
32
+ <span class='name'>feature</span>
33
+
34
+
35
+ <span class='type'>(<tt>String</tt>, <tt>Symbol</tt>)</span>
36
+
37
+
38
+
39
+ &mdash;
40
+ <div class='inline'><p>Specifies a proposed
41
+ feature.</p>
42
+ </div>
43
+
44
+ </li>
45
+
46
+ </ul>
47
+
48
+ <p class="tag_title">Returns:</p>
49
+ <ul class="return">
50
+
51
+ <li>
52
+
53
+
54
+ <span class='type'>(<tt>Boolean</tt>)</span>
55
+
56
+
57
+
58
+ &mdash;
59
+ <div class='inline'><p>Returns <code>true</code> if the current target
60
+ has the features <code>feature</code> and the features is
61
+ enabled.</p>
62
+ </div>
63
+
64
+ </li>
65
+
66
+ </ul>
67
+
68
+ </div>
69
+ </div>
70
+
71
+ <div class="method_details ">
72
+ <h3 class="signature " id="target_name-instance_method">
73
+
74
+ - (<tt>Symbol</tt>) <strong>target_name</strong>
75
+
76
+
77
+
78
+
79
+
80
+ </h3><div class="docstring">
81
+ <div class="discussion">
82
+ <p>Return the current build target.</p>
83
+
84
+
85
+ </div>
86
+ </div>
87
+ <div class="tags">
88
+
89
+ <p class="tag_title">Returns:</p>
90
+ <ul class="return">
91
+
92
+ <li>
93
+
94
+
95
+ <span class='type'>(<tt>Symbol</tt>)</span>
96
+
97
+
98
+
99
+ &mdash;
100
+ <div class='inline'><p>Returns the current build target.</p>
101
+ </div>
102
+
103
+ </li>
104
+
105
+ </ul>
106
+
107
+ </div>
108
+ </div>
109
+
110
+ <div class="method_details ">
111
+ <h3 class="signature " id="target_name?-instance_method">
112
+
113
+ - (<tt>Boolean</tt>) <strong>target_name?</strong>(proposal)
114
+
115
+
116
+
117
+
118
+
119
+ </h3><div class="docstring">
120
+ <div class="discussion">
121
+ <p>Is the current target <code>proposal</code>?</p>
122
+
123
+
124
+ </div>
125
+ </div>
126
+ <div class="tags">
127
+ <p class="tag_title">Parameters:</p>
128
+ <ul class="param">
129
+
130
+ <li>
131
+
132
+ <span class='name'>proposal</span>
133
+
134
+
135
+ <span class='type'>(<tt>String</tt>, <tt>Symbol</tt>)</span>
136
+
137
+
138
+
139
+ &mdash;
140
+ <div class='inline'><p>Specifies a proposed
141
+ target.</p>
142
+ </div>
143
+
144
+ </li>
145
+
146
+ </ul>
147
+
148
+ <p class="tag_title">Returns:</p>
149
+ <ul class="return">
150
+
151
+ <li>
152
+
153
+
154
+ <span class='type'>(<tt>Boolean</tt>)</span>
155
+
156
+
157
+
158
+ &mdash;
159
+ <div class='inline'><p>Returns <code>true</code> if the current target
160
+ matches the parameter <code>proposal</code>.</p>
161
+ </div>
162
+
163
+ </li>
164
+
165
+ </ul>
166
+
167
+ </div>
168
+ </div>
169
+
170
+ <div class="method_details ">
171
+ <h3 class="signature " id="target_value-instance_method">
172
+
173
+ - (<tt>String</tt>, <tt>Nil</tt>) <strong>target_value</strong>(key)
174
+
175
+
176
+
177
+
178
+
179
+ </h3><div class="docstring">
180
+ <div class="discussion">
181
+ <p>Attempts to return arbitrary key values for the key
182
+ <code>key</code> for the current target.</p>
183
+
184
+
185
+ </div>
186
+ </div>
187
+ <div class="tags">
188
+ <p class="tag_title">Parameters:</p>
189
+ <ul class="param">
190
+
191
+ <li>
192
+
193
+ <span class='name'>key</span>
194
+
195
+
196
+ <span class='type'>(<tt>String</tt>, <tt>Symbol</tt>)</span>
197
+
198
+
199
+
200
+ &mdash;
201
+ <div class='inline'><p>Specifies the desired key
202
+ to look up.</p>
203
+ </div>
204
+
205
+ </li>
206
+
207
+ </ul>
208
+
209
+ <p class="tag_title">Returns:</p>
210
+ <ul class="return">
211
+
212
+ <li>
213
+
214
+
215
+ <span class='type'>(<tt>String</tt>, <tt>Nil</tt>)</span>
216
+
217
+
218
+
219
+ &mdash;
220
+ <div class='inline'><p>Returns the value for <code>key</code> in
221
+ the <code>:targets</code> structure, or <code>nil</code> if it doesn’t
222
+ exist.</p>
223
+ </div>
224
+
225
+ </li>
226
+
227
+ </ul>
228
+
229
+ </div>
230
+ </div>
231
+
232
+
233
+ </div>
234
+
235
+