Skip to content

Commit

Permalink
init plugin πŸ„πŸ»β€β™€οΈ
Browse files Browse the repository at this point in the history
  • Loading branch information
z3by committed Jan 14, 2020
1 parent 22c118c commit 14f2a6a
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# vuepress-plugin-flexsearch

Next-Generation full text search library for Vuepress
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const removeMarkdown = require('remove-markdown')

module.exports = () => ({
extendPageData ($page) {
const {
_content
} = $page
$page.content = removeMarkdown(_content)
}
})
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "vuepress-plugin-flexsearch",
"version": "0.0.1",
"description": "Next-Generation full text search library for Vuepress",
"main": "index.js",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/z3by/vuepress-plugin-flexsearch",
"directory": "packages/vuepress-plugin-flexsearch"
},
"keywords": [
"documentation",
"vue",
"vuepress",
"generator",
"search",
"vuepress-plugin"
],
"author": "z3by <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/z3by/vuepress-plugin-flexsearch#readme",
"dependencies": {
"flexsearch": "nextapps-de/flexsearch",
"remove-markdown": "^0.3.0"
}
}
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


flexsearch@nextapps-de/flexsearch:
version "0.6.32"
resolved "https://codeload.github.com/nextapps-de/flexsearch/tar.gz/f01f05e5683d8db644241ff0e27555207084ec07"

remove-markdown@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/remove-markdown/-/remove-markdown-0.3.0.tgz#5e4b667493a93579728f3d52ecc1db9ca505dc98"
integrity sha1-XktmdJOpNXlyjz1S7MHbnKUF3Jg=

0 comments on commit 14f2a6a

Please sign in to comment.