summaryrefslogtreecommitdiffstats
path: root/test/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'test/plugins')
-rw-r--r--test/plugins/blocks/index.js61
-rw-r--r--test/plugins/blocks/package.json9
-rw-r--r--test/plugins/config/index.js1
-rw-r--r--test/plugins/config/package.json21
-rw-r--r--test/plugins/empty/index.js1
-rw-r--r--test/plugins/empty/package.json9
-rw-r--r--test/plugins/filters/index.js10
-rw-r--r--test/plugins/filters/package.json9
-rw-r--r--test/plugins/invalid/index.js1
-rw-r--r--test/plugins/invalid/package.json9
-rw-r--r--test/plugins/replace_highlight/index.js14
-rw-r--r--test/plugins/replace_highlight/package.json9
-rw-r--r--test/plugins/resources/index.js12
-rw-r--r--test/plugins/resources/package.json9
14 files changed, 0 insertions, 175 deletions
diff --git a/test/plugins/blocks/index.js b/test/plugins/blocks/index.js
deleted file mode 100644
index 9bdbe86..0000000
--- a/test/plugins/blocks/index.js
+++ /dev/null
@@ -1,61 +0,0 @@
-var assert = require("assert");
-
-module.exports = {
- blocks: {
- "test": {
- shortcuts: {
- parsers: ["markdown"],
- start: "$$",
- end: "$$"
- },
- process: function(blk) {
- return "test"+blk.body+"test";
- }
- },
- "test2": {
- end: "endtest2end",
- process: function(blk) {
- return "test2"+blk.body+"test2";
- }
- },
- "test3join": {
- blocks: [
- "also"
- ],
- process: function(blk) {
- return [blk.body, blk.blocks[0].body].join(blk.kwargs.separator);
- }
- },
- "test4join": {
- blocks: [
- "also", "finally"
- ],
- process: function(blk) {
- assert(blk.blocks.length, 2);
- assert(blk.blocks[0].name, "also");
- assert(blk.blocks[1].name, "finally");
- return [blk.body, blk.blocks[0].body, blk.blocks[1].body].join(blk.kwargs.separator);
- }
- },
- "test5args": {
- process: function(blk) {
- return "test5"+blk.args.join(",")+"test5";
- }
- },
- "test5kwargs": {
- process: function(blk) {
- var s = blk.args.join(",");
- for (var key in blk.kwargs) {
- s = s + ","+key+":"+blk.kwargs[key];
- }
-
- return "test5"+s+"test5";
- }
- },
- "test6context": {
- process: function() {
- return "test6"+(this.ctx.name)+"test6";
- }
- },
- }
-}; \ No newline at end of file
diff --git a/test/plugins/blocks/package.json b/test/plugins/blocks/package.json
deleted file mode 100644
index 7c41fd3..0000000
--- a/test/plugins/blocks/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "gitbook-plugin-blocks",
- "description": "Test blocks",
- "main": "index.js",
- "version": "0.0.1",
- "engines": {
- "gitbook": "*"
- }
-} \ No newline at end of file
diff --git a/test/plugins/config/index.js b/test/plugins/config/index.js
deleted file mode 100644
index f053ebf..0000000
--- a/test/plugins/config/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = {};
diff --git a/test/plugins/config/package.json b/test/plugins/config/package.json
deleted file mode 100644
index 03ef744..0000000
--- a/test/plugins/config/package.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "name": "gitbook-plugin-testconfig",
- "description": "Test plugin configuration",
- "main": "index.js",
- "version": "0.0.1",
- "engines": {
- "gitbook": "*"
- },
- "gitbook": {
- "properties": {
- "hello": {
- "type": "string",
- "default": "world"
- },
- "testRequired": {
- "type": "number",
- "required": true
- }
- }
- }
-} \ No newline at end of file
diff --git a/test/plugins/empty/index.js b/test/plugins/empty/index.js
deleted file mode 100644
index a099545..0000000
--- a/test/plugins/empty/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = {}; \ No newline at end of file
diff --git a/test/plugins/empty/package.json b/test/plugins/empty/package.json
deleted file mode 100644
index 78c7e72..0000000
--- a/test/plugins/empty/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "gitbook-plugin-empty",
- "description": "Test empty plugin",
- "main": "index.js",
- "version": "0.0.1",
- "engines": {
- "gitbook": "*"
- }
-} \ No newline at end of file
diff --git a/test/plugins/filters/index.js b/test/plugins/filters/index.js
deleted file mode 100644
index 2cf53b1..0000000
--- a/test/plugins/filters/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-module.exports = {
- filters: {
- hello: function(text) {
- return "Hello "+text;
- },
- helloCtx: function(text) {
- return text+":"+this.book.root;
- }
- }
-}; \ No newline at end of file
diff --git a/test/plugins/filters/package.json b/test/plugins/filters/package.json
deleted file mode 100644
index f1d4e45..0000000
--- a/test/plugins/filters/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "gitbook-plugin-filters",
- "description": "Test filters",
- "main": "index.js",
- "version": "0.0.1",
- "engines": {
- "gitbook": "*"
- }
-} \ No newline at end of file
diff --git a/test/plugins/invalid/index.js b/test/plugins/invalid/index.js
deleted file mode 100644
index a099545..0000000
--- a/test/plugins/invalid/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = {}; \ No newline at end of file
diff --git a/test/plugins/invalid/package.json b/test/plugins/invalid/package.json
deleted file mode 100644
index da34090..0000000
--- a/test/plugins/invalid/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "gitbook-plugin-invalid",
- "description": "Test invalid plugin",
- "main": "index.js",
- "version": "0.0.1",
- "engines": {
- "gitbook": "<2.0.0"
- }
-} \ No newline at end of file
diff --git a/test/plugins/replace_highlight/index.js b/test/plugins/replace_highlight/index.js
deleted file mode 100644
index 8586486..0000000
--- a/test/plugins/replace_highlight/index.js
+++ /dev/null
@@ -1,14 +0,0 @@
-module.exports = {
- blocks: {
- "code": {
- process: function(blk) {
- var lang = blk.kwargs.language || "code";
-
- return {
- body: lang+"_"+blk.body+"_"+lang,
- html: false
- };
- }
- }
- }
-}; \ No newline at end of file
diff --git a/test/plugins/replace_highlight/package.json b/test/plugins/replace_highlight/package.json
deleted file mode 100644
index 72d1033..0000000
--- a/test/plugins/replace_highlight/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "gitbook-plugin-replace_highlight",
- "description": "Test replacing default code highlighter",
- "main": "index.js",
- "version": "0.0.1",
- "engines": {
- "gitbook": "*"
- }
-} \ No newline at end of file
diff --git a/test/plugins/resources/index.js b/test/plugins/resources/index.js
deleted file mode 100644
index bafa54b..0000000
--- a/test/plugins/resources/index.js
+++ /dev/null
@@ -1,12 +0,0 @@
-module.exports = {
- website: {
- js: [
- "https://cdn.mathjax.org/mathjax/2.4-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
- ]
- },
- ebook: {
- css: [
- "test"
- ]
- }
-};
diff --git a/test/plugins/resources/package.json b/test/plugins/resources/package.json
deleted file mode 100644
index ab4320d..0000000
--- a/test/plugins/resources/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "gitbook-plugin-resources",
- "description": "Test resources plugin",
- "main": "index.js",
- "version": "0.0.1",
- "engines": {
- "gitbook": "*"
- }
-} \ No newline at end of file