--- title: Some Apple Features blurb: Let’s demonstrate some of Apple’s built-in features. order: 10 --- <%= md_links %> <%= md_images %> <%= current_page.data.blurb %> - It looks like blurbs aren’t really user visible, but they are captured in the `navigation.json` file, so should be provided nonetheless. - Because this page is part of the “Sample Group Number One” (having the title “First Sample Group”), Apple’s help system places this as a chapter heading at the top of this page. - Note that this page number is defined by frontmatter, and _not_ by prefixing the file name. Images ------ Apple’s images are always in a `figure` tag. Middlemac will automatically provide framesets for these. <%= image_tag 'icon_32x32' %> Asides ------ “Asides” are loaded via AJAX from another file into a popup element on the current page. In this sample project any asides have been put into the `asides` directory, but that's just for organization and not a requirement. So, what is <%= link_to "an aside", "aside_description.html", :aside => true %>? Activate the specially decorated link to find out. Tasks ----- Apple currently uses “tasks” in many of its modern Help Books, and these are relatively simply to implement with the `helpbook_task` helper. Single tasks are always displayed in the expanded state, but when multiple tasks are on the same page, like here, they have working disclosure triangles to reveal them. Make sure you provide unique id’s to the tasks, because Apple’s help system keeps track of which one are revealed or hidden in between page visits. <% helpbook_task "task1", "Expand this task to see what content it contains", :markdown => true do %> <%= lorem.paragraphs 2 %> <% end %> <% helpbook_task "task2", "This task indicates the answer to the question of life" do %> The generally accepted answer to this query is **forty-two**. <%= lorem.paragraphs 2 %> <% end %> <% helpbook_task "task3", "Perform this third task" do %> <%= lorem.paragraphs 1 %> ![Icon loaded with the Markdown reference format][icon_256x256] <%= lorem.paragraphs 1 %> <% end %> Tips ----
Tip You can do lots of neat things like use Apple’s tip style, and it’s easy with the plethora of helpers. This tip uses the official Apple way to make a tip, but you have to use HTML to conform to Apple’s `<div>` and `<p>` structure.