You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
summary: "You can insert notes, tips, warnings, and important alerts in your content."
43
43
sidebar: mydoc_sidebar
44
-
permalink: mydoc_alerts
44
+
permalink: mydoc_alerts.html
45
45
---
46
46
```
47
47
@@ -58,7 +58,7 @@ The following table describes each of the frontmatter that you can use with this
58
58
| **keywords** | Optional | Synonyms and other keywords for the page. This information gets stuffed into the page's metadata to increase SEO. The user won't see the keywords, but if you search for one of the keywords, it will be picked up by the search engine. |
59
59
| **last_updated** | Optional | The date the page was last updated. This information could helpful for readers trying to evaluate how current and authoritative information is. If included, the last_updated date appears in the footer of the page in rather small font.|
60
60
| **summary** | Optional | A 1-2 word sentence summarizing the content on the page. This gets formatted into the summary section in the page layout. Adding summaries is a key way to make your content more scannable by users (check out [Jakob Nielsen's site](http://www.nngroup.com/articles/corporate-blogs-front-page-structure/) for a great example of page summaries.) The only drawback with summaries is that you can't use variables in them. |
61
-
| **permalink**| Required | Make the permalink match the file name for the sake of simplicity. You specify the permalink you want for the page, and the \_site outputwill put the page into the root directory when you publish. Permalink names don't have to match your file names, but it might be easier to keep them in sync. If you don't use permalinks, Jekyll automatically uses the file name and folder path as the link.|
61
+
| **permalink**| Required | The permalink *must* match the filename in order for automated links to work. Additionally, you must include the ".html" in the filename. Do not put forward slashes around the permalink (this makes Jekyll put the file inside a folder in the output). When Jekyll builds the site, it will put the page into the root directory rather than leaving it in a subdirectory or putting it inside a folder and naming the file index.html. Having all files flattened in the root directory is essential for relative linking to work and for all paths to JS and CSS files to be valid. |
62
62
| **datatable** | Optional | 'true'. If you add `datatable: true` in the frontmatter, scripts for the [jQuery Datatables plugin](https://www.datatables.net/) get included on the page. You can see the scripts that conditionally appear by looking in the \_layouts/default.html page. |
63
63
| toc | Optional | If you specify `toc: false` in the frontmatter, the page won't have the table of contents that appears below the title. The toc refers to the list of jump links below the page title, not the sidebar navigation. You probably want to hide the TOC on the homepage and product landing pages.|
64
64
@@ -74,30 +74,22 @@ If you add `published: false` in the frontmatter, your page won't be published.
74
74
75
75
Pages can be either Markdown or HTML format (specified through either an .md or .html file extension).
76
76
77
-
If you use Markdown, you can also include HTML formatting where needed. But if you're format is HTML, you must add a `markdown="1"` attribute to the element:
77
+
If you use Markdown, you can also include HTML formatting where needed. But if you're format is HTML, you must add a `markdown="1"` attribute to the element in order to use Markdown inside that HTML element:
78
78
79
79
```
80
80
<div markdown="1">This is a [link](http://exmaple.com).</div>
81
81
```
82
82
83
83
For your Markdown files, note that a space or two indent will set text off as code or blocks, so avoid spacing indents unless intentional.
84
84
85
-
If you have a lot of HTML, as long as the top and bottom tags of the HTML are flesh left in a Markdown file, all the tags inside those bookend HTML tags will render as HTML, regardless of their indentation.
85
+
If you have a lot of HTML, as long as the top and bottom tags of the HTML are flush left in a Markdown file, all the tags inside those bookend HTML tags will render as HTML, regardless of their indentation. (This can be especially useful for tables.)
86
86
87
87
## Where to save pages
88
88
89
89
You can store your pages in any folder structures you want, with any level of folder nesting. The site output will pull all of those pages out of their folders and put them into the root directory. Check out the \_site folder, which is where Jekyll is generated, to see the difference between your project's structure and the resulting site output.
90
90
91
91
The listing of all pages in the root directory is what allows the relative linking and offline viewing of the site to work.
92
92
93
-
## Site suffixes
94
-
95
-
By default, URLs won't show the ".html" in the page name. However, if you want this, add the following in your configuration file:
96
-
97
-
```
98
-
suffix: .html
99
-
```
100
-
101
93
## Page names
102
94
103
95
I recommend prefixing your page names with the product, such as "mydoc_pages" instead of just "pages." This way if you have other products that also have topics with generic names such as "pages," there won't be naming conflicts.
@@ -126,22 +118,24 @@ By default, a TOC appears at the top of your pages and posts. If you don't want
126
118
127
119
The mini-TOC requires you to use the `##` Markdown syntax for headings. If you use `<h2>` elements, you must add an ID attribute for the heading element in order for it to appear in the mini-TOC (for example, `<h2 id="mysampleid">Heading</h2>`.
128
120
129
-
130
121
## Headings
131
122
132
-
Use pound signs before the heading title to designate the level. Note that kramdown requires headings to have one space before and after the heading.
123
+
Use pound signs before the heading title to designate the level. Note that kramdown requires headings to have one space before and after the heading. Without this space above and below, the heading won't render into HTML.
133
124
134
125
```
135
126
## Second-level heading
136
127
```
137
128
129
+
**Result:**
130
+
138
131
## Second-level heading
139
132
140
133
-----
141
134
142
135
```
143
136
### Third-level heading
144
137
```
138
+
**Result:**
145
139
146
140
### Third-level heading
147
141
@@ -151,6 +145,8 @@ Use pound signs before the heading title to designate the level. Note that kramd
151
145
#### Fourth-level heading
152
146
```
153
147
148
+
**Result:**
149
+
154
150
#### Fourth-level heading
155
151
156
152
## Headings with ID Tags {#someIdTag}
@@ -171,7 +167,7 @@ Then you can reference it with a link like this on the same page:
171
167
172
168
[Some link](#someIdTag)
173
169
174
-
For details about linking to headings on pages using automated links, see [Automated links to headings on pages][mydoc_hyperlinks.html#bookmarklinks].
170
+
For details about linking to headings on different pages, see [Automated links to headings on pages][mydoc_hyperlinks.html#bookmarklinks].
0 commit comments