Skip to content

Commit 4f1cb04

Browse files
committed
Removed PDF from new website since it's too big for cloudflare pages
1 parent 8b9d968 commit 4f1cb04

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.github/workflows/website-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Install Asciidoctor tooling
5959
run: |
6060
set -euo pipefail
61-
gem install --no-document asciidoctor asciidoctor-pdf rouge
61+
gem install --no-document asciidoctor rouge
6262
6363
- name: Build website
6464
run: |

scripts/website/build.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,19 @@ build_developer_guide_for_site() {
4040
return
4141
fi
4242

43-
if ! command -v asciidoctor >/dev/null 2>&1 || ! command -v asciidoctor-pdf >/dev/null 2>&1; then
43+
if ! command -v asciidoctor >/dev/null 2>&1; then
4444
echo "Asciidoctor tooling is required when WEBSITE_INCLUDE_DEVGUIDE=true." >&2
4545
exit 1
4646
fi
4747

4848
echo "Building fresh Developer Guide for website..." >&2
4949
local output_root="${REPO_ROOT}/build/website-developer-guide"
5050
local html_out="${output_root}/html"
51-
local pdf_out="${output_root}/pdf"
5251
local manual_dir="${WEBSITE_DIR}/static/manual"
5352
local source_dir="${REPO_ROOT}/docs/developer-guide"
5453

5554
rm -rf "${output_root}" "${manual_dir}"
56-
mkdir -p "${html_out}" "${pdf_out}" "${manual_dir}" "${WEBSITE_DIR}/static/files"
55+
mkdir -p "${html_out}" "${manual_dir}"
5756

5857
(
5958
cd "${REPO_ROOT}"
@@ -62,10 +61,6 @@ build_developer_guide_for_site() {
6261
-o developer-guide.html \
6362
docs/developer-guide/developer-guide.asciidoc
6463

65-
asciidoctor-pdf \
66-
-D "${pdf_out}" \
67-
-o developer-guide.pdf \
68-
docs/developer-guide/developer-guide.asciidoc
6964
)
7065

7166
cp "${html_out}/developer-guide.html" "${manual_dir}/index.html"
@@ -78,8 +73,6 @@ build_developer_guide_for_site() {
7873
cp -R "${asset_dir}" "${manual_dir}/"
7974
fi
8075
done
81-
82-
cp "${pdf_out}/developer-guide.pdf" "${WEBSITE_DIR}/static/files/developer-guide.pdf"
8376
}
8477

8578
if ! command -v "${HUGO_BIN}" >/dev/null 2>&1; then

0 commit comments

Comments
 (0)