mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-30 09:01:30 +08:00
fix(docs): meta for HTML documentation changing due to root notePosition
This commit is contained in:
parent
4dd300b702
commit
e62137f245
@ -9,7 +9,7 @@
|
|||||||
"pOsGYCXsbNQG"
|
"pOsGYCXsbNQG"
|
||||||
],
|
],
|
||||||
"title": "User Guide",
|
"title": "User Guide",
|
||||||
"notePosition": 130,
|
"notePosition": 1,
|
||||||
"prefix": null,
|
"prefix": null,
|
||||||
"isExpanded": false,
|
"isExpanded": false,
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
@ -150,6 +150,7 @@ async function cleanUpMeta(outputPath: string) {
|
|||||||
const metaPath = path.join(outputPath, "!!!meta.json");
|
const metaPath = path.join(outputPath, "!!!meta.json");
|
||||||
const meta = JSON.parse(await fs.readFile(metaPath, "utf-8")) as NoteMetaFile;
|
const meta = JSON.parse(await fs.readFile(metaPath, "utf-8")) as NoteMetaFile;
|
||||||
for (const file of meta.files) {
|
for (const file of meta.files) {
|
||||||
|
file.notePosition = 1;
|
||||||
traverse(file);
|
traverse(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"pOsGYCXsbNQG"
|
"pOsGYCXsbNQG"
|
||||||
],
|
],
|
||||||
"title": "User Guide",
|
"title": "User Guide",
|
||||||
"notePosition": 130,
|
"notePosition": 1,
|
||||||
"prefix": null,
|
"prefix": null,
|
||||||
"isExpanded": false,
|
"isExpanded": false,
|
||||||
"type": "text",
|
"type": "text",
|
||||||
@ -8107,16 +8107,19 @@
|
|||||||
{
|
{
|
||||||
"noImport": true,
|
"noImport": true,
|
||||||
"dataFileName": "navigation.html",
|
"dataFileName": "navigation.html",
|
||||||
|
"notePosition": 1,
|
||||||
"isExpanded": false
|
"isExpanded": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"noImport": true,
|
"noImport": true,
|
||||||
"dataFileName": "index.html",
|
"dataFileName": "index.html",
|
||||||
|
"notePosition": 1,
|
||||||
"isExpanded": false
|
"isExpanded": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"noImport": true,
|
"noImport": true,
|
||||||
"dataFileName": "style.css",
|
"dataFileName": "style.css",
|
||||||
|
"notePosition": 1,
|
||||||
"isExpanded": false
|
"isExpanded": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user