Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ async function loadDescription() {

const description = document.querySelector('#description');
description.innerHTML = html_readme || '';
__format_HTML(description);
}

/**
Expand Down Expand Up @@ -76,3 +77,10 @@ async function loadConfigs() {
const data = await req.json();
return data;
}

function __format_HTML(ctn) {
const h1 = document.querySelector('#title-head');
const title_reame = ctn.querySelector('#dev2forgehttpswwwdev2forgesoftwaredocumentationportal');
h1.innerHTML = title_reame.innerHTML;
title_reame.remove();
}
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<!-- Header -->
<header class="w-full flex justify-between items-center p-6 flex-shrink-0">
<div class="w-full text-center">
<h1 class="text-3xl font-bold inline">Docs for Dev2Forge projects</h1>
<h1 class="text-3xl font-bold inline" id="title-head"></h1>
</div>
</header>

Expand Down