mirror of
https://github.com/meshtastic/meshtastic.git
synced 2025-03-05 21:00:08 -08:00
Remove PDF Generation Until We Can Fix (#1676)
* remove until we can fix * remove from downloads too
This commit is contained in:
parent
3e2111bb08
commit
5ce24759f1
36
.github/workflows/pdf.yml
vendored
36
.github/workflows/pdf.yml
vendored
|
@ -1,36 +0,0 @@
|
||||||
name: Generate Documentation PDF
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- closed
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Get filename with date and sha
|
|
||||||
run: |
|
|
||||||
DATE_TIME=$(date +'%Y-%m-%d_%H-%M')
|
|
||||||
echo "filename=Meshtastic-Documentation-${DATE_TIME}-${{ github.sha }}.pdf" >> $GITHUB_OUTPUT
|
|
||||||
id: filename
|
|
||||||
|
|
||||||
- name: Install Prince
|
|
||||||
run: |
|
|
||||||
curl https://www.princexml.com/download/prince-15.3-linux-generic-x86_64.tar.gz -O
|
|
||||||
tar zxf prince-15.3-linux-generic-x86_64.tar.gz
|
|
||||||
cd prince-15.3-linux-generic-x86_64
|
|
||||||
yes "" | sudo ./install.sh
|
|
||||||
|
|
||||||
- name: Build PDF
|
|
||||||
run: npx docusaurus-prince-pdf -u https://meshtastic.org/docs/about/ --dest ./ --output ./${{ steps.filename.outputs.filename }}
|
|
||||||
|
|
||||||
- name: Create request artifacts
|
|
||||||
if: github.event.pull_request.merged
|
|
||||||
uses: gavv/pull-request-artifacts@v2.1.0
|
|
||||||
with:
|
|
||||||
commit: ${{ (github.event.pull_request_target || github.event.pull_request).head.sha }}
|
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
artifacts-token: ${{ secrets.ARTIFACTS_TOKEN }}
|
|
||||||
artifacts-repo: meshtastic/artifacts
|
|
||||||
artifacts-branch: docs
|
|
||||||
artifacts: ./${{ steps.filename.outputs.filename }}
|
|
|
@ -216,39 +216,6 @@ const Firmware = (): JSX.Element => {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/* */}
|
|
||||||
<h1 className="m-2">Documentation</h1>
|
|
||||||
<div className="flex w-full overflow-hidden rounded-xl">
|
|
||||||
<div className="flex w-1/5 bg-gradient-to-r from-blue-500 to-primary">
|
|
||||||
<DocumentIcon className="m-auto h-20" />
|
|
||||||
</div>
|
|
||||||
<div className="flex w-full flex-col bg-primary lg:flex-row">
|
|
||||||
<div className="card m-4 border-2 border-secondary">
|
|
||||||
<div className="card__header">
|
|
||||||
<h3>PDF</h3>
|
|
||||||
</div>
|
|
||||||
<div className="card__body flex items-center">
|
|
||||||
<div className="m-auto">
|
|
||||||
<GlobeAltIcon className="h-20 w-20" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="card__body">
|
|
||||||
Current Meshtastic.org documentation compiled for offline use
|
|
||||||
</div>
|
|
||||||
<div className="card__footer mt-auto">
|
|
||||||
<a
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
href="https://github.com/meshtastic/artifacts/tree/docs"
|
|
||||||
className="m-auto flex rounded-lg border-4 border-transparent bg-gray-100 p-1 font-semibold text-black shadow-md hover:text-black hover:brightness-110 active:border-green-200"
|
|
||||||
>
|
|
||||||
GitHub
|
|
||||||
<ArrowTopRightOnSquareIcon className="m-auto ml-2 h-4" />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue