mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-06-04 07:05:33 +00:00
Update generate-website.js
This commit is contained in:
30
.github/generate-website.js
vendored
30
.github/generate-website.js
vendored
@@ -12,6 +12,17 @@ if (fs.existsSync('imgs')) {
|
|||||||
|
|
||||||
const readmeContent = fs.readFileSync('README.md', 'utf8');
|
const readmeContent = fs.readFileSync('README.md', 'utf8');
|
||||||
|
|
||||||
|
const toc = `<div class="table-of-contents">
|
||||||
|
<h3>Table of Contents</h3>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#intro">Introduction</a></li>
|
||||||
|
<li><a href="#usage">Usage</a></li>
|
||||||
|
<li><a href="#todo">To Do</a></li>
|
||||||
|
<li><a href="#legal">Legal Stuff & Disclaimer</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
|
||||||
const generateHTML = (content) =>
|
const generateHTML = (content) =>
|
||||||
`<!DOCTYPE html>
|
`<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
@@ -366,20 +377,6 @@ const generateHTML = (content) =>
|
|||||||
|
|
||||||
<div class="main-content">
|
<div class="main-content">
|
||||||
<div class="inner-content">
|
<div class="inner-content">
|
||||||
<div class="table-of-contents">
|
|
||||||
<h3>Table of Contents</h3>
|
|
||||||
<ul>
|
|
||||||
<li><a href="#intro">Introduction</a></li>
|
|
||||||
<li><a href="#usage">Usage</a></li>
|
|
||||||
<li><a href="#todo">To Do</a></li>
|
|
||||||
<li><a href="#legal">Legal Stuff & Disclaimer</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="readme-content">
|
|
||||||
${content}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<section id="features">
|
<section id="features">
|
||||||
<h2>Key Features</h2>
|
<h2>Key Features</h2>
|
||||||
|
|
||||||
@@ -422,6 +419,11 @@ const generateHTML = (content) =>
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<div class="readme-content">
|
||||||
|
${content}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="action-buttons">
|
<div class="action-buttons">
|
||||||
<a href="https://github.com/KnugiHK/WhatsApp-Chat-Exporter" class="btn"><i class="fab fa-github"></i> View on GitHub</a>
|
<a href="https://github.com/KnugiHK/WhatsApp-Chat-Exporter" class="btn"><i class="fab fa-github"></i> View on GitHub</a>
|
||||||
<a href="https://pypi.org/project/whatsapp-chat-exporter/" class="btn btn-secondary"><i class="fab fa-python"></i> PyPI Package</a>
|
<a href="https://pypi.org/project/whatsapp-chat-exporter/" class="btn btn-secondary"><i class="fab fa-python"></i> PyPI Package</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user