• 欢迎来到小可 · Wiki,人人可编辑的,多平台聊天机器人“小可”的官方文档资源。
  • 小可很可爱,请给我们打钱
  • 原 MkDocs 已迁入本站。若发现 404 属正常现象,请点击左上角搜索您想要的模块。

导航架构

结构化导航的JSON架构(schema)
{
	"$schema": "http://json-schema.org/draft-04/schema#",

	"definitions": {
		"valid-wiki-title": {
			"$id": "#valid-wiki-title",
			"type": "string",
			"pattern": ".*"
		},
		"valid-nav-header": {
			"type": "object",
			"required": [ "label" ],
			"properties": {
				"page": {
					"$ref": "#/definitions/valid-wiki-title"
				},
				"label": {
					"anyOf": [
						{
							"type": "string"
						}
					]
				}
			}
		},
		"content-item": {
			"$id": "#content-item",
			"type": "array",
			"items": {
				"anyOf": [
					{
						"$ref": "#/definitions/valid-wiki-title"
					},
					{
						"type": "array",
						"minItems": 2,
						"maxItems": 2
					}
				]
			},
			"uniqueItems": true,
			"minItems": 1
		}
	},

	"type": "object",
	"required": [ "config", "groups" ],
	"additionalProperties": false,
	"properties": {
		"config": {
			"type": "object",
			"additionalProperties": false,
			"properties": {
				"title": {
					"$ref": "#/definitions/valid-nav-header"
				},
				"title-2": {
					"$ref": "#/definitions/valid-nav-header"
				}
			},
			"required": [ "title" ]
		},
		"groups": {
			"type": "array",
			"minProperties": 1,
			"items": {
				"type": "object",
				"additionalProperties": false,
				"required": [ "title", "content" ],
				"properties": {
					"title": {
						"$ref": "#/definitions/valid-nav-header"
					},
					"content": {
						"$ref": "#/definitions/content-item"
					}
				}
			}
		}
	}
}
Cookie帮助我们提供我们的服务。通过使用我们的服务,您同意我们使用cookie。