Gift Egwuenu PRO
I’m a Software Developer based in Lagos, Nigeria and I'm passionate about making the web accessible to everyone and the open-source community.
CRAFTING RICH DOCUMENTATION WITH VUEPRESS
HI
A lil bit about me..
Software Developer @Andela
Open Source Contributor @okkurLabs
@lauragift21
Static Site Generators are a new, hybrid approach to web development that allows you to build a powerful, website locally on your computer but pre-builds the site into static files for deployment.
Popularity Trend from 2014 - Present
No server
No complex functionality
Javascript API's Markup
Vue Router
Webpack
Vue
Building Blocks
// .vuepress/config.js
module.exports = {
themeConfig: {
nav: [
{ text: 'Home', link: '/' },
{ text: 'Guide', link: '/guide/' },
{ text: 'External', link: 'https://google.com' },
]
}
}THEMING
// .vuepress/config.js
module.exports = {
themeConfig: {
algolia: {
apiKey: '1eb37de6308abdccf9b760ddacb418b4',
indexName: 'qwerty'
}
}
}Navbar configuration
Custom Algolia Search
SHOWCASE
Getting Started
// install vuepress globally
$ yarn global add vuepress
# create a markdown file
echo '# Hello VuePress' > README.md
# start writing
vuepress dev
# build to static files
vuepress build.
├─ docs
│ ├─ README.md
│ └─ .vuepress
│ └─ config.js
└─ package.jsonProject Structure
Deployment
// package.json
{
"scripts": {
"doc:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
}
}REPO
DEMO
@lauragift21 on twitter
Slides:
bit.ly/vuepress
Questions??
By Gift Egwuenu
This talk will be focused on the problems with documenting software and how you can leverage Vuepress as a solution for writing rich documentation. You’ll also learn the features of Vuepress and how it differs from other static site generators.
I’m a Software Developer based in Lagos, Nigeria and I'm passionate about making the web accessible to everyone and the open-source community.