By Ben Hong
Senior UI Developer @ POLITICO
Documentation can be difficult, but it is the key to any project's long term success.
“
VuePress is a static site generator with a Vue-powered theming system that comes with a default theme optimized for technical documentation.
“
1) npm install / npm run dev
3) Git
2) Markdown syntax
4) . . . That's it
VuePress is a static site generator with a Vue-powered theming system that comes with a default theme optimized for technical documentation.
“
VuePress is a static site generator with a Vue-powered theming system that comes with a default theme optimized for technical documentation.
“
Vue is a progressive framework for building user interfaces. Unlike other monolithic frameworks, Vue is designed from the ground up to be incrementally adoptable.
“
<div id="app">
<h1>Hello {{ conference }}</h1>
</div>
Hello DevFestDC!
<script>
var app = new Vue({
el: '#app',
data() {
return {
conference: 'DevFestDC!'
}
}
})
</script>
<div id="app">
<h1>Front-End Trifecta</h1>
<ul>
<li v-for="language in languages">
{{ language }}
</li>
</ul>
</div>
Front-End Trifecta
<script>
var app = new Vue({
el: '#app',
data() {
return {
languages: [
'HTML',
'CSS',
'JavaScript'
]
}
}
})
</script>
<template>
<div>
<h2 class="title">Single File Components</h2>
<p>They are {{ adjective }}!</p>
</div>
</template>
<script>
export default {
name: 'SimpleComponent',
data() {
return {
adjective: 'game changing'
}
}
}
</script>
<style>
.title {
font-color: #BADA55;
}
</style>
<template>
<div>
<h1>Single File Components In Action!</h1>
<SimpleComponent />
<p>And we have some text here</p>
<SimpleComponent />
</div>
</template>
<script>
import SimpleComponent from './components/SimpleComponent'
export default {
name: 'App',
components: {
SimpleComponent
}
}
</script>
Vue is the most
compassionate framework
in the market right now because it allows you to choose what's best for you.
“
VuePress is a static site generator with a Vue-powered theming system that comes with a default theme optimized for technical documentation.
“