Merge pull request #1047 from SISheogorath/docs/slideMode
Add documentation for document type
This commit is contained in:
		
						commit
						fc49326b94
					
				@ -72,9 +72,11 @@ Notes can be embedded as follows:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## [Slide Mode](./slide-example):
 | 
					## [Slide Mode](./slide-example):
 | 
				
			||||||
You can use a special syntax to organize your note into slides.
 | 
					You can use a special syntax to organize your note into slides.
 | 
				
			||||||
After that, you can use the **Slide Mode** <i class="fa fa-tv"></i> to make a presentation.
 | 
					After that, you can use the **[Slide Mode](./slide-example)** <i class="fa fa-tv"></i> to make a presentation.
 | 
				
			||||||
Visit the above link for details.
 | 
					Visit the above link for details.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					To switch the editor into slide mode, set the [document type](./yaml-metadata#type) to `slide`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
View
 | 
					View
 | 
				
			||||||
===
 | 
					===
 | 
				
			||||||
## Table of Contents:
 | 
					## Table of Contents:
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,5 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
 | 
					type: slide
 | 
				
			||||||
slideOptions:
 | 
					slideOptions:
 | 
				
			||||||
  transition: slide
 | 
					  transition: slide
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
				
			|||||||
@ -25,7 +25,7 @@ This option will set the note title which prior than content title.
 | 
				
			|||||||
> default: not set
 | 
					> default: not set
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Example**
 | 
					**Example**
 | 
				
			||||||
```xml
 | 
					```yml
 | 
				
			||||||
title: meta title
 | 
					title: meta title
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -36,7 +36,7 @@ This option will set the note description.
 | 
				
			|||||||
> default: not set
 | 
					> default: not set
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Example**
 | 
					**Example**
 | 
				
			||||||
```xml
 | 
					```yml
 | 
				
			||||||
description: meta description
 | 
					description: meta description
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -47,7 +47,7 @@ This option will set the tags which prior than content tags.
 | 
				
			|||||||
> default: not set
 | 
					> default: not set
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Example**
 | 
					**Example**
 | 
				
			||||||
```xml
 | 
					```yml
 | 
				
			||||||
tags: features, cool, updated
 | 
					tags: features, cool, updated
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -62,7 +62,7 @@ So you can prevent any search engine index your note by set `noindex, nofollow`.
 | 
				
			|||||||
> default: not set
 | 
					> default: not set
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Example**
 | 
					**Example**
 | 
				
			||||||
```xml
 | 
					```yml
 | 
				
			||||||
robots: noindex, nofollow
 | 
					robots: noindex, nofollow
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -75,13 +75,13 @@ https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
 | 
				
			|||||||
> default: not set (which will be en)
 | 
					> default: not set (which will be en)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Example**
 | 
					**Example**
 | 
				
			||||||
```xml
 | 
					```yml
 | 
				
			||||||
langs: ja-jp
 | 
					langs: ja-jp
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dir
 | 
					dir
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
This option provide to describe the direction of the text in this note.
 | 
					This option specifies the direction of the text in this note.
 | 
				
			||||||
You can only use whether `rtl` or `ltr`.
 | 
					You can only use whether `rtl` or `ltr`.
 | 
				
			||||||
Look more at here:
 | 
					Look more at here:
 | 
				
			||||||
http://www.w3.org/International/questions/qa-html-dir
 | 
					http://www.w3.org/International/questions/qa-html-dir
 | 
				
			||||||
@ -89,7 +89,7 @@ http://www.w3.org/International/questions/qa-html-dir
 | 
				
			|||||||
> default: not set (which will be ltr)
 | 
					> default: not set (which will be ltr)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Example**
 | 
					**Example**
 | 
				
			||||||
```xml
 | 
					```yml
 | 
				
			||||||
dir: rtl
 | 
					dir: rtl
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -102,35 +102,46 @@ You can only use whether `true` or `false`.
 | 
				
			|||||||
> default: not set (which will be true)
 | 
					> default: not set (which will be true)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Example**
 | 
					**Example**
 | 
				
			||||||
```xml
 | 
					```yml
 | 
				
			||||||
breaks: false
 | 
					breaks: false
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
GA
 | 
					GA
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
This option allow you to enable Google Analytics with your ID.
 | 
					This option allows you to enable Google Analytics with your ID.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
> default: not set (which won't enable)
 | 
					> default: not set (which won't enable)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Example**
 | 
					**Example**
 | 
				
			||||||
```xml
 | 
					```yml
 | 
				
			||||||
GA: UA-12345667-8
 | 
					GA: UA-12345667-8
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
disqus
 | 
					disqus
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
This option allow you to enable Disqus with your shortname.
 | 
					This option allows you to enable Disqus with your shortname.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
> default: not set (which won't enable)
 | 
					> default: not set (which won't enable)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Example**
 | 
					**Example**
 | 
				
			||||||
```xml
 | 
					```yml
 | 
				
			||||||
disqus: codimd
 | 
					disqus: codimd
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					This option allows you to switch the document view to the slide preview, to simplify live editing of presentations.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					> default: not set
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					**Example:**
 | 
				
			||||||
 | 
					```yml
 | 
				
			||||||
 | 
					type: slide
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
slideOptions
 | 
					slideOptions
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
This option allow you provide custom options to slide mode.
 | 
					This option allows you to provide custom options to slide mode.
 | 
				
			||||||
Please below document for more details:
 | 
					Please below document for more details:
 | 
				
			||||||
https://github.com/hakimel/reveal.js/#configuration
 | 
					https://github.com/hakimel/reveal.js/#configuration
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -142,7 +153,7 @@ https://github.com/hakimel/reveal.js/tree/master/css/theme
 | 
				
			|||||||
> default: not set (which use default slide options)
 | 
					> default: not set (which use default slide options)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Example**
 | 
					**Example**
 | 
				
			||||||
```xml
 | 
					```yml
 | 
				
			||||||
slideOptions:
 | 
					slideOptions:
 | 
				
			||||||
  transition: fade
 | 
					  transition: fade
 | 
				
			||||||
  theme: white
 | 
					  theme: white
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user