-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
task: documentation added for components
- Loading branch information
1 parent
939f679
commit e863e51
Showing
10 changed files
with
74 additions
and
25 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: Anatomy of Doco | ||
index: 0 | ||
--- | ||
|
||
Before going into the details of how to use Doco, let's take a look at the anatomy of a Doco document. | ||
A regular doco site looks like this: | ||
|
||
![Doco Preview](../assets/preview.png "Preview of Doco") | ||
|
||
Which includes the following elements: | ||
|
||
- The top navigation bar | ||
- The sidebar | ||
- The main content | ||
|
||
Each of these contains other components that we will go over in the following sections. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
title: Content Section | ||
index: 3 | ||
--- | ||
|
||
The content section is probably the most important part of the documentation site. It is the place where the content is displayed. Content is converted from markdown to HTML and displayed in the main content section. It looks like this: | ||
|
||
![Content](<../assets/content.png>) | ||
|
||
Content can include: | ||
- Links | ||
- Images | ||
- Videos | ||
|
||
And is formatted by doco accordingly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
index: 2 | ||
--- | ||
|
||
The sidebar contains three elements: | ||
|
||
1. The search component | ||
2. The quick links | ||
3. The navigation | ||
|
||
![Side Bar](../assets/sidebar.png "Side Bar") | ||
|
||
Let's go over each of these: | ||
|
||
##### Search component | ||
|
||
The search component is composed of a button (on top of the sidebar) that triggers a search box. The search box looks in the entire documentation site and display the results in its modal. | ||
|
||
![Search Component](../assets/search.png "Search Component") | ||
|
||
The search bar can be triggered by clicking on the search button or by pressing `Ctrl + K` on the keyboard. | ||
|
||
##### Quick links | ||
|
||
The quick links are a list of links that are displayed on the sidebar. They are generated from the `quick_links` field in the root `_meta.md` file. It is a list of links that can be used to link to internal resources. Some examples could be: | ||
|
||
- Link to the getting started page (`/getting_started.html`) | ||
- Link to the installation page (`/installation.html`) | ||
|
||
##### Navigation | ||
|
||
The navigation is a list of links to the pages in your site. It is generated automatically from the pages in your site. It creates **one level** of navigation based on folders and pages inside. Files starting with underscore (p.e. _meta.md) are ignored by the navigation builder. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/getting_started/getting_started.md → docs/getting_started.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters