mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-02-18 06:46:20 +00:00
Add docs.html to gh-page
This commit is contained in:
20
.github/docs.html
vendored
Normal file
20
.github/docs.html
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
destination = {
|
||||
"filter": "Filter",
|
||||
"date": "Filters#date-filters",
|
||||
"chat": "Filters#chat-filter",
|
||||
"osl": "Open-Source-Licenses",
|
||||
"iose2e": "iOS-Usage#encrypted-iosipados-backup",
|
||||
null: ""
|
||||
};
|
||||
const dest = new URLSearchParams(window.location.search).get('dest');
|
||||
window.location.href = `https://github.com/KnugiHK/WhatsApp-Chat-Exporter/wiki/${destination[dest]}`;
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<p>If the redirection doesn't work, you can find the documentation at <a href="https://github.com/KnugiHK/WhatsApp-Chat-Exporter/wiki">https://github.com/KnugiHK/WhatsApp-Chat-Exporter/wiki</a>.</p>
|
||||
</body>
|
||||
</html>
|
||||
3
.github/generate-website.js
vendored
3
.github/generate-website.js
vendored
@@ -9,6 +9,9 @@ fs.ensureDirSync('docs/imgs');
|
||||
if (fs.existsSync('imgs')) {
|
||||
fs.copySync('imgs', 'docs/imgs');
|
||||
}
|
||||
if (fs.existsSync('.github/docs.html')) {
|
||||
fs.copySync('.github/docs.html', 'docs/docs.html');
|
||||
}
|
||||
|
||||
const readmeContent = fs.readFileSync('README.md', 'utf8');
|
||||
|
||||
|
||||
3
.github/workflows/generate-website.yml
vendored
3
.github/workflows/generate-website.yml
vendored
@@ -2,10 +2,13 @@ name: Generate Website from README
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'README.md'
|
||||
- '.github/workflows/generate-website.yml'
|
||||
- '.github/generate-website.js'
|
||||
- '.github/docs.html'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
Reference in New Issue
Block a user