Support Online
Skip to main content

Modern Documentation System Setup with VuePress (Vue.js)

What Will You Learn in This Guide?

This guide teaches you how to set up a modern documentation system using VuePress.
You learn how to enrich Markdown files with Vue components.
You create a structure that is SEO compatible, fast and easy to maintain.

Technical Summary

  • Subject: Documentation site with VuePress
  • Problem: Heavy documentation solutions for small projects
  • Solution: Vue based static site generation
  • Steps: Setup → Pages → Components → Theme and style

What is VuePress?

VuePress is a static site generator based on Vue.js.
Converts Markdown files to HTML pages.
Each Markdown file works like a Vue template.

Advantages:

  • High speed
  • SEO compatibility
  • Safe structure
  • Easy maintenance

1️⃣ Project Setup

mkdir genixnode-docs
cd genixnode-docs
npm init --yes
npm install vuepress@1.8.2 --save-dev
  • These steps start the VuePress project.

package.json Script Settings


"scripts": {
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
}
  • Development and production commands are defined.

2️⃣ Creating a Home Page


mkdir docs
md

home: true actionText: Try Component actionLink: /sayac/ features:

  • title: Vue Integration details: Live Vue components are added into the document.
  • title: Markdown Power details: Content is written simply and readably. footer: Developed with GenixNode
  • The front matter area determines the home page settings.

3️⃣ Using Vue Component in Markdown


mkdir -p docs/.vuepress/components


<template>
<div>
<h3>Değer: {&#123; sayi &#125;}</h3>
<button @click="sayi++">Artır</button>
<button @click="sayi--">Azalt</button>
</div>
</template>

<script>
export default {
data() {
return { sayi: 0 }
}
}
</script>
  • This Vue component runs live within the documentation.

  1. Counter Page

# Sayaç Bileşeni

< Sayac/>

- Bu bileşen Markdown içine gömülmüş canlı bir Vue örneğidir.
VuePress bileşenleri otomatik tanır.

---

## 4️⃣ Menü ve Yan Panel Ayarları

```js

module.exports = {
title: 'GenixNode Documentation',
description: 'Technical documentation prepared with VuePress',
themeConfig: {
nav: [
{ text: 'Home Page', link: '/' },
{ text: 'Counter', link: '/counter/' }
],
sidebar: [
{
title: 'Components',
children: ['/counter/']
}
]
}
}
```js

module.exports = {
title: 'GenixNode Dokümantasyon',
description: 'VuePress ile hazırlanmış teknik dokümantasyon',
themeConfig: {
nav: [
{ text: 'Ana Sayfa', link: '/' },
{ text: 'Sayaç', link: '/sayac/' }
],
sidebar: [
{
title: 'Bileşenler',
children: ['/sayac/']
}
]
}
}
```stylus

$accentColor = #ffa500
$textColor = #2c3e50
```stylus

$accentColor = #ffa500
$textColor = #2c3e50
  • Brand colors are changed globally.

❓ Frequently Asked Questions

1. Is VuePress SEO friendly? Yes. It produces static HTML and search engines love it.

2. Does Vue run in Markdown? Yes. VuePress supports this natively.

3. How do I publish the site? Compile it with npm run docs:build and upload it to the server.

4. Are additional SEO settings required? Title and description are sufficient for most projects.


Result

You can build modern documentation with VuePress. You produce interactive content with the power of Vue. You get a structure that is easy and fast to maintain.

You can publish your documentation site on the GenixNode infrastructure with high performance.