mirror of
https://github.com/MatMoul/dokytree.git
synced 2025-11-20 22:42:05 +00:00
Some improvement for IT doc
This commit is contained in:
@@ -62,6 +62,87 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"backups": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"anyOf": [
|
||||
{ "type": "string" },
|
||||
{ "enum": [
|
||||
"''",
|
||||
"'none'",
|
||||
"'hypervisor'",
|
||||
"'windowsbackup'"
|
||||
]}
|
||||
]
|
||||
},
|
||||
"method": {
|
||||
"anyOf": [
|
||||
{ "type": "string" },
|
||||
{ "enum": [
|
||||
"''",
|
||||
"'auto'",
|
||||
"'manual'"
|
||||
]}
|
||||
]
|
||||
},
|
||||
"frequency": {
|
||||
"anyOf": [
|
||||
{ "type": "string" },
|
||||
{ "enum": [
|
||||
"''",
|
||||
"'daily'",
|
||||
"'weekly'",
|
||||
"'monthly'",
|
||||
"'quarterly'",
|
||||
"'halfyearly'",
|
||||
"'yearly'",
|
||||
"'monday'",
|
||||
"'tuesday'",
|
||||
"'wednesday'",
|
||||
"'thursday'",
|
||||
"'friday'",
|
||||
"'saturday'",
|
||||
"'sonday'"
|
||||
]}
|
||||
]
|
||||
},
|
||||
"target": {
|
||||
"anyOf": [
|
||||
{"type": "string"},
|
||||
{"enum": [
|
||||
"''",
|
||||
"'usb'",
|
||||
"'pbs'",
|
||||
"'share'",
|
||||
"'iscsi'",
|
||||
"'cloud'"
|
||||
]}
|
||||
]
|
||||
},
|
||||
"time": {
|
||||
"anyOf": [
|
||||
{"type": "string"},
|
||||
{"enum": [
|
||||
"''",
|
||||
"'auto'"
|
||||
]}
|
||||
]
|
||||
},
|
||||
"duration": {
|
||||
"anyOf": [
|
||||
{ "type": "string" },
|
||||
{ "type": "integer" },
|
||||
{"enum": [
|
||||
"''"
|
||||
]}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headfiles": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
|
||||
@@ -4,4 +4,5 @@ title
|
||||
book
|
||||
toc
|
||||
templates
|
||||
maintenance_backups
|
||||
files
|
||||
|
||||
@@ -2,10 +2,11 @@ div#HEADFILES
|
||||
-
|
||||
const backups = []
|
||||
const readNode = (curNode) => {
|
||||
if(curNode?.data?.backups?.length > 0) {
|
||||
if(curNode?.backups?.length > 0) {
|
||||
const nodeItem = {
|
||||
name: curNode.data.name,
|
||||
backups: curNode.data.backups,
|
||||
name: curNode.title,
|
||||
url: curNode.url,
|
||||
backups: curNode.backups,
|
||||
}
|
||||
backups.push(nodeItem)
|
||||
}
|
||||
@@ -27,8 +28,8 @@ div#HEADFILES
|
||||
|
||||
table
|
||||
thead
|
||||
th Devices
|
||||
th Types
|
||||
th Object
|
||||
th Type
|
||||
th Content
|
||||
th Frequency
|
||||
th Time
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
div#HEADFILES
|
||||
|
||||
each itm in node.items
|
||||
table
|
||||
tr
|
||||
td.bold=itm.data.name
|
||||
tr
|
||||
td=itm.data.url
|
||||
div.bold=itm.data.name
|
||||
a(href=itm.data.url, target="_blank")=itm.data.url
|
||||
|
||||
div#FILES
|
||||
div#FOOTFILES
|
||||
|
||||
@@ -27,8 +27,8 @@ div#HEADFILES
|
||||
|
||||
table
|
||||
thead
|
||||
th Devices
|
||||
th Types
|
||||
th Object
|
||||
th Type
|
||||
th Method
|
||||
th Frequency
|
||||
th Time
|
||||
|
||||
Reference in New Issue
Block a user