From 3c05ffe3f95ca0803dba41c19f39b94fc32b6f2e Mon Sep 17 00:00:00 2001 From: Futago-za Ryuu Date: Fri, 15 Nov 2019 00:17:41 +0000 Subject: [PATCH] Remove VuePress --- .eslintignore | 2 - .gitignore | 1 - .vscode/settings.json | 6 -- docs/.vuepress/components/PageFooter.vue | 5 -- docs/.vuepress/config.js | 53 --------------- docs/.vuepress/config/nav.js | 80 ----------------------- docs/.vuepress/config/sidebar.js | 29 -------- docs/.vuepress/public/favicon.ico | Bin 318 -> 0 bytes docs/.vuepress/styles/index.styl | 15 ----- docs/README.md | 17 ----- docs/changelogs/README.md | 6 -- docs/changelogs/v0.1.md | 4 -- docs/changelogs/v0.10.md | 4 -- docs/changelogs/v0.2.md | 4 -- docs/changelogs/v0.3.md | 4 -- docs/changelogs/v0.4.md | 4 -- docs/changelogs/v0.5.md | 4 -- docs/changelogs/v0.6.md | 4 -- docs/changelogs/v0.7.md | 4 -- docs/changelogs/v0.8.md | 4 -- docs/changelogs/v0.9.md | 4 -- docs/development.md | 7 -- docs/online.md | 1 - docs/package.json | 9 --- package.json | 7 +- 25 files changed, 2 insertions(+), 276 deletions(-) delete mode 100644 .vscode/settings.json delete mode 100644 docs/.vuepress/components/PageFooter.vue delete mode 100644 docs/.vuepress/config.js delete mode 100644 docs/.vuepress/config/nav.js delete mode 100644 docs/.vuepress/config/sidebar.js delete mode 100644 docs/.vuepress/public/favicon.ico delete mode 100644 docs/.vuepress/styles/index.styl delete mode 100644 docs/README.md delete mode 100644 docs/online.md delete mode 100644 docs/package.json diff --git a/.eslintignore b/.eslintignore index 0bd52e7..46c5e0c 100644 --- a/.eslintignore +++ b/.eslintignore @@ -5,6 +5,4 @@ /coverage node_modules /website/*/** -/docs/.vuepress/dist -/docs/.vuepress/public /dist diff --git a/.gitignore b/.gitignore index a6e8677..b56d362 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ /.idea /packages/pegjs/dist /packages/pegjs/.npmrc -/docs/.vuepress/dist /dist /examples/*.js node_modules diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index b3d7263..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "eslint.workingDirectories": [ - ".", - "docs/.vuepress" - ] -} diff --git a/docs/.vuepress/components/PageFooter.vue b/docs/.vuepress/components/PageFooter.vue deleted file mode 100644 index f8d8d89..0000000 --- a/docs/.vuepress/components/PageFooter.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js deleted file mode 100644 index 3275ca3..0000000 --- a/docs/.vuepress/config.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; - -// const DEV_ENV = process.env.NODE_ENV !== "production"; - -module.exports = { - - title: "PEG.js", - description: "A parser generator for JavaScript", - head: [ - - [ "meta", { "http-equiv": "XA-UA-Compatible", content: "IE=edge" } ], - [ "link", { rel: "shortcut icon", href: "/favicon.ico", type: "image/x-icon" } ], - - ], - dest: "dist", - - themeConfig: { - - nav: require( "./config/nav.js" ), - sidebar: require( "./config/sidebar.js" ), - sidebarDepth: 0, - displayAllHeaders: false, - activeHeaderLinks: true, - // search: DEV_ENV ? true : false, - searchMaxSuggestions: 5, - // algolia: DEV_ENV ? void 0 : { - - // apiKey: "", - // indexName: "" - - // }, - lastUpdated: true, - docsRepo: "pegjs/pegjs", - docsDir: "docs", - editLinks: true, - evergreen: false, - smoothScroll: true, - - }, - - plugins: [ - [ "@vuepress/back-to-top", true ], - [ "@vuepress/google-analytics", { - ga: "UA-100728112-1", - } ], - ], - - extraWatchFiles: [ - require.resolve( "./config/nav.js" ), - require.resolve( "./config/sidebar.js" ), - ], - -}; diff --git a/docs/.vuepress/config/nav.js b/docs/.vuepress/config/nav.js deleted file mode 100644 index d15db61..0000000 --- a/docs/.vuepress/config/nav.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict"; - -module.exports = [ - - { - text: "Try Online", - link: "/online", - }, - - { - text: "Documentation", - items: [ - { - text: "Guides", - link: "/guides/getting-started", - }, - { - text: "Grammar", - link: "/grammar/", - }, - { - text: "API", - link: "/guides/javascript-api", - }, - { - text: "Compatibility", - link: "/guides/compatibility", - }, - ], - }, - - { - text: "Development", - items: [ - { - text: "Contribute", - link: "/development", - }, - { - text: "Changelogs", - link: "/changelogs/", - }, - { - text: "Source code", - link: "https://github.com/pegjs/pegjs", - }, - { - text: "Issue tracker", - link: "https://github.com/pegjs/pegjs/issues", - }, - ], - }, - - { - text: "Community", - items: [ - { - text: "Forums", - link: "https://gitq.com/pegjs/pegjs", - }, - { - text: "Wiki", - link: "https://github.com/pegjs/pegjs/wiki", - }, - { - text: "Stack Overflow", - link: "https://stackoverflow.com/questions/tagged/pegjs", - }, - { - text: "Twitter", - link: "https://twitter.com/pegjs", - }, - { - text: "Plugins", - link: "https://www.npmjs.com/search?q=pegjs%20plugin", - }, - ], - }, - -]; diff --git a/docs/.vuepress/config/sidebar.js b/docs/.vuepress/config/sidebar.js deleted file mode 100644 index 84edc1a..0000000 --- a/docs/.vuepress/config/sidebar.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; - -module.exports = { - - "/grammar/": [ - "", - "parsing-expression-types", - "balanced-braces", - "action-execution-environment", - "backtracking", - "case-insensitivity", - "error-messages", - [ "tracer", "Tracer" ], - ], - - "/guides/": [ - "getting-started", - "installation", - "command-line", - "generating-a-parser", - "javascript-api", - "plugins", - "using-the-parser", - "compatibility", - ], - - "/": false, - -}; diff --git a/docs/.vuepress/public/favicon.ico b/docs/.vuepress/public/favicon.ico deleted file mode 100644 index 4872223c9996058c2fba4183f204fd1bef3991d5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 318 zcmah@K@NZ*3@gM3bQjM=FMP(A_z8cGT_A?bq@)biQ3@n2lG-=a1ndB+NU@0Ck8ocn vT5FNK>>mr1?vOtt!kCoI6pso^>SSJZ*OU!?JSe^9=o^nd^O5BrT%YG(e2g5O diff --git a/docs/.vuepress/styles/index.styl b/docs/.vuepress/styles/index.styl deleted file mode 100644 index c44b8fd..0000000 --- a/docs/.vuepress/styles/index.styl +++ /dev/null @@ -1,15 +0,0 @@ -html, body { - margin: 0; - padding: 0; - height: 100%; -} -#app { - min-height: 100%; - position: relative; -} - -#footer { - position: absolute; - bottom: 5px; - right: 5px; -} diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index 30033c7..0000000 --- a/docs/README.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -title: "A parser generator for JavaScript" -editLink: false -lastUpdated: false ---- - -PEG.js is a simple parser generator for JavaScript that produces fast parsers with excellent error reporting. You can use it to process complex data or computer languages and build transformers, interpreters, compilers and other tools easily. - -## features - - * Simple and expressive grammar syntax - * Integrates both lexical and syntactical analysis - * Parsers have excellent error reporting out of the box - * Based on the [parsing expression grammar](http://en.wikipedia.org/wiki/Parsing_expression_grammar) formalism - * Usable [from your browser](https://pegjs.org/online), from the command line, or via [JavaScript API](guides/javascript-api.md) - - diff --git a/docs/changelogs/README.md b/docs/changelogs/README.md index 0639426..97565e1 100644 --- a/docs/changelogs/README.md +++ b/docs/changelogs/README.md @@ -1,7 +1,3 @@ ---- -editLink: false ---- - * [v0.10](./v0.10.md) _(August 19, 2016)_ * [v0.9](./v0.9.md) _(August 30, 2015)_ * [v0.8](./v0.8.md) _(December 24, 2013)_ @@ -16,5 +12,3 @@ editLink: false * [v0.2.1](./v0.2.md) _(March 8, 2010)_ * [v0.2](./v0.2.md) _(March 8, 2010)_ * [v0.1](./v0.1.md) _(March 8, 2010)_ - - diff --git a/docs/changelogs/v0.1.md b/docs/changelogs/v0.1.md index 50d2254..bd86ac0 100644 --- a/docs/changelogs/v0.1.md +++ b/docs/changelogs/v0.1.md @@ -1,7 +1,3 @@ ---- -editLink: false ---- - > See [commit history](https://github.com/pegjs/pegjs/commits/0.1) for a full list of changes. ## v0.1 _(March 8, 2010)_ diff --git a/docs/changelogs/v0.10.md b/docs/changelogs/v0.10.md index 3dd17c2..27fe7ed 100644 --- a/docs/changelogs/v0.10.md +++ b/docs/changelogs/v0.10.md @@ -1,7 +1,3 @@ ---- -editLink: false ---- - > See [commit history](https://github.com/pegjs/pegjs/compare/v0.9.0...v0.10.0) for a full list of changes. ## v0.10.0 _(August 19, 2016)_ diff --git a/docs/changelogs/v0.2.md b/docs/changelogs/v0.2.md index 67b5557..1bb4f87 100644 --- a/docs/changelogs/v0.2.md +++ b/docs/changelogs/v0.2.md @@ -1,7 +1,3 @@ ---- -editLink: false ---- - > See [commit history](https://github.com/pegjs/pegjs/compare/0.1...0.2.1) for a full list of changes. ## v0.2.1 _(March 8, 2010)_ diff --git a/docs/changelogs/v0.3.md b/docs/changelogs/v0.3.md index 2d9e8da..242921a 100644 --- a/docs/changelogs/v0.3.md +++ b/docs/changelogs/v0.3.md @@ -1,7 +1,3 @@ ---- -editLink: false ---- - > See [commit history](https://github.com/pegjs/pegjs/compare/0.2.1...0.3) for a full list of changes. ### v0.3 _(March 14, 2010)_ diff --git a/docs/changelogs/v0.4.md b/docs/changelogs/v0.4.md index d38f253..a75f5e0 100644 --- a/docs/changelogs/v0.4.md +++ b/docs/changelogs/v0.4.md @@ -1,7 +1,3 @@ ---- -editLink: false ---- - > See [commit history](https://github.com/pegjs/pegjs/compare/0.3...0.4) for a full list of changes. ## v0.4 _(April 17, 2010)_ diff --git a/docs/changelogs/v0.5.md b/docs/changelogs/v0.5.md index ca33bac..994d741 100644 --- a/docs/changelogs/v0.5.md +++ b/docs/changelogs/v0.5.md @@ -1,7 +1,3 @@ ---- -editLink: false ---- - > See [commit history](https://github.com/pegjs/pegjs/compare/0.4...0.5.1) for a full list of changes. ## v0.5.1 _(November 28, 2010)_ diff --git a/docs/changelogs/v0.6.md b/docs/changelogs/v0.6.md index 2009f62..e3ee86a 100644 --- a/docs/changelogs/v0.6.md +++ b/docs/changelogs/v0.6.md @@ -1,7 +1,3 @@ ---- -editLink: false ---- - > See [commit history](https://github.com/pegjs/pegjs/compare/0.5.1...0.6.2) for a full list of changes. ## v0.6.2 _(April 20, 2011)_ diff --git a/docs/changelogs/v0.7.md b/docs/changelogs/v0.7.md index 31f6493..e73ab7d 100644 --- a/docs/changelogs/v0.7.md +++ b/docs/changelogs/v0.7.md @@ -1,7 +1,3 @@ ---- -editLink: false ---- - > See [commit history](https://github.com/pegjs/pegjs/compare/0.6.2...v0.7.0) for a full list of changes. ## v0.7.0 _(April 18, 2012)_ diff --git a/docs/changelogs/v0.8.md b/docs/changelogs/v0.8.md index d53f546..bdb99db 100644 --- a/docs/changelogs/v0.8.md +++ b/docs/changelogs/v0.8.md @@ -1,7 +1,3 @@ ---- -editLink: false ---- - > See [commit history](https://github.com/pegjs/pegjs/compare/v0.7.0...v0.8.0) for a full list of changes. ## v0.8.0 _(December 24, 2013)_ diff --git a/docs/changelogs/v0.9.md b/docs/changelogs/v0.9.md index 7a562a2..034950e 100644 --- a/docs/changelogs/v0.9.md +++ b/docs/changelogs/v0.9.md @@ -1,7 +1,3 @@ ---- -editLink: false ---- - > See [commit history](https://github.com/pegjs/pegjs/compare/v0.8.0...v0.9.0) for a full list of changes. ## v0.9.0 _(August 30, 2015)_ diff --git a/docs/development.md b/docs/development.md index fc5b8af..08e5407 100644 --- a/docs/development.md +++ b/docs/development.md @@ -1,8 +1,3 @@ ---- -title: Development -editLink: false ---- - PEG.js is currently maintained by [Futago-za Ryuu](https://github.com/futagoza) ([@futagozaryuu](https://twitter.com/futagozaryuu)). Since it's [inception](https://www.google.com/search?q=inception+meaning) in 2010, PEG.js was maintained by [David Majda](https://majda.cz/) ([@dmajda](http://twitter.com/dmajda)), until [May 2017](https://github.com/pegjs/pegjs/issues/503). @@ -35,5 +30,3 @@ _Ensure you have Node.js 8.6+ and Yarn installed._ It's also a good idea to check out the [package.json](https://github.com/pegjs/pegjs/blob/master/package.json) that defines various scripts. To see the list of contributors check out the [repository's contributors page](https://github.com/pegjs/pegjs/graphs/contributors). - - diff --git a/docs/online.md b/docs/online.md deleted file mode 100644 index e171ff8..0000000 --- a/docs/online.md +++ /dev/null @@ -1 +0,0 @@ -> Coming soon... diff --git a/docs/package.json b/docs/package.json deleted file mode 100644 index d0a8a75..0000000 --- a/docs/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "@pegjs/website", - "version": "2.0.0-wip", - "private": true, - "dependencies": { - "@vuepress/plugin-back-to-top": "1.1.0", - "@vuepress/plugin-google-analytics": "1.1.0" - } -} diff --git a/package.json b/package.json index c3b899f..dc409ef 100644 --- a/package.json +++ b/package.json @@ -8,11 +8,9 @@ "test" ], "scripts": { - "lint": "eslint --ext .js,.vue . docs/.vuepress", + "lint": "eslint --ext .js .", "spec": "mocha --reporter progress", "benchmark": "node tools/benchmark", - "build-docs": "vuepress build docs", - "watch-docs": "vuepress dev docs", "build-parser": "pegjs -c src/pegjs.config.js", "build-dist": "bundle", "watch-dist": "bundle --watch", @@ -30,8 +28,7 @@ "eslint": "6.4.0", "mocha": "6.2.0", "nyc": "14.1.1", - "rimraf": "3.0.0", - "vuepress": "1.1.0" + "rimraf": "3.0.0" }, "engines": { "node": ">= 8"