-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[theme][m]: introduce vuepress (no refactoring of content yet).
- Loading branch information
1 parent
7620571
commit a525dba
Showing
4 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ node_modules/* | |
schemas/dictionary.json | ||
package-lock.json | ||
.idea | ||
.vuepress/dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// .vuepress/components/mermaid.vue | ||
|
||
<template> | ||
</template> | ||
|
||
<style> | ||
div.language-mermaid { | ||
background-color: inherit | ||
} | ||
</style> | ||
|
||
<script> | ||
export default { | ||
beforeMount() { | ||
import("mermaid/dist/mermaid").then(m => { | ||
m.initialize({ | ||
startOnLoad: true | ||
}); | ||
m.init('div.language-mermaid>pre>code'); | ||
}); | ||
} | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module.exports = { | ||
title: 'Frictionless Data Specs', | ||
description: '', | ||
markdown: { | ||
linkify: true, | ||
typographer: true, | ||
breaks: true, | ||
html: true, | ||
toc: { | ||
includeLevel: [2, 3, 4] | ||
}, | ||
extendMarkdown: md => { | ||
md.use(require('markdown-it-footnote')) | ||
} | ||
}, | ||
themeConfig: { | ||
repo: 'https://github.com/frictionlessdata/specs', | ||
editLinks: true, | ||
sidebar: 'auto', | ||
nav: [ | ||
{ text: 'Home', link: '/' } | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters