Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit e474be6

Browse files
doc: add markdown documentation
1 parent b342050 commit e474be6

File tree

2 files changed

+81
-3
lines changed

2 files changed

+81
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DeckDeckGo
22

3-
Create a lightweight presentation using HTML and Web Components.
3+
Create a lightweight presentation using Web Components.
44

55
[DeckDeckGo] is build with [Stencil](https://stenciljs.com) and could be use in any modern framework or even without any.
66

@@ -15,6 +15,7 @@ Create a lightweight presentation using HTML and Web Components.
1515
- [Installing DeckDeckGo in any projects](#installing-deckdeckgo-in-any-projects)
1616
- [Editing](#editing)
1717
- [Detailed documentation](doc/slides/slides.md)
18+
- [Markdown](doc/markdown/markdown.md)
1819
- [Navigation](#navigation)
1920
- [Extra features](#extra-features)
2021
- [Lazy loading](#lazy-loading)
@@ -25,7 +26,7 @@ Create a lightweight presentation using HTML and Web Components.
2526

2627
## Features
2728

28-
* ✏️ Create **without effort** your presentation using HTML and CSS
29+
* ✏️ Create **without effort** your presentation using Web Components
2930

3031
* 📰 Use predefined **templates**
3132

@@ -59,7 +60,7 @@ To get started and **to create your presentation**, run the following command an
5960
npm init deckdeckgo
6061
```
6162

62-
Once your presentation created, go to your new project's folder and start editing `src/index.html` to prepare your slides and content for your talk 😉
63+
Once your presentation created, go to your new project's folder and start editing your slides and content for your talk 😉
6364

6465
## Installing DeckDeckGo in any projects
6566

@@ -88,6 +89,10 @@ The deck should be declared using the tag `<deckgo-deck/>` and each slide should
8889

8990
The 👉 [extended documentation](doc/slides/slides.md) 👈 displays all templates and options available for each slides.
9091

92+
### Markdown
93+
94+
Per default, [DeckDeckGo]'s presentations are edited using HTML and are Web Components, that's why the documentation and examples are provided in HTML. But if you are using the [starter kit](https://github.com/fluster/deckdeckgo-starter) and are editing your talk with Markdown, you could have a look to the [Markdown documentation](doc/markdown/markdown.md) to get some examples.
95+
9196
[DeckDeckGo] also offers a couple of components which could be used in almost every templates, these are documented in a separate [chapter](doc/components/components.md) of the documentation.
9297

9398
## Navigation

doc/markdown/markdown.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# DeckDeckGo - Markdown
2+
3+
This documentation has for goal to introduce you briefly on how is it working out if you are using the [starter kit](https://github.com/fluster/deckdeckgo-starter) and are editing your talk with Markdown.
4+
5+
## Table of contents
6+
7+
- [Introduction](#introduction)
8+
- [Editing](#editing)
9+
- [Example](#example)
10+
- [Attributes](#attributes)
11+
12+
## Introduction
13+
14+
It's pretty simple, the goal of the editing with Markdown is to offer the same abilities as if you would have while editing your talk with HTML.
15+
16+
When you edit your talk with Markdown, furthermore than the set of common supported tags, the [DeckDeckGo Webpack Markdown Plugin](https://github.com/fluster/deckdeckgo-webpack-markdown-plugin) extend these by adding the support of the different [DeckDeckGo] slides as documented in the 👉 [extended documentation](doc/slides/slides.md) 👈.
17+
18+
Your Markdown code will, through the help of the plugin, be compiled and injected in the `index.html` distribution file at build time. Doing so, your [DeckDeckGo] presentation will remain SEO friendly even without server side rendering.
19+
20+
## Editing
21+
22+
As describe above, furthermore than the Markdown tags, you could use extended tags in order to specify which types of slides you would like to use. To do so, use the separator `---` followed by a shortened version of the template's name, like for example `--- title` for `</deckgo-slide-title>`.
23+
24+
Furthermore the plugin takes care of injecting the content you would provide in the right slots.
25+
26+
### Example
27+
28+
The following `</deckgo-slide-title>` slide:
29+
30+
```
31+
--- title
32+
# My presentation title
33+
34+
Hello World 🚀
35+
```
36+
37+
would be parsed into:
38+
39+
```
40+
<deckgo-slide-title>
41+
<h1 slot="title">My presentation title</h1>
42+
<p slot="content">
43+
Hello World 🚀
44+
</p>
45+
</deckgo-slide-title>
46+
```
47+
48+
### Attributes
49+
50+
As some templates needs attributes, you would also be able to specify them in Markdown.
51+
52+
For example the `</deckgo-slide-gif>` slide:
53+
54+
```
55+
--- gif src="https://media.giphy.com/media/xUA7baWfTjfHGLZc3e/giphy.gif" alt="My gif" fullscreen="true"
56+
# My title
57+
58+
# Hey
59+
60+
### It's cool gif
61+
```
62+
63+
would be parsed into:
64+
65+
```
66+
<deckgo-slide-gif src="https://media.giphy.com/media/xUA7baWfTjfHGLZc3e/giphy.gif" alt="My gif" fullscreen="true">
67+
<h1 slot="title">My title</h1>
68+
<h1 slot="header">Hey</h1>
69+
<h2 slot="footer">It's a cool gif</h2>
70+
</deckgo-slide-gif>
71+
```
72+
73+
[DeckDeckGo]: https://deckdeckgo.com

0 commit comments

Comments
 (0)