Initial commit: OOODMDK website with updated cities page design

This commit is contained in:
albivkt
2025-06-29 03:18:28 +03:00
commit 5a37ded261
70 changed files with 41347 additions and 0 deletions

21
scripts/generate-pdf.js Normal file
View File

@ -0,0 +1,21 @@
const fs = require("fs");
const path = require("path");
const markdownpdf = require("markdown-pdf");
const inputFile = path.join(__dirname, "../docs/seo-optimization-report.md");
const outputFile = path.join(__dirname, "../docs/seo-optimization-report.pdf");
const options = {
remarkable: {
html: true,
breaks: true,
typographer: true,
},
cssPath: path.join(__dirname, "pdf-style.css"),
};
markdownpdf(options)
.from(inputFile)
.to(outputFile, function () {
console.log("PDF создан успешно:", outputFile);
});

98
scripts/pdf-style.css Normal file
View File

@ -0,0 +1,98 @@
body {
font-family: "Arial", sans-serif;
line-height: 1.6;
color: #333;
max-width: 210mm;
margin: 0 auto;
padding: 20mm;
}
h1 {
color: #1a365d;
font-size: 24pt;
margin-bottom: 20pt;
text-align: center;
border-bottom: 2pt solid #1a365d;
padding-bottom: 10pt;
}
h2 {
color: #2c5282;
font-size: 18pt;
margin-top: 15pt;
margin-bottom: 10pt;
}
h3 {
color: #2b6cb0;
font-size: 14pt;
margin-top: 12pt;
margin-bottom: 8pt;
}
h4 {
color: #3182ce;
font-size: 12pt;
margin-top: 10pt;
margin-bottom: 6pt;
}
p {
margin-bottom: 8pt;
}
ul,
ol {
margin-bottom: 8pt;
padding-left: 20pt;
}
li {
margin-bottom: 4pt;
}
code {
background-color: #f7fafc;
padding: 2pt 4pt;
border-radius: 3pt;
font-family: "Courier New", monospace;
font-size: 10pt;
}
pre {
background-color: #f7fafc;
padding: 8pt;
border-radius: 5pt;
margin-bottom: 10pt;
white-space: pre-wrap;
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 10pt;
}
th,
td {
border: 1pt solid #e2e8f0;
padding: 6pt;
text-align: left;
}
th {
background-color: #f7fafc;
font-weight: bold;
}
@page {
size: A4;
margin: 20mm;
}
@media print {
a {
text-decoration: none;
color: #2b6cb0;
}
}