mirror of
https://github.com/litruv/Docs-Viewer.git
synced 2026-07-24 02:36:07 +10:00
back to original for more debugging
This commit is contained in:
4
index.js
4
index.js
@@ -534,7 +534,7 @@ class Documentation {
|
|||||||
// Add this line to populate author info
|
// Add this line to populate author info
|
||||||
this.populateAuthorInfo(data.author);
|
this.populateAuthorInfo(data.author);
|
||||||
|
|
||||||
window.originalDocTitle = data.metadata.site_name || 'Documentation';
|
window.originalDocTitle = data.title || 'Documentation';
|
||||||
document.title = window.originalDocTitle;
|
document.title = window.originalDocTitle;
|
||||||
|
|
||||||
this.domService.elements.fileIndex.innerHTML = '';
|
this.domService.elements.fileIndex.innerHTML = '';
|
||||||
@@ -616,7 +616,7 @@ class Documentation {
|
|||||||
|
|
||||||
async loadDocument(path) {
|
async loadDocument(path) {
|
||||||
try {
|
try {
|
||||||
const { content, metadata, marked } = await this.documentService.loadDocument(path);
|
const { content, metadata, marked, title } = await this.documentService.loadDocument(path);
|
||||||
|
|
||||||
this.domService.setTitle(title);
|
this.domService.setTitle(title);
|
||||||
this.domService.setContent(marked.parse(content));
|
this.domService.setContent(marked.parse(content));
|
||||||
|
|||||||
Reference in New Issue
Block a user