gitbook-plugin-gbjsontable

0.1.0 • Public • Published

gbJsonTable

Install

In book.json

{
  "plugins": ["jsoneon"],
	"pluginsConfig": {
		"jsoneon": {
			"render" : ["info"]
		}
	}
}

Usage

1 create directory to gitbook directory.

directory name is free.

mkdir json

2 Define elements in foo.json

{
	"meta":{
		"name":"Table name",
		"version":"0.0.1",
		"description":"This is table sample.",
		"type":"RDB"
	},
	"elements":{
		"textext" : {
			"type":"text",
	 		"description":"cappuccino",
			"isOptional" : false,
			"sample":"cappuccino",
			"tag" : ["deprecated", "primary key"]
		},
		"numnum" : {
			"type":"number",
	 		"description":"IIV",
			"isOptional" : false,
			"sample": 6000,
			"tag" : ["deprecated"]
		},
	  "dicdict" : {
			"type":"dictionary",
			"description":"cafe",
			"isOptional" : true,
			"members": {
					"cco": {
						"type":"text",
						"description":"ChiefCoffeeOfficer",
						"isOptional":false,
						"sample":"chino",
						"tag":[]
					},
					"cfo" : {
						"type":"text",
						"description":"ChiefFriendOfficer",
						"isOptional":false,
						"sample":"cocoa",
						"tag":[]
					}
			}
		}
	}
}

3 Write in bar.md

{% jsoneon src="json/foo.json" %}
{% endjsoneon %}

Readme

Keywords

Package Sidebar

Install

npm i gitbook-plugin-gbjsontable

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

7.64 kB

Total Files

8

Last publish

Collaborators

  • zrjufo