middlemac 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,138 @@
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="image_tag-instance_method">
12
+
13
+ - (<tt>Void</tt>) <strong>image_tag</strong>(path, params = {})
14
+
15
+
16
+
17
+
18
+
19
+ </h3><div class="docstring">
20
+ <div class="discussion">
21
+ <p>Override the built-in <code>image-tag</code> helper in order to
22
+ support additional features.</p>
23
+
24
+ <ul>
25
+ <li>Automatic target-specific images. Note that this
26
+ only works on local files, and only if enabled
27
+ with the option <code>:target_magic_images</code>.</li>
28
+ <li>Target and feature dependent images using the
29
+ <code>params</code> hash.</li>
30
+ <li>Absolute paths, which Middleman sometimes bungles.</li>
31
+ </ul>
32
+
33
+ <p>Note that in addition to the options described below,
34
+ <code>middleman-targets</code> inherits all of the built-in
35
+ option parameters as well.</p>
36
+
37
+
38
+ </div>
39
+ </div>
40
+ <div class="tags">
41
+ <p class="tag_title">Parameters:</p>
42
+ <ul class="param">
43
+
44
+ <li>
45
+
46
+ <span class='name'>path</span>
47
+
48
+
49
+ <span class='type'>(<tt>String</tt>)</span>
50
+
51
+
52
+
53
+ &mdash;
54
+ <div class='inline'><p>The path to the image file.</p>
55
+ </div>
56
+
57
+ </li>
58
+
59
+ <li>
60
+
61
+ <span class='name'>params</span>
62
+
63
+
64
+ <span class='type'>(<tt>Hash</tt>)</span>
65
+
66
+
67
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
68
+
69
+
70
+ &mdash;
71
+ <div class='inline'><p>Optional parameters to pass to
72
+ the helper.</p>
73
+ </div>
74
+
75
+ </li>
76
+
77
+ </ul>
78
+
79
+
80
+
81
+
82
+
83
+
84
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
85
+ <ul class="option">
86
+
87
+ <li>
88
+ <span class="name">:target</span>
89
+ <span class="type">(<tt>String</tt>, <tt>Symbol</tt>)</span>
90
+ <span class="default">
91
+
92
+ </span>
93
+
94
+ &mdash; <div class='inline'><p>This image
95
+ tag will only be applied if the current target is
96
+ <code>target</code>.</p>
97
+ </div>
98
+
99
+ </li>
100
+
101
+ <li>
102
+ <span class="name">:feature</span>
103
+ <span class="type">(<tt>String</tt>, <tt>Symbol</tt>)</span>
104
+ <span class="default">
105
+
106
+ </span>
107
+
108
+ &mdash; <div class='inline'><p>This image
109
+ tag will only be applied if the current target
110
+ enables the feature <code>feature</code>.</p>
111
+ </div>
112
+
113
+ </li>
114
+
115
+ </ul>
116
+
117
+
118
+ <p class="tag_title">Returns:</p>
119
+ <ul class="return">
120
+
121
+ <li>
122
+
123
+
124
+ <span class='type'>(<tt>Void</tt>)</span>
125
+
126
+
127
+
128
+ </li>
129
+
130
+ </ul>
131
+
132
+ </div>
133
+ </div>
134
+
135
+
136
+ </div>
137
+
138
+
@@ -0,0 +1,81 @@
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_specific_proposal-instance_method">
12
+
13
+ - (<tt>String</tt>) <strong>target_specific_proposal</strong>(path)
14
+
15
+
16
+
17
+
18
+
19
+ </h3><div class="docstring">
20
+ <div class="discussion">
21
+ <p>Returns a target-specific proposed file when given
22
+ a user-specified file, and will return the same file
23
+ if not enabled or doesn’t begin with the magic word.</p>
24
+
25
+ <p>This method allow other implementations of <code>image-tag</code>
26
+ to honor this implementation’s use of automatic
27
+ image substitutions.</p>
28
+
29
+
30
+ </div>
31
+ </div>
32
+ <div class="tags">
33
+ <p class="tag_title">Parameters:</p>
34
+ <ul class="param">
35
+
36
+ <li>
37
+
38
+ <span class='name'>path</span>
39
+
40
+
41
+ <span class='type'>(<tt>String</tt>)</span>
42
+
43
+
44
+
45
+ &mdash;
46
+ <div class='inline'><p>Specify the path to the image
47
+ for which you want to provide a substitution. This
48
+ image doesn’t have to exist in fact if suitable
49
+ images exist for the current target.</p>
50
+ </div>
51
+
52
+ </li>
53
+
54
+ </ul>
55
+
56
+ <p class="tag_title">Returns:</p>
57
+ <ul class="return">
58
+
59
+ <li>
60
+
61
+
62
+ <span class='type'>(<tt>String</tt>)</span>
63
+
64
+
65
+
66
+ &mdash;
67
+ <div class='inline'><p>Returns the substitute image if one
68
+ was found, otherwise it returns the original path.</p>
69
+ </div>
70
+
71
+ </li>
72
+
73
+ </ul>
74
+
75
+ </div>
76
+ </div>
77
+
78
+
79
+ </div>
80
+
81
+
@@ -0,0 +1,109 @@
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="resource.targeted?-instance_method">
12
+
13
+ - (<tt>Boolean</tt>) <strong>resource.targeted?</strong>
14
+
15
+
16
+
17
+
18
+
19
+ </h3><div class="docstring">
20
+ <div class="discussion">
21
+ <p>Determines if the resource is eligible for inclusion
22
+ in the current target based on the front matter data
23
+ <code>target</code> and <code>exclude</code> fields.</p>
24
+
25
+ <ul>
26
+ <li>If <strong>frontmatter:target</strong> is used, the target or
27
+ feature appears in the frontmatter, and</li>
28
+ <li>If <strong>frontmatter:exclude</strong> is used, the target or
29
+ enabled feature does NOT appear in the
30
+ frontmatter</li>
31
+ </ul>
32
+
33
+ <p>In general you won’t use this resource method because
34
+ resources will already be excluded before you have a
35
+ chance to check them, and so any leftover resources
36
+ will always return <code>true</code> for this method.</p>
37
+
38
+
39
+ </div>
40
+ </div>
41
+ <div class="tags">
42
+
43
+ <p class="tag_title">Returns:</p>
44
+ <ul class="return">
45
+
46
+ <li>
47
+
48
+
49
+ <span class='type'>(<tt>Boolean</tt>)</span>
50
+
51
+
52
+
53
+ &mdash;
54
+ <div class='inline'><p>Returns a value indicating whether
55
+ or not this resource belongs in the current target.</p>
56
+ </div>
57
+
58
+ </li>
59
+
60
+ </ul>
61
+
62
+ </div>
63
+ </div>
64
+
65
+ <div class="method_details ">
66
+ <h3 class="signature " id="resource.valid_features-instance_method">
67
+
68
+ - (<tt>Array</tt>) <strong>resource.valid_features</strong>
69
+
70
+
71
+
72
+
73
+
74
+ </h3><div class="docstring">
75
+ <div class="discussion">
76
+ <p>Returns an array of valid features for a resource
77
+ based on the current target, i.e., features that
78
+ are true for the current target.</p>
79
+
80
+
81
+ </div>
82
+ </div>
83
+ <div class="tags">
84
+
85
+ <p class="tag_title">Returns:</p>
86
+ <ul class="return">
87
+
88
+ <li>
89
+
90
+
91
+ <span class='type'>(<tt>Array</tt>)</span>
92
+
93
+
94
+
95
+ &mdash;
96
+ <div class='inline'><p>Returns an array of features.</p>
97
+ </div>
98
+
99
+ </li>
100
+
101
+ </ul>
102
+
103
+ </div>
104
+ </div>
105
+
106
+
107
+ </div>
108
+
109
+
@@ -0,0 +1,946 @@
1
+ //*****************************************************************************
2
+ // Styles that bring an Apple-like look to your applications' help files.
3
+ //
4
+ // * Used in conjunction with normalize.css to establish sane defaults.
5
+ // * We have *structural* containers and *styling* containers.
6
+ // * There's no such thing as padding and margins on anything unless they're
7
+ // part of a styling container, or inside of a styling container that
8
+ // sets them for them.
9
+ // * Structural containers only have size and position and visibility.
10
+ // * Styling containers set styles for elements inside of them.
11
+ //*****************************************************************************
12
+
13
+ @import "font-awesome";
14
+
15
+
16
+ //*************************************
17
+ // Mixins
18
+ //*************************************
19
+
20
+ // Easily include font-awesome icons
21
+ @mixin icon( $type: $fa-var-bug )
22
+ {
23
+ content: $type;
24
+ font-family: 'Fontawesome';
25
+ -webkit-font-smoothing: antialiased;
26
+ -moz-osx-font-smoothing: grayscale;
27
+ }
28
+
29
+ // Easily include backgrounds for multiple browsers, just in case.
30
+ // You might require Compass in your own projects, instead.
31
+ @mixin background( $property )
32
+ {
33
+ background: -o-#{$property};
34
+ background: -moz-#{$property};
35
+ background: -webkit-#{$property};
36
+ background: #{$property};
37
+ }
38
+
39
+
40
+ //*************************************
41
+ // GENERAL STYLES
42
+ //*************************************
43
+
44
+ $interMargins: 1.5ex;
45
+ $linkColor: rgb(99,136,193);
46
+ $strongColor: rgb(75,75,75);
47
+ $standard_border: 1px solid #bfbfbf;
48
+
49
+ *
50
+ {
51
+ margin: 0;
52
+ padding: 0;
53
+ }
54
+
55
+ html
56
+ {
57
+ font-size: 11pt;
58
+ height: 100%;
59
+ }
60
+
61
+ body
62
+ {
63
+ font-family: -apple-system-font, -webkit-system-font, "HelveticaNeue", "Helvetica Neue", "Helvetica", sans-serif;
64
+ height: 100%;
65
+ min-width: 600px;
66
+ }
67
+
68
+ h1
69
+ {
70
+ font-size: 1.7em;
71
+ font-weight: normal;
72
+ }
73
+ h2
74
+ {
75
+ font-size: 1.5em;
76
+ font-weight: normal;
77
+ }
78
+ h3
79
+ {
80
+ font-size: 1.3em;
81
+ font-weight: normal;
82
+ }
83
+
84
+
85
+ p
86
+ {
87
+ font-size: 1.0em;
88
+ line-height: 1.6em;
89
+ }
90
+
91
+
92
+ a
93
+ {
94
+ text-decoration: none;
95
+ //font-weight: bold;
96
+ font-size: 1.05em;
97
+ color: $linkColor;
98
+
99
+ &:visited
100
+ {
101
+ color: $linkColor;
102
+ }
103
+
104
+ &:hover
105
+ {
106
+ text-decoration: underline;
107
+ }
108
+ }
109
+
110
+ strong
111
+ {
112
+ color: $strongColor;
113
+ }
114
+
115
+ hr
116
+ {
117
+ text-decoration: none;
118
+ border: none;
119
+ border-bottom: $standard_border;
120
+ margin: ($interMargins * 2) 10% ($interMargins * 2) 10%;
121
+ }
122
+
123
+ // "standard" img should always be a block and centered
124
+ // and assume 100% width. Can set max-width to prevent
125
+ // oversized images in another class.
126
+ img
127
+ {
128
+ display: block;
129
+ width: 100%;
130
+ margin: 0 auto 0 auto;
131
+ }
132
+
133
+
134
+ // "standard" dl only spaces the items. Set the <dl> in
135
+ // a styling container if you want padding or margins.
136
+ dl
137
+ {
138
+ dt code
139
+ {
140
+ font-weight: bold;
141
+ }
142
+
143
+ dd
144
+ {
145
+ margin: 0.8ex 0 0.8ex 3em;
146
+ }
147
+ }
148
+
149
+
150
+ // "standard" ul has no margins or padding, except left margin.
151
+ ul
152
+ {
153
+ list-style: square outside;
154
+ margin-left: 2em;
155
+ }
156
+
157
+
158
+ // "standard" li only spaces the items. Set the <ul> or <ol>
159
+ // in a styling container if you want padding or margins.
160
+ // The default aligns the left of the text with the body
161
+ // left text, meaning the bullets or counters will stick out
162
+ // to the left.
163
+ li
164
+ {
165
+ margin: 0.8ex 0 0.8ex 0;
166
+ }
167
+
168
+
169
+ /* fix for FireFox, apparently */
170
+ li p { display: inline; }
171
+
172
+
173
+ //*************************************
174
+ // tidyoptions dt
175
+ //*************************************
176
+ body.tidyoptions
177
+ {
178
+ dt
179
+ {
180
+ margin-top: $interMargins * 2;
181
+ }
182
+ }
183
+
184
+
185
+ //*************************************
186
+ // related_topics
187
+ //*************************************
188
+ div.related_topics
189
+ {
190
+ ul
191
+ {
192
+ list-style: none;
193
+ margin-left: 1em;
194
+ }
195
+ }
196
+
197
+
198
+ //*************************************
199
+ // table_contents
200
+ //*************************************
201
+ div.table_contents
202
+ {
203
+ dl
204
+ {
205
+ margin: 1em;
206
+ }
207
+ dt
208
+ {
209
+ margin-top: $interMargins * 2;
210
+ }
211
+ }
212
+
213
+ //*************************************
214
+ // yield-content settings
215
+ //*************************************
216
+ div.yield-content
217
+ {
218
+ h1
219
+ {
220
+ margin-bottom: $interMargins;
221
+ }
222
+
223
+ h2,
224
+ h3
225
+ {
226
+ margin-top: ($interMargins / 1);
227
+ margin-bottom: ($interMargins / 2);
228
+ }
229
+ p
230
+ {
231
+ margin-top: ($interMargins / 2);
232
+ margin-bottom: ($interMargins / 2);
233
+ }
234
+ }
235
+
236
+
237
+ //*************************************
238
+ // help_map settings
239
+ //*************************************
240
+ .help_map
241
+ {
242
+ }
243
+
244
+
245
+ //*************************************
246
+ // Breadcrumbs
247
+ //*************************************
248
+ nav#breadcrumbs
249
+ {
250
+ height: 22px;
251
+ width: 100%;
252
+ overflow: hidden;
253
+ position: fixed;
254
+ top: 0;
255
+ border-bottom: 1pt solid #7E7E7E;
256
+ @include background(linear-gradient(top, rgba(224,224,224,1) 0%,rgba(201,201,202,1) 100%));
257
+ z-index: 10;
258
+
259
+ // target the main content div for additional margin.
260
+ & + div
261
+ {
262
+ margin-top: 2em;
263
+ }
264
+
265
+ ul,
266
+ ul li,
267
+ ul li a
268
+ {
269
+ font-size: 11px;
270
+ line-height: 22px;
271
+ height: 22px;
272
+ font-weight: 100;
273
+ margin: 0;
274
+ padding: 0;
275
+ }
276
+
277
+ ul li
278
+ {
279
+ list-style-type: none;
280
+ float: left;
281
+ padding: 0 0 0 10px;
282
+ margin: 0;
283
+
284
+ a
285
+ {
286
+ display: block;
287
+ background: url('breadcrumb-separator-light.png') no-repeat right;
288
+ padding-right: 15px;
289
+ text-decoration: none;
290
+ color: #353535;
291
+ }
292
+
293
+ &:last-child
294
+ {
295
+ color: #555555;
296
+
297
+ a
298
+ {
299
+ background: none;
300
+ cursor: default;
301
+ }
302
+ }
303
+ }
304
+ }
305
+
306
+
307
+ //*************************************
308
+ // Navigation Buttons
309
+ //*************************************
310
+ div.navigate_prev_next
311
+ {
312
+ display: block;
313
+ width: auto;
314
+ margin: $interMargins auto $interMargins auto;
315
+ text-align: center;
316
+ $height: 2.5em;
317
+
318
+ a,
319
+ span
320
+ {
321
+ display: inline-block;
322
+ color: #353535;
323
+ @include background(linear-gradient(top, rgba(224,224,224,1) 0%,rgba(201,201,202,1) 100%));
324
+ border-radius: 2px;
325
+ font-size: 0.8em;
326
+ text-decoration: none;
327
+ font-weight: bold;
328
+ width: 10em;
329
+ height: $height;
330
+ line-height: $height;
331
+
332
+ // space between buttons.
333
+ &:first-child
334
+ {
335
+ margin-right: 1em;
336
+ }
337
+
338
+ &:first-child:before
339
+ {
340
+ @include icon($fa-var-chevron-left);
341
+ font-size: 1.5em;
342
+ margin: 0 0 0 10px;
343
+ float: left;
344
+ color: whitesmoke;
345
+ }
346
+
347
+ &:first-child + a:after,
348
+ &:first-child + span:after
349
+ {
350
+ @include icon($fa-var-chevron-right);
351
+ font-size: 1.5em;
352
+ margin-right: 10px;
353
+ float: right;
354
+ color: whitesmoke;
355
+ }
356
+ }
357
+
358
+ a:hover
359
+ {
360
+ @include background(linear-gradient(top, rgba(211,211,211,1) 0%,rgba(191,191,191,1) 100%));
361
+
362
+ &:before,
363
+ &:after
364
+ {
365
+ color: $linkColor !important; // specificity
366
+ }
367
+ }
368
+
369
+ // override span color, as it's disabled.
370
+ span
371
+ {
372
+ color: #888888;
373
+ @include background(linear-gradient(top, rgba(234,234,234,1) 0%,rgba(244,244,244,1) 100%));
374
+ &:before,
375
+ &:after
376
+ {
377
+ color: #aaaaaa;
378
+ }
379
+ }
380
+
381
+
382
+ }
383
+
384
+
385
+ //*************************************
386
+ // layout-logo-large layout styles
387
+ //*************************************
388
+ div.container-logo-large
389
+ {
390
+ $logo-width: 200pt;
391
+
392
+ position: relative;
393
+ left: 0;
394
+ right: 0;
395
+ width: 100%;
396
+ height: 100%;
397
+
398
+ // left block, template content area.
399
+ > div:first-child
400
+ {
401
+ position: absolute;
402
+ top: 0;
403
+ left: 0;
404
+ width: $logo-width;
405
+ text-align: center;
406
+ font-size: 0.8em;
407
+
408
+ // top of left block, where image,
409
+ // headline, and link all live.
410
+ > div:first-child
411
+ {
412
+ margin-top: 1em;
413
+
414
+ > img
415
+ {
416
+ display: block;
417
+ width: 80%;
418
+ margin: 0 auto 1em auto;
419
+ }
420
+ }
421
+
422
+ // bottom of left block, for related topics
423
+ > div:first-child + div
424
+ {
425
+ font-size: 0.9em;
426
+ margin: 2em 1em 0 3em;
427
+ text-align: left;
428
+
429
+ h1
430
+ {
431
+ font-size: 1.3em;
432
+ }
433
+ }
434
+ }
435
+
436
+
437
+ // right block, the structure block. We will
438
+ // perform divider styling here, despite my no-styling rule,
439
+ // so that we can ensure it extends to the whole content.
440
+ > div:first-child + div
441
+ {
442
+ margin-left: $logo-width;
443
+ border-left: $standard_border;
444
+ min-height: 100%;
445
+
446
+ // finally the user's block with a nice padding
447
+ > div:first-child
448
+ {
449
+ padding: 2em;
450
+ }
451
+ }
452
+ }
453
+
454
+
455
+ //*************************************
456
+ // layout-logo-medium styles
457
+ //*************************************
458
+ div.container-logo-medium
459
+ {
460
+ $logo-width: 130pt;
461
+
462
+ position: relative;
463
+ left: 0;
464
+ right: 0;
465
+ width: 100%;
466
+ height: 100%;
467
+
468
+ // left block, the structure block. We will
469
+ // perform divider styling here, despite my no-styling rule,
470
+ // so that we can ensure it extends to the whole content.
471
+ > div:first-child
472
+ {
473
+ margin-right: $logo-width;
474
+ border-right: $standard_border;
475
+ min-height: 100%;
476
+
477
+ /* other images in the div, after the first-child */
478
+ img
479
+ {
480
+ margin: $interMargins auto $interMargins auto;
481
+ width: 100%;
482
+ }
483
+
484
+ /* finally the user's block with a nice padding */
485
+ > div:first-child
486
+ {
487
+ padding: 2em;
488
+ }
489
+ }
490
+
491
+ // right block, template content area.
492
+ > div:first-child + div
493
+ {
494
+ position: absolute;
495
+ top: 0;
496
+ right: 0;
497
+ width: $logo-width;
498
+
499
+ // top of right block, where image lives
500
+ > div:first-child
501
+ {
502
+ padding-top: 1em;
503
+
504
+ > img
505
+ {
506
+ display: block;
507
+ width: 80%;
508
+ margin: 0 auto 1em auto;
509
+ }
510
+ }
511
+
512
+ // bottom of left block, for related topics
513
+ > div:first-child + div
514
+ {
515
+ font-size: 0.8em;
516
+ margin: 2em 1em 0 1em;
517
+ text-align: left;
518
+
519
+ h1
520
+ {
521
+ font-size: 1.3em;
522
+ }
523
+ }
524
+ }
525
+ }
526
+
527
+
528
+ //*************************************
529
+ // layout-logo-small styles
530
+ //*************************************
531
+ div.container-logo-small
532
+ {
533
+ $bannerHeight: 36pt;
534
+ padding: 1em 2em 1em 2em;
535
+
536
+ // banner AND body text
537
+ > div:first-child
538
+ {
539
+ > img:first-child
540
+ {
541
+ height: $bannerHeight;
542
+ width: auto;
543
+ padding: 0 1em 0 0;
544
+ float: left;
545
+
546
+ + h1
547
+ {
548
+ line-height: $bannerHeight;
549
+ margin-bottom: 1ex;
550
+ }
551
+ }
552
+ }
553
+
554
+ // This will be the related topics div
555
+ > div:first-child ~ div
556
+ {
557
+ font-size: 0.8em;
558
+ padding-bottom: 1em;
559
+
560
+ h1
561
+ {
562
+ font-size: 1.3em;
563
+ }
564
+ }
565
+ }
566
+
567
+
568
+ //*************************************
569
+ // Other Block Level Elements
570
+ //*************************************
571
+
572
+ // for displaying source code
573
+ pre
574
+ {
575
+ background-color: #eeeeee;
576
+ display: block;
577
+ margin: 2ex 2em 2ex 2em;
578
+ padding: 1em;
579
+ font-family: Menlo, Courier, monospace;
580
+ white-space: pre; //pre-line;
581
+ word-wrap: normal;
582
+ overflow: auto;
583
+ }
584
+
585
+ code
586
+ {
587
+ white-space: pre;
588
+ word-wrap: normal;
589
+ }
590
+
591
+
592
+ // for highlighting important information
593
+ .note
594
+ {
595
+ margin: 1em;
596
+ padding: 1em;
597
+ background-color: #e6edff;
598
+ border: 1px solid #eaeaea;
599
+ }
600
+
601
+
602
+ // a container for showing things that are done step by step
603
+ div.steps
604
+ {
605
+ margin: 0 0 ($interMargins * 2) 0;
606
+ padding: 1em 2em 1em 2em;
607
+ border: $standard_border;
608
+ border-radius: 10px;
609
+
610
+ ul,
611
+ ol
612
+ {
613
+ margin-left: 2em;
614
+ }
615
+
616
+ ul:first-child,
617
+ ol:first-child
618
+ {
619
+ margin-left: 1em;
620
+ }
621
+ }
622
+
623
+ // indented left and right version of the container
624
+ div.steps.narrow
625
+ {
626
+ margin-left: 3em;
627
+ margin-right: 3em;
628
+ }
629
+
630
+
631
+ // image_article
632
+ div.image_article
633
+ {
634
+ margin-top: $interMargins;
635
+
636
+ > div:first-child
637
+ {
638
+ float: left;
639
+ width: 45%;
640
+ margin: 0 1em 0 0;
641
+
642
+ > img
643
+ {
644
+ margin-top: 0 !important;
645
+ }
646
+ }
647
+
648
+ &.narrow > div:first-child
649
+ {
650
+ width: 10%;
651
+ }
652
+
653
+
654
+ ul,
655
+ ol
656
+ {
657
+ list-style-position:inside;
658
+ }
659
+ }
660
+
661
+ div.image_article:after
662
+ {
663
+ content: "";
664
+ display: table;
665
+ clear: both;
666
+ }
667
+
668
+ //*************************************
669
+ // For partials extracted from YARD
670
+ //*************************************
671
+
672
+ $yard_color_symbol: rgba(0,136,204,1);
673
+ $yard_font_mono: Menlo, Consolas, Monaco, Courier, monospace;
674
+
675
+ div.attr_details,
676
+ div.method_details_list
677
+ {
678
+ .inline
679
+ {
680
+ display: inline;
681
+
682
+ p:first-child
683
+ {
684
+ display: inline;
685
+ }
686
+ }
687
+
688
+ .method_details
689
+ {
690
+ border-top: 1px dotted #aaa;
691
+ margin-top: 15px;
692
+ padding-top: 0;
693
+
694
+ &.first
695
+ {
696
+ border: 0;
697
+ }
698
+ }
699
+
700
+ p.signature,
701
+ h3.signature
702
+ {
703
+ font-size: 0.9em;
704
+ font-weight: normal;
705
+ font-family: $yard_font_mono;
706
+ padding: 6px 10px;
707
+ margin-top: 18px;
708
+ background: #f2f3ff;
709
+ border: 1px solid #d8d8e5;
710
+ -moz-border-radius: 3px;
711
+ -webkit-border-radius: 3px;
712
+ color: $yard_color_symbol;
713
+
714
+ strong
715
+ {
716
+ color: inherit;;
717
+ }
718
+
719
+ tt
720
+ {
721
+ font-family: inherit;
722
+ }
723
+
724
+ .overload
725
+ {
726
+ display: block;
727
+ }
728
+
729
+ .extras
730
+ {
731
+ font-weight: normal;
732
+ font-family: sans-serif;
733
+ color: #444;
734
+ font-size: 1em;
735
+ }
736
+
737
+ .not_defined_here,
738
+ .aliases
739
+ {
740
+ display: block;
741
+ font-weight: normal;
742
+ font-size: 0.9em;
743
+ font-family: $yard_font_mono;
744
+ margin-top: 0px;
745
+ color: #555;
746
+
747
+ .names
748
+ {
749
+ font-family: $yard_font_mono;
750
+ font-weight: bold;
751
+ color: #000;
752
+ font-size: 1.2em;
753
+ }
754
+ }
755
+ }
756
+
757
+ div.docstring
758
+ {
759
+ div.discussion
760
+ {
761
+
762
+ }
763
+ }
764
+
765
+ div.tags
766
+ {
767
+ margin-bottom: 12px;
768
+
769
+ .tag_title
770
+ {
771
+ font-size: 1em;
772
+ margin-bottom: 0;
773
+ font-weight: bold; }
774
+
775
+ ul
776
+ {
777
+ margin-top: 5px;
778
+ padding-left: 30px;
779
+ list-style: square;
780
+
781
+ li {
782
+ margin-bottom: 3px;
783
+ }
784
+
785
+ .name
786
+ {
787
+ font-family: $yard_font_mono;
788
+ font-weight: bold;
789
+ }
790
+
791
+ .note
792
+ {
793
+ padding: 3px 6px;
794
+ }
795
+
796
+ }
797
+
798
+ .examples
799
+ {
800
+ .tag_title
801
+ {
802
+ margin-bottom: 10px;
803
+ font-weight: bold;
804
+ }
805
+
806
+ .inline p
807
+ {
808
+ padding: 0;
809
+ margin: 0;
810
+ margin-left: 15px;
811
+ font-weight: bold;
812
+ font-size: 0.9em;
813
+ }
814
+ }
815
+
816
+ .overload
817
+ {
818
+ .overload_item
819
+ {
820
+ list-style: none;
821
+ margin-bottom: 25px;
822
+
823
+ .signature
824
+ {
825
+ padding: 2px 8px;
826
+ background: #e5e8ff;
827
+ border: 1px solid #d8d8e5;
828
+ -moz-border-radius: 3px;
829
+ -webkit-border-radius: 3px;
830
+ }
831
+ }
832
+
833
+ .signature
834
+ { margin-left: -15px;
835
+ font-family: monospace;
836
+ display: block;
837
+ font-size: 1.1em;
838
+ }
839
+
840
+ .docstring
841
+ {
842
+ margin-top: 15px;
843
+ }
844
+
845
+ }
846
+
847
+ /* syntax highlighting */
848
+ //.source_code { display: none; padding: 3px 8px; border-left: 8px solid #ddd; margin-top: 5px; }
849
+ //#filecontents pre.code, .docstring pre.code, .source_code pre { font-family: monospace; }
850
+ //#filecontents pre.code, .docstring pre.code { display: block; }
851
+ //.source_code .lines { padding-right: 12px; color: #555; text-align: right; }
852
+
853
+ #filecontents pre.code,
854
+ .docstring pre.code,
855
+ pre.example
856
+ {
857
+ padding: 5px 12px; margin-top: 4px; border: 1px solid #eef; background: #f5f5ff;
858
+ }
859
+
860
+ pre.code
861
+ {
862
+ color: #000;
863
+
864
+ info.file { color: #555; }
865
+
866
+ .val { color: #036A07; }
867
+
868
+ .tstring_content,
869
+ .heredoc_beg,
870
+ .heredoc_end,
871
+ .qwords_beg,
872
+ .qwords_end,
873
+ .tstring,
874
+ .dstring
875
+ {
876
+ color: #036A07;
877
+ }
878
+
879
+ .fid,
880
+ .rubyid_new,
881
+ .rubyid_to_s,
882
+ .rubyid_to_sym,
883
+ .rubyid_to_f,
884
+ .dot + pre.code .id,
885
+ .rubyid_to_i pre.code .rubyid_each
886
+ {
887
+ color: #0085FF;
888
+ }
889
+
890
+ .comment
891
+ {
892
+ color: #0066FF;
893
+ }
894
+
895
+ .const,
896
+ .constant
897
+ {
898
+ color: #585CF6;
899
+ }
900
+
901
+ .label,
902
+ .symbol
903
+ {
904
+ color: #C5060B;
905
+ }
906
+
907
+ .kw,
908
+ .rubyid_require,
909
+ .rubyid_extend,
910
+ .rubyid_include
911
+ {
912
+ color: #0000FF;
913
+ }
914
+
915
+ .ivar
916
+ {
917
+ color: #318495;
918
+ }
919
+
920
+ .gvar,
921
+ .rubyid_backref,
922
+ .rubyid_nth_ref
923
+ {
924
+ color: #6D79DE;
925
+ }
926
+
927
+ .regexp,
928
+ .dregexp
929
+ {
930
+ color: #036A07;
931
+ }
932
+
933
+ a
934
+ {
935
+ border-bottom: 1px dotted #bbf;
936
+ }
937
+
938
+ }
939
+ }
940
+
941
+ table.source_code
942
+ {
943
+ display: none;
944
+ }
945
+
946
+ }