Skip to content

Commit 958f6db

Browse files
committed
editing getting started
Signed-off-by: Vanessa Sochat <[email protected]>
1 parent 45ca7db commit 958f6db

File tree

1 file changed

+30
-46
lines changed

1 file changed

+30
-46
lines changed

_docs/getting-started.md

Lines changed: 30 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,17 @@ tags:
1313

1414

1515
On the right side of any page, you'll notice links to edit the page, or
16-
open an issue. The sections also have permalinks added.
17-
These are to ensure that a user is able to link someone else directly to a section
18-
of interest (Permalink), contribute a fix or suggestion to the documentation itself on GitHub
19-
(Edit this page) or open up an issue that links directly to where the user has
20-
the question. Documentation is hard, and sometimes unclear, and the site
21-
should make it easy to ask a question or suggest a change.
16+
open an issue. This ensures that any time you have a question or want to
17+
suggest or request a change, you can do so immediately and link directly
18+
to the section of interest. The sections on the page also have permalinks so
19+
you can link directly to them.
2220

2321
### Search
2422

2523
The entire site, including posts and documentation, is indexed and then available
26-
for search at the top of the page. Give it a try! The content is rendered
27-
from [this file](https://github.com/vsoch/mkdocs-jekyll/blob/master/search/search_index.json)
28-
into [this json data structure](https://vsoch.github.io/mkdocs-jekyll/search/search_index.json)
29-
that feeds into the search defined in `assets/js/application.js`. If you want to
30-
exclude any file from search, add this to its front end matter:
24+
for search at the top or side of the page. Give it a try! The content is rendered
25+
into window data that is used by lunr.js to generate the search results.
26+
If you want to exclude any file from search, add this to its front end matter:
3127

3228
```
3329
---
@@ -36,7 +32,7 @@ excluded_in_search: true
3632
---
3733
```
3834

39-
The example above is for a css file in the assets folder that is used as a template,
35+
The example above is for a javascript file in the assets folder that is used as a template,
4036
but should not be included in search.
4137

4238
### External Search
@@ -96,15 +92,6 @@ template to do the same based on the path to create a link:
9692
```
9793
The path should be relative to the docs folder.
9894

99-
#### Headers
100-
101-
While this is a personal preference, it's recommended to create nesting
102-
of your docs via markdown sections in each of the files
103-
over creating more files. For example, take a look at the right
104-
side of this page, and you'll see a level represented for each header.
105-
This strategy means that we have fewer overall pages (easier to find content)
106-
that are still browsable easily via search or the table of contents on the right.
107-
10895
### Pages
10996

11097
The `pages` folder uses the same page layout, but is not part of the docs collection.
@@ -117,33 +104,30 @@ Whether you place your page under "pages" or "docs," for those pages that you wa
117104
you should add them to `_data/toc.yml`. If you've defined a `permalink` in the
118105
front end matter, you can use that (e.g., "About" below). If you haven't and
119106
want to link to docs, the url is the path starting with the docs folder.
120-
Here is an example of a flat structure:
121-
122-
```yaml
123-
- title: "Getting Started"
124-
url: "docs/getting-started/"
125-
- title: "About"
126-
url: "about"
127-
- title: "News"
128-
url: "news"
129-
```
130-
131-
And here is an example with nested children (currently active in the example):
107+
Here is an example (currently the active example):
132108

133109
```yaml
134-
- title: "Getting Started"
135-
url: "docs/getting-started"
136-
children:
137-
- title: Features
138-
url: "docs/getting-started#features"
139-
- title: Development
140-
url: "docs/getting-started#development"
141-
- title: Customization
142-
url: "docs/getting-started#customization"
143-
- title: "About"
144-
url: "about"
145-
- title: "News"
146-
url: "news"
110+
- title: Documentation
111+
url: docs
112+
links:
113+
- title: "Getting Started"
114+
url: "docs/getting-started"
115+
children:
116+
- title: Features
117+
url: "docs/getting-started#getting-started"
118+
- title: Development
119+
url: "docs/getting-started#development"
120+
- title: Customization
121+
url: "docs/getting-started#customization"
122+
- title: "Extras"
123+
url: "docs/extras"
124+
children:
125+
- title: Quizzes
126+
url: "docs/extras/example-quiz"
127+
- title: "About"
128+
url: "about"
129+
- title: "News"
130+
url: "news
147131
```
148132
149133
If you want to add an external url for a parent or child, do this:

0 commit comments

Comments
 (0)