File tree Expand file tree Collapse file tree 6 files changed +19
-19
lines changed
Expand file tree Collapse file tree 6 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 1515 run : |
1616 make -C docs/tools/
1717 docker run -v `pwd`/docs/v1:/usr/src/p4-spec p4lang/p4rt-asciidoc make
18- ls docs/v1/P4Runtime-Spec.pdf
19- ls docs/v1/P4Runtime-Spec.html
18+ ls docs/v1/build
2019 - name : Upload spec to S3 if needed
2120 if : ${{ github.actor != 'dependabot[bot]' }}
2221 uses :
jakejarvis/[email protected] 2726 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
2827 AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2928 AWS_REGION : ' us-west-2'
30- SOURCE_DIR : ' docs/v1'
29+ SOURCE_DIR : ' docs/v1/build '
3130 DEST_DIR : ci/${{ github.ref_name }} # only runs for push events
Original file line number Diff line number Diff line change 1818 run : |
1919 make -C docs/tools/
2020 docker run -v `pwd`/docs/v1:/usr/src/p4-spec p4lang/p4rt-asciidoc make
21- ls docs/v1/P4Runtime-Spec.pdf
22- ls docs/v1/P4Runtime-Spec.html
21+ ls docs/v1/build
2322 - name : Upload spec to S3
2423 uses :
jakejarvis/[email protected] 2524 with :
@@ -29,15 +28,14 @@ jobs:
2928 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
3029 AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
3130 AWS_REGION : ' us-west-2'
32- SOURCE_DIR : ' docs/v1'
31+ SOURCE_DIR : ' docs/v1/build '
3332 DEST_DIR : docs/main
3433 - name : Prepare spec for upload to gh-pages
3534 run : |
3635 git checkout gh-pages
3736 mkdir -p spec
3837 rm -rf spec/main
39- cp docs/v1/P4Runtime-Spec.html spec/main
40- cp docs/v1/P4Runtime-Spec.pdf spec/main
38+ cp -r docs/v1/build spec/main
4139 - name : Upload spec to gh-pages
4240 uses : EndBug/add-and-commit@v9
4341 with :
Original file line number Diff line number Diff line change 2727 run : |
2828 make -C docs/tools/
2929 docker run -v `pwd`/docs/v1:/usr/src/p4-spec p4lang/p4rt-asciidoc make build_spec_with_images
30- ls docs/v1/P4Runtime-Spec.pdf
31- ls docs/v1/P4Runtime-Spec.html
30+ ls docs/v1/build
Original file line number Diff line number Diff line change 2020 run : |
2121 make -C docs/tools/
2222 docker run -v `pwd`/docs/v1:/usr/src/p4-spec p4lang/p4rt-asciidoc make
23- ls docs/v1/P4Runtime-Spec.pdf
24- ls docs/v1/P4Runtime-Spec.html
23+ ls docs/v1/build
2524 - name : Upload spec to S3
2625 uses :
jakejarvis/[email protected] 2726 with :
3837 git checkout gh-pages
3938 mkdir -p spec
4039 rm -rf spec/$TAG
41- cp docs/v1/P4Runtime-Spec.html spec/$TAG
42- cp docs/v1/P4Runtime-Spec.pdf spec/$TAG
40+ cp -r docs/v1/build spec/$TAG
4341 - name : Upload spec to gh-pages
4442 uses : EndBug/add-and-commit@v9
4543 with :
Original file line number Diff line number Diff line change 11# Emacs
22* ~
3+ docs /v1 /build /
34.DS_Store
45build
56dist
Original file line number Diff line number Diff line change @@ -5,22 +5,27 @@ ROUGE_CSS=style
55
66all : ${SPEC}.pdf ${SPEC}.html
77
8+ folder :
9+ mkdir -p build
10+
811build :
912
10- ${SPEC}.pdf : ${SPEC}.adoc images
13+ ${SPEC}.pdf : ${SPEC}.adoc images folder
1114 time asciidoctor-pdf -v \
1215 -a pdf-fontsdir=resources/fonts \
1316 -r asciidoctor-mathematical \
1417 -r asciidoctor-bibtex \
1518 -r asciidoctor-lists \
16- -a rouge-style=$(ROUGE_STYLE ) $<
19+ -a rouge-style=$(ROUGE_STYLE ) \
20+ -D build $<
1721
18- ${SPEC}.html : ${SPEC}.adoc images
22+ ${SPEC}.html : ${SPEC}.adoc images folder
1923 time asciidoctor -v \
2024 -r asciidoctor-mathematical \
2125 -r asciidoctor-bibtex \
2226 -r asciidoctor-lists \
23- -a rouge-css=$(ROUGE_CSS ) $<
27+ -a rouge-css=$(ROUGE_CSS ) \
28+ -D build $<
2429
2530images :
2631 soffice --convert-to svg --outdir resources/figs resources/figs/* .odg > /dev/null 2>&1
@@ -29,4 +34,4 @@ images:
2934build_spec_with_images : images all
3035
3136clean :
32- /bin/rm -f ${SPEC} .pdf ${SPEC} .html
37+ /bin/rm -rf build resources/figs/ * .png resources/figs/ * .svg
You can’t perform that action at this time.
0 commit comments