Skip to content

Commit

Permalink
chore: update pdf script (#2268)
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding authored Feb 22, 2024
1 parent d2a381f commit 5d1de3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ pdf: ## Generate PDF from docs
@echo "generating pdf"
npx docs-to-pdf docusaurus --initialDocURLs="https://docs.spectrocloud.com" --contentSelector="article" --paginationSelector="a.pagination-nav__link.pagination-nav__link--next" \
--excludeSelectors=".margin-vert--xl a,[class^='tocCollapsible'],.breadcrumbs,.theme-edit-this-page" \
--protocolTimeout=6000000 --outputPDFFilename=palette-docs.pdf --coverTitle="Palette Documentation" \
--protocolTimeout=1500000 --outputPDFFilename=palette-docs.pdf --coverTitle="Palette Documentation" \
--coverImage=https://docs.spectrocloud.com/assets/images/docs_introduction_product-overview-80d5488097f9e227a325e252dda42f85.png


pdf-local: start ## Generate PDF from local docs
pdf-local: ## Generate PDF from local docs
@echo "generating pdf"
npx docs-to-pdf docusaurus --initialDocURLs="http://localhost:9000" --contentSelector="article" --paginationSelector="a.pagination-nav__link.pagination-nav__link--next" \
--excludeSelectors=".margin-vert--xl a,[class^='tocCollapsible'],.breadcrumbs,.theme-edit-this-page" \
--protocolTimeout=6000000 --outputPDFFilename=palette-docs.pdf --coverTitle="Palette Documentation" \
--protocolTimeout=1500000 --outputPDFFilename=palette-docs.pdf --coverTitle="Palette Documentation" \
--coverImage=https://docs.spectrocloud.com/assets/images/docs_introduction_product-overview-80d5488097f9e227a325e252dda42f85.png

###@ URL Checks
Expand All @@ -131,4 +131,4 @@ verify-url-links-ci: ## Check for broken URLs in production in a GitHub Actions
npx linkinator https://docs.spectrocloud.com/ --recurse --timeout 60000 --retry --retry-errors-count 3 --skip '^http(?!.*software-private.spectrocloud\\.com).*$'' --skip '^http(?!.*spectrocloud\\.com).*$'' --format json > temp_report.json
jq 'del(.links[] | select(.status <= 200))' temp_report.json > link_report.json
rm temp_report.json
mv link_report.json scripts/
mv link_report.json scripts/

0 comments on commit 5d1de3c

Please sign in to comment.