VuePress: Documentation Made Easy

A presentation at VueConf TO in November 2018 in Toronto, ON, Canada by Ben Hong

Slide 1

Slide 1

VUEPRESS DOCUMENTATION MADE EASY Ben Hong @bencodezen

Slide 2

Slide 2

BEN HONG Senior Frontend Engineer @ Meltano in GitLab @bencodezen

Slide 3

Slide 3

Slide 4

Slide 4

VueDC https://www.vuedc.io BEN HONG Senior Frontend Engineer @ Meltano in GitLab @bencodezen VueMeetups https://www.vuemeetups.org

Slide 5

Slide 5

BEFORE WE GET STARTED… SLIDES WILL BE AVAILABLE ONLINE https://www.twitter.com/bencodezen FOR THE SOCIAL MEDIA FOLKS @bencodezen - #VuePress #VueConfTO

Slide 6

Slide 6

Slide 7

Slide 7

(╯°□°)╯︵ ┻━┻)

Slide 8

Slide 8

Slide 9

Slide 9

Slide 10

Slide 10

Yeah. I’m gonna need you to document that in Confluence…

Slide 11

Slide 11

So tell me more about this VuePress thing…

Slide 12

Slide 12

Slide 13

Slide 13

Slide 14

Slide 14

VUEPRESS

Slide 15

Slide 15

“ VuePress is a static site generator with a Vue powered theming system that comes with a default theme optimized for technical documentation.

Slide 16

Slide 16

Slide 17

Slide 17

COOL MARKDOWN EXTENSIONS: YAML FRONT MATTER README.md http://localhost:8080/ --title: Write Docs Like a Pro lang: en-US ——Writing docs can be hard, but with VuePress it’s so much more fun! Writing docs can be hard, but with VuePress it’s so much more fun!

Slide 18

Slide 18

COOL MARKDOWN EXTENSIONS: YAML FRONT MATTER README.md ——{ "title": "Write Docs Like a Pro", "lang": "en-US" } ——Writing docs can be hard, but with VuePress it’s so much more fun! http://localhost:8080/ Writing docs can be hard, but with VuePress it’s so much more fun!

Slide 19

Slide 19

COOL MARKDOWN EXTENSIONS: EMOJIS README.md http://localhost:8080/ :fire: :fire: :fire: :fire: :fire: :fire: :fire: :fire: :fire: :fire: :fire: :fire: :fire: :fire: :fire: :fire: :cat: Everything is fine... 🔥🔥🔥🔥🔥🔥🔥🔥 :fire: :fire: :fire: :fire: :fire: :fire: :fire: :fire: 🔥🔥🔥🔥🔥🔥🔥🔥 :fire: :fire: :fire: :fire: :fire: :fire: :fire: :fire: 🐱 Everything is fine... 🔥🔥🔥🔥🔥🔥🔥🔥 🔥🔥🔥🔥🔥🔥🔥🔥

Slide 20

Slide 20

COOL MARKDOWN EXTENSIONS: SYNTAX HIGHLIGHTING README.md js export default { data () { return { msg: 'Highlighted!' } } }

Slide 21

Slide 21

README.md js export default { data () { return { msg: 'Highlighted!' } } }

Slide 22

Slide 22

http://localhost:8080/

Slide 23

Slide 23

README.md js{4} export default { data () { return { msg: 'Highlighted!' } } }

Slide 24

Slide 24

http://localhost:8080/

Slide 25

Slide 25

COOL MARKDOWN EXTENSIONS: CUSTOM CONTAINERS README.md http://localhost:8080/ ::: tip This is a tip ::: ::: warning This is a warning ::: ::: danger This is a dangerous warning :::

Slide 26

Slide 26

README.md ::: tip This is a tip ::: ::: warning This is a warning ::: ::: danger This is a dangerous warning :::

Slide 27

Slide 27

http://localhost:8080/

Slide 28

Slide 28

COOL MARKDOWN EXTENSIONS: CUSTOM CONTAINERS README.md http://localhost:8080/ ::: tip This is a tip ::: ::: warning This is a warning ::: ::: danger This is a dangerous warning :::

Slide 29

Slide 29

README.md ::: tip Bringing it all together! We can write normal text and even include other extensions in this! js{5} const list = [1, 2, 3] list.map(item => { // This is so cool console.log(item ** 2) }) :rocket: :rocket: :rocket: :::

Slide 30

Slide 30

http://localhost:8080/

Slide 31

Slide 31

VuePress Official Docs: https://vuepress.vuejs.org/

Slide 32

Slide 32

Slide 33

Slide 33

“ VuePress is a static site generator with a Vue powered theming system that comes with a default theme optimized for technical documentation.

Slide 34

Slide 34

“ VuePress is a static site generator with a Vue powered theming system that comes with a default theme optimized for technical documentation.

Slide 35

Slide 35

VUE MAGIC: INTERPOLATION README.md # VuePress in Toronto http://localhost:8080/ {{ "Happy Friday!".toUpperCase() }} VuePress in Toronto :wave: :wave: :wave: :wave: :wave: :wave: HAPPY FRIDAY! So glad to be here at VueConf Toronto with over {{ 200 + 200 }} people! 👋👋👋👋👋👋 Things I need to try: 1. Tim Horton’s 1. Poutine 1. All the maple flavored things! :maple: So glad to be here at VueConf Toronto with with over 400 people! Things I need to try: 1. Tim Horton’s 2. Poutine 3. All the maple flavored things! 🍁

Slide 36

Slide 36

README.md

VuePress in Toronto {{ "Happy Friday!".toUpperCase() }} :wave: :wave: :wave: :wave: :wave: :wave: So glad to be here at VueConf Toronto with over {{ 200 + 200 }} people! Things I need to try: 1. Tim Horton’s 1. Poutine 1. All the maple flavored things! :maple:

Slide 37

Slide 37

README.md --city: Toronto --# VuePress in {{ $page.frontmatter.city }} {{ "Happy Friday!".toUpperCase() }} :wave: :wave: :wave: :wave: :wave: :wave: So glad to be here at VueConf {{ $page.frontmatter.city }} with over {{ 200 + 200 }} people! Things I need to try: 1. Tim Horton’s 1. Poutine 1. All the maple flavored things! :maple:

Slide 38

Slide 38

Slide 39

Slide 39

Slide 40

Slide 40

YOU CAN USE VUE COMPONENTS IN YOUR MARKDOWN

Slide 41

Slide 41

Slide 42

Slide 42

http://localhost:8080/

Slide 43

Slide 43

Slide 44

Slide 44

Slide 45

Slide 45

HOW DO I GET STARTED? VuePress Official Docs: https://vuepress.vuejs.org/

Slide 46

Slide 46

DOCUMENT ALL THE THINGS

Slide 47

Slide 47

THANKS EVERYONE! @BENCODEZEN