Answers.Body: <p>There is a <code>Documentation</code> structured section with three entry types.</p>
  
  <ol>
  <li><code>Heading Only</code></li>
  <li><code>Page</code></li>
  <li><code>Link</code></li>
  </ol>
  
  <p>The <code>Getting Started</code>, <code>Core Concepts</code>, etc. headers are the <code>Heading Only</code> entry type. The only field is has is a title.</p>
  
  <p>The majority of the docs are using the <code>Page</code> entry type.</p>
  
  <p>The <code>Link</code> entry type is used for the entries like <code>Full Templating Reference</code> and <code>Plugin Development</code> that open into a new window, and those are their own separate structured sections.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-20T08:10:20.750Z
Answers.Text: I'm guessing that `Link` entry type has a checkbox to select whether or not you're linking to an external page. Is this how links such as "Installing and Updating", which links within the same structure, look different than external links like "Full Templating Reference"?
Answers.UserDisplayName: carlcs
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-20T08:16:19.720Z
Answers.Text: Or are you doing something more fancy to do those "sub-headings"?  `getDescendants(1).first().url`?
Answers.UserDisplayName: carlcs
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-20T13:21:19.390Z
Answers.Text: @RobHodges I think this might be the twig code for that side nav too https://gist.github.com/brandonkelly/9362241
Answers.UserDisplayName: Mike Pepper
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-20T15:22:12.630Z
Answers.Text: @carlcs The Link entry type has a `Title` and a `Link Url` (i.e. 'docs/templating'). See the gist that @MikePepper linked to for the template code to pull it out.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-26T10:28:49.837Z
Answers.Text: Hmm, can I just ask, in the snippet @MikePepper sent, does anyone know what `selEntry` is?
Answers.UserDisplayName: Rob Hodges
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-26T10:49:16.090Z
Answers.Text: I think `selEntry` is the entry that's being viewed at the time, so the nav would be included with `{% include "nav.html" with { selEntry: entry } %}`
Answers.UserDisplayName: Mike Pepper
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-26T10:56:11.210Z
Answers.Text: Ah, I've got the nav in my master layout (It's a simple site). Just using `entry` on this line e.g. `{% set entryParent = entry.getParent() %}` wouldn't work because it's possible to have a page without an entry?
Answers.UserDisplayName: Rob Hodges
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-28T04:39:47.133Z
Answers.Text: @BradBell - are _Installing and Updating_ and _Configuration_ of the Link entry type? If so, how do you indicate whether the link is internal or external, like _Full Templating Reference?_ If not, how do those entries not have their own page content?
Answers.UserDisplayName: Philip Jones
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-20T03:20:30.597Z
Answers.LastActivityDate: 2015-03-20T03:20:30.597Z
Answers.UserDisplayName: Brad Bell
Body: <p>The <a href="http://buildwithcraft.com/docs/sections-and-entries#section-types" rel="noreferrer">Craft documentation</a> on Section Types state that they themselves are created using a Structure. Can someone explain the method they used here?</p>
  
  <p>What I'd really like to see is the Twig code for the left hand navigation. Are there multiple Structures here (to account for the headings) and if not, how are the headings set?</p>
  
  <p>Thanks!</p>
  
Tags: <templating><structure><navigation><documentation>
Title: How are the Craft docs created?
ThreadText: # How are the Craft docs created?
  
  (Asked by: username_0 on 2015-03-19)
  
  The [Craft documentation](http://buildwithcraft.com/docs/sections-and-entries#section-types) on Section Types state that they themselves are created using a Structure. Can someone explain the method they used here?
  
  What I'd really like to see is the Twig code for the left hand navigation. Are there multiple Structures here (to account for the headings) and if not, how are the headings set?
  
  Thanks!
  
  **Tags:** templating, structure, navigation, documentation
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-03-20. Score: 6 | Accepted answer
  
  There is a `Documentation` structured section with three entry types.
  
  1. `Heading Only`
  2. `Page`
  3. `Link`
  
  The `Getting Started`, `Core Concepts`, etc. headers are the `Heading Only` entry type. The only field is has is a title.
  
  The majority of the docs are using the `Page` entry type.
  
  The `Link` entry type is used for the entries like `Full Templating Reference` and `Plugin Development` that open into a new window, and those are their own separate structured sections.
  
  > **Comments:**
  > **username_2**: I'm guessing that `Link` entry type has a checkbox to select whether or not you're linking to an external page. Is this how links such as "Installing and Updating", which links within the same structure, look different than external links like "Full Templating Reference"?  
  > **username_2**: Or are you doing something more fancy to do those "sub-headings"?  `getDescendants(1).first().url`?  
  > **username_3**: @username_0 I think this might be the twig code for that side nav too https://gist.github.com/brandonkelly/9362241  
  > **username_1**: @username_2 The Link entry type has a `Title` and a `Link Url` (i.e. 'docs/templating'). See the gist that @username_3 linked to for the template code to pull it out.  
  > **username_0**: Hmm, can I just ask, in the snippet @username_3 sent, does anyone know what `selEntry` is?  
  > **username_3**: I think `selEntry` is the entry that's being viewed at the time, so the nav would be included with `{% include "nav.html" with { selEntry: entry } %}`  
  > **username_0**: Ah, I've got the nav in my master layout (It's a simple site). Just using `entry` on this line e.g. `{% set entryParent = entry.getParent() %}` wouldn't work because it's possible to have a page without an entry?  
  > **username_4**: @username_1 - are _Installing and Updating_ and _Configuration_ of the Link entry type? If so, how do you indicate whether the link is internal or external, like _Full Templating Reference?_ If not, how do those entries not have their own page content?  
  
  ---
  
  