print css for pdf generation

This commit is contained in:
thomas.ekstrand 2024-02-24 15:45:04 -06:00
parent bfda6f9320
commit 68c5e1e022
3 changed files with 13 additions and 3 deletions

View file

@ -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 .

View file

@ -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",

View file

@ -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;
}
}