Update readme-loader.js to fetch and render FAQ.md instead of README.md
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
// Fetch and render README.md
|
// Fetch and render FAQ.md
|
||||||
(async function loadReadme(){
|
(async function loadReadme(){
|
||||||
try {
|
try {
|
||||||
const response = await fetch('/README.md', {cache: 'no-cache'});
|
const response = await fetch('/FAQ.md', {cache: 'no-cache'});
|
||||||
if(!response.ok) throw new Error('README not found');
|
if(!response.ok) throw new Error('FAQ not found');
|
||||||
const markdown = await response.text();
|
const markdown = await response.text();
|
||||||
const html = marked.parse(markdown);
|
const html = marked.parse(markdown);
|
||||||
document.getElementById('readme-content').innerHTML = html;
|
document.getElementById('readme-content').innerHTML = html;
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
console.error('Error loading README:', err);
|
console.error('Error loading FAQ:', err);
|
||||||
document.getElementById('readme-content').innerHTML = '<p>Documentation unavailable.</p>';
|
document.getElementById('readme-content').innerHTML = '<p>Documentation unavailable.</p>';
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user