mirror of
https://github.com/meshtastic/meshtastic.git
synced 2025-01-12 14:27:45 -08:00
print css for pdf generation
This commit is contained in:
parent
bfda6f9320
commit
68c5e1e022
2
.github/workflows/pdf.yml
vendored
2
.github/workflows/pdf.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
|||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --global user.name "GitHub Actions Bot"
|
||||
git clone --single-branch -b docs https://github.com/meshtastic/artifacts.git --depth=1
|
||||
DATE_TIME=$(date +'%Y-%m-%d_%H-%M-%S')
|
||||
DATE_TIME=$(date +'%Y-%m-%d_%H-%M')
|
||||
mv ./pdf/Meshtastic-Documentation.pdf ./artifacts/Meshtastic-Documentation-${DATE_TIME}_${{ github.sha }}.pdf
|
||||
cd artifacts
|
||||
git add .
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"swizzle": "docusaurus swizzle",
|
||||
"serve": "docusaurus serve",
|
||||
"clear": "docusaurus clear",
|
||||
"pdf": "npm docusaurus-prince-pdf -u https://meshtastic.org/docs/about/ --dest ./static/documents/pdf --output ./static/documents/pdf/Meshtastic-Documentation.pdf"
|
||||
"pdf": "npx docusaurus-prince-pdf -u http://localhost:3000/docs/hardware/devices/rak/base-board/ --dest ./static/documents/pdf --output ./static/documents/pdf/Meshtastic-Documentation.pdf"
|
||||
},
|
||||
"dependencies": {
|
||||
"@algolia/client-search": "^4.22.1",
|
||||
|
|
|
@ -228,4 +228,14 @@ th,
|
|||
td {
|
||||
padding-left: 10px !important;
|
||||
padding-right: 10px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Need all tab content to show for PDF generation */
|
||||
@media print {
|
||||
ul.tabs {
|
||||
display: none;
|
||||
}
|
||||
.tabs-container div > div {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue