Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI for v3.0.1 #1093

Closed
wants to merge 144 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
8f0c92e
Update Conformance chapter
bact Jul 24, 2024
9dc515f
Update Terms and Definitions chap
bact Jul 25, 2024
d0ee142
Add achors
bact Jul 25, 2024
2842040
Update Introduction chapter
bact Jul 25, 2024
a7494af
Add Annex F: History, Motivation and Rational
bact Jul 25, 2024
47a1a5c
Remove Annex F contents
bact Jul 25, 2024
7a2c9a9
"SPDX" -> "SPDX 3.0"
bact Jul 25, 2024
dae5f72
Update References chapter
bact Jul 25, 2024
b74bd04
Use https://www.rfc-editor.org/info/rfcXXX
bact Jul 26, 2024
c9af2c6
RFC-xxxx -> RFC xxxx
bact Jul 26, 2024
ad2948a
Update Package URL specification link label
bact Jul 26, 2024
118852e
Update NIST IR 7695 URL
bact Jul 27, 2024
91366cc
Add labels to bare URLs
bact Jul 27, 2024
e4403a5
Update bower and nuget links to match ones in ExternalIdentifierType
bact Jul 27, 2024
c753d8e
"Tool to Tool" -> "Tool-to-Tool"
bact Jul 29, 2024
005d07a
Merge branch 'development/v3.0.1' into update-chap-intro
bact Jul 30, 2024
879dfb5
Merge branch 'development/v3.0.1' into update-chap-reference
bact Jul 30, 2024
70ea801
Merge branch 'development/v3.0.1' into update-chap-terms
bact Jul 30, 2024
1696cb0
Merge branch 'development/v3.0.1' into add-chap-conformance
bact Jul 30, 2024
955564d
Run mike default in deploy environment
bact Jul 31, 2024
134f9d6
Exclude dirs created during build
bact Jul 31, 2024
7c5345e
Update .gitignore and README to match
bact Jul 31, 2024
e6a6301
Push the set-default
bact Jul 31, 2024
608f5b5
Validate with only what necessary
bact Jul 31, 2024
b2b4835
Notes on regeneration of mkdocs config
bact Jul 31, 2024
220099d
Add serialization info + NamespaceMap info
bact Jul 31, 2024
51dd26a
Update serializations.md
bact Jul 31, 2024
f0c3d32
Add note on ontology copy
bact Jul 31, 2024
eb0eb44
Use __MODEL_PLACEHOLDER__
bact Jul 31, 2024
85105d3
XCollection -> SpdxDocument
bact Jul 31, 2024
6e3ed0f
Update 3.0.1 link in README
bact Aug 1, 2024
9f8a2c4
Update annex titles in mkdocs.yml to match titles in files
bact Aug 1, 2024
091d0d5
Update dependencies
bact Aug 2, 2024
41546b4
Test deploy to bact
bact Aug 3, 2024
456ddc6
mike delete v3.0.1-draft
bact Aug 3, 2024
fb9e4ab
Continue process even mike delete fails
bact Aug 3, 2024
0e076e9
Separate mike delete lines
bact Aug 3, 2024
9ef3414
Set site_url to v3.0
bact Aug 3, 2024
e715e7a
Set site_url to v3.0.1
bact Aug 3, 2024
3be7169
Update site_description
bact Aug 3, 2024
e02b9b5
Mark DRAFT
bact Aug 3, 2024
6e4e1e7
Test canonical url
bact Aug 3, 2024
f84cc3b
Set site_url to root
bact Aug 3, 2024
6becebf
Use redirect for alias
bact Aug 3, 2024
6ea6883
Mark the DRAFT
bact Aug 3, 2024
6d1939a
Mark TEST-WEBSITE
bact Aug 3, 2024
7757224
Mark DRAFT
bact Aug 3, 2024
bfcc460
Merge branch 'development/v3.0.1' into add-NamespaceMap-info-to-Seria…
bact Aug 4, 2024
7d629a5
Merge branch 'development/v3.0.1' into update-chap-intro
bact Aug 4, 2024
cf588e0
Merge branch 'development/v3.0.1' into update-chap-reference
bact Aug 4, 2024
05ff53c
Merge branch 'development/v3.0.1' into update-chap-terms
bact Aug 4, 2024
efb94ee
Merge branch 'development/v3.0.1' into add-chap-conformance
bact Aug 4, 2024
974b097
Use a modified spec-parser to see result
bact Aug 5, 2024
d168b54
Add Legacy Text Templte format section back
bact Aug 6, 2024
a8045e1
Update full name
bact Aug 6, 2024
29356fa
Adjust #2 link
bact Aug 6, 2024
c33c80f
Merge branch 'spdx:development/v3.0.1' into test-publish-301-on-bact
bact Aug 6, 2024
ec90aa2
Test navigation sticky
bact Aug 6, 2024
5abbfac
Set sticky_navigation to true
bact Aug 6, 2024
3666225
Use main-with-selected-commits from bact/spdx-3-model
bact Aug 7, 2024
abc50b5
Merge branch 'development/v3.0.1' into add-back-legacy-text-template-…
kestewart Aug 7, 2024
9da9371
Update docs/serializations.md
bact Aug 7, 2024
9b10f4b
Merge branch 'development/v3.0.1' into add-NamespaceMap-info-to-Seria…
bact Aug 7, 2024
35df8e2
shall..at most -> must not..more than
bact Aug 7, 2024
114e220
Merge branch 'development/v3.0.1' into update-chap-reference
bact Aug 7, 2024
15b1ba3
Merge branch 'development/v3.0.1' into update-chap-terms
bact Aug 7, 2024
cf1967b
Merge branch 'development/v3.0.1' into update-chap-intro
bact Aug 7, 2024
0dd667c
Merge branch 'development/v3.0.1' into add-chap-conformance
bact Aug 7, 2024
7c5cea6
Native mechanism: shall -> may
bact Aug 7, 2024
a79c00c
EXAMPLE: -> For example:
bact Aug 7, 2024
1fad59d
\<\<\>\> -> `\<\<\>\>`
bact Aug 7, 2024
fef9c30
Publish date and commit hashes
bact Aug 7, 2024
a0be39a
Use a fingerprint instead of long hash
bact Aug 7, 2024
7b3d860
Fix indent
bact Aug 7, 2024
4991b4c
Validate examples only when necessary
bact Aug 7, 2024
06732eb
Remove theme overrides for now
bact Aug 7, 2024
4a3781b
Test custom footer
bact Aug 7, 2024
376eccc
Remove custom footer for now
bact Aug 7, 2024
561b16c
Fix typo and add link to #C.3.5
bact Aug 7, 2024
a9a59e3
Add internal link to guidelines
bact Aug 8, 2024
0d812ac
Print content generation info footer
bact Aug 8, 2024
0dfd1b4
Merge pull request #1 from bact/validate-examples-only-with-md-files
bact Aug 8, 2024
be284f7
Merge pull request #2 from bact/add-back-legacy-text-template-format-…
bact Aug 8, 2024
356db4c
Merge pull request #3 from bact/add-NamespaceMap-info-to-Serializatio…
bact Aug 8, 2024
f3bbef6
Update footer
bact Aug 8, 2024
b663307
Fix spec hash generation
bact Aug 8, 2024
c10529e
Add missing trailing %
bact Aug 8, 2024
9cada10
Link to a commit
bact Aug 8, 2024
e1622a6
Link to main page (tree) instead of a commit page
bact Aug 8, 2024
e310d02
Merge pull request #4 from bact/update-chap-reference
bact Aug 8, 2024
1b3f7e9
Merge pull request #5 from bact/update-chap-intro
bact Aug 8, 2024
3fbedbd
Update References in nav
bact Aug 8, 2024
ae3219c
Merge pull request #6 from bact/update-chap-terms
bact Aug 8, 2024
5b9e47a
Two updates from dev/v3.0.1
bact Aug 8, 2024
3fd4822
Merge branch 'spdx:development/v3.0.1' into test-publish-301-on-bact
bact Aug 8, 2024
1effd20
Update copyright line with OMG contributors
bact Aug 9, 2024
72c89a5
Remove resf to Annex G and H
bact Aug 9, 2024
86e2df3
Merge branch 'development/v3.0.1' into update-chap-intro
bact Aug 9, 2024
0ffaab8
Merge branch 'development/v3.0.1' into add-chap-conformance
bact Aug 9, 2024
a4a72f4
Merge branch 'development/v3.0.1' into update-chap-intro
bact Aug 9, 2024
017bc9a
Merge branch 'development/v3.0.1' into update-chap-intro
bact Aug 9, 2024
8afa1af
Merge branch 'development/v3.0.1' into add-chap-conformance
bact Aug 9, 2024
41e07b8
Merge branch 'spdx:development/v3.0.1' into test-publish-301-on-bact
bact Aug 9, 2024
fa2b321
Update index.md
bact Aug 9, 2024
113215a
Update and rename ISO_foreword.md to iso-foreword.md
bact Aug 9, 2024
4809cc1
Add chapters for review
bact Aug 9, 2024
10931c7
Resolve conflicts
bact Jul 10, 2024
fd648ee
Remove "TODO"
bact Aug 9, 2024
c05b305
Make images clickable to see full size
bact Aug 9, 2024
902b7af
Merge pull request #8 from bact/cleanup-markdown-2
bact Aug 9, 2024
07bead5
Merge branch 'spdx:development/v3.0.1' into test-publish-301-on-bact
bact Aug 9, 2024
10496b2
Merge branch 'development/v3.0.1' into update-chap-intro
bact Aug 9, 2024
09dae76
Merge branch 'spdx:development/v3.0.1' into add-chap-conformance
bact Aug 10, 2024
107ab46
Put "The" to "The Linux Foundation"
bact Aug 10, 2024
63a0b8b
"The" in "The Linux Foundation" should be first-letter-capitalized
bact Aug 10, 2024
5fe8509
All fullstops
bact Aug 10, 2024
9dc5521
Merge pull request #9 from bact/add-chap-conformance
bact Aug 10, 2024
472a164
Merge pull request #10 from bact/update-chap-intro
bact Aug 10, 2024
0f6961c
Add missing fullstop
bact Aug 10, 2024
ce36ad5
Update to latest changes
bact Aug 12, 2024
83cc638
Add terms-and-definitions.md to pass the CI
bact Aug 12, 2024
1a716fa
Update credits
bact Aug 13, 2024
c3735a4
Merge branch 'development/v3.0.1' of https://github.com/spdx/spdx-spe…
bact Aug 14, 2024
bedb81f
Merge branch 'spdx-development/v3.0.1' into test-publish-301-on-bact
bact Aug 14, 2024
5ed57c0
Update publish_v3.yml
bact Aug 14, 2024
3575fb1
CI for v3.0.1
bact Aug 27, 2024
01551df
Update the strictness of mkdocs
bact Aug 27, 2024
cf2e77a
Merge branch 'development/v3.0.1' into ci-3.0.1
bact Aug 27, 2024
3c7e051
Remove model line for validation
bact Aug 27, 2024
5e13226
Merge branch 'ci-3.0.1' of https://github.com/bact/spdx-spec into ci-…
bact Aug 27, 2024
7dc2e4c
Merge branch 'development/v3.0.1' into ci-3.0.1
bact Aug 27, 2024
fe25567
Update validate_pull_request.yml
bact Aug 27, 2024
2f866f5
Merge branch 'ci-3.0.1' of https://github.com/bact/spdx-spec into ci-…
bact Aug 27, 2024
e6ea3ad
Try double quotes
bact Aug 27, 2024
7dd51e9
Use GNU sed syntax
bact Aug 27, 2024
1f1de6d
Handle __MODEL_PLACEHOLDER__ more nicely
bact Aug 27, 2024
53423cf
Remove obsolete workflows
bact Aug 27, 2024
8c136bc
Merge branch 'development/v3.0.1' into ci-3.0.1
bact Aug 29, 2024
5ca110e
Unify workflow for old and new dir structures
bact Sep 2, 2024
d6fb9ee
Update requirements.txt
bact Sep 2, 2024
20c3abe
Merge branch 'test-publish-301-on-bact' into ci-3.0.1
bact Sep 2, 2024
419d774
Reverting merge
bact Sep 2, 2024
823001a
Fix PARSER_OUTPUT_DIR for old structure
bact Sep 2, 2024
733dce2
Copy spdx-context.jsonld
bact Sep 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 0 additions & 66 deletions .github/workflows/publish.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/publish_common.yml

This file was deleted.

135 changes: 101 additions & 34 deletions .github/workflows/publish_v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,67 +10,134 @@ jobs:
build:
runs-on: ubuntu-latest
container: python:3
env:
PARSER_OUTPUT_DIR: "__parser_output" # temp dir for output from spec-parser
RDF_BASE_DIR: "" # change to "rdf" in new structure
MKDOCS_BASE_DIR: "" # change to "mkdocs" in new structure
MKDOCS_MODEL_YML: "mkdocs-files.yml" # contains list of model Markdown files
BASE_MKDOCS_YML: "mkdocs.yml" # initial MkDocs configuration
FULL_MKDOCS_YML: "__mkdocs-full.yml" # MkDocs configuration combined with model list
GIT_USER_NAME: "ci-bot" # for gh-pages commit
GIT_USER_EMAIL: "[email protected]" # for gh-pages commit
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
- name: Checkout spdx-spec
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
with:
ref: development/v3.0.1
path: spdx-spec
fetch-depth: 0 # Because we will be pushing the gh-pages branch
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
with:
repository: spdx/spec-parser
ref: main
path: spec-parser
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
- name: Checkout spdx-3-model
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
with:
repository: spdx/spdx-3-model
ref: main # for v3.0.1-draft, checkout latest from main (development)
# Once 3.0.1 released, use the following ref to checkout from the release tag
# ref: 3.0.1 # for v3.0.1 final release
path: spdx-3-model
- name: Checkout spec-parser
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
with:
repository: spdx/spec-parser
ref: main
path: spec-parser
- name: Install pre-requisites for spdx-spec
run: pip install -r spdx-spec/requirements.txt
- name: Install pre-requisites for spec-parser
run: pip install -r spec-parser/requirements.txt
- name: Build model files
run: python3 spec-parser/main.py spdx-3-model/model spdx-spec/docs/model
run: python3 spec-parser/main.py spdx-3-model/model $PARSER_OUTPUT_DIR
- name: Create directories for model (MkDocs) and RDF files
run: |
mkdir spdx-spec/docs/rdf
mkdir spdx-spec/docs/model
- name: Copy JSON annotations
run: cp spdx-spec/serialization/jsonld/annotations.ttl spdx-spec/docs/model/jsonld-annotations.ttl
- name: Generate JSON schema
# Will be redirected from https://spdx.org/rdf/3.0.0/spdx-json-serialize-annotations.ttl
# and available at https://spdx.github.io/spdx-spec/v3.0/rdf/jsonld-annotations.ttl
run: |
cp spdx-spec/serialization/jsonld/annotations.ttl spdx-spec/docs/rdf/jsonld-annotations.ttl
cp spdx-spec/serialization/jsonld/annotations.ttl spdx-spec/docs/model/jsonld-annotations.ttl
- name: Copy JSON-LD context and RDFs
# Will be redirected from https://spdx.org/rdf/3.0.0/spdx-context.jsonld, spdx-model.ttl, etc.
# and available at https://spdx.github.io/spdx-spec/v3.0/model/spdx-context.jsonld
run: |
echo "====================="
echo "Source: $PARSER_OUTPUT_DIR/$RDF_BASE_DIR"
echo "---------------------"
ls $PARSER_OUTPUT_DIR/$RDF_BASE_DIR
echo "====================="
cp $PARSER_OUTPUT_DIR/$RDF_BASE_DIR/spdx-context.jsonld spdx-spec/docs/rdf/
cp $PARSER_OUTPUT_DIR/$RDF_BASE_DIR/spdx-model.dot spdx-spec/docs/rdf/
cp $PARSER_OUTPUT_DIR/$RDF_BASE_DIR/spdx-model.json-ld spdx-spec/docs/rdf/
cp $PARSER_OUTPUT_DIR/$RDF_BASE_DIR/spdx-model.pretty-xml spdx-spec/docs/rdf/
cp $PARSER_OUTPUT_DIR/$RDF_BASE_DIR/spdx-model.ttl spdx-spec/docs/rdf/
cp $PARSER_OUTPUT_DIR/$RDF_BASE_DIR/spdx-model.xml spdx-spec/docs/rdf/
cp spdx-spec/docs/rdf/spdx-model.json-ld spdx-spec/docs/rdf/spdx-model.jsonld
echo "====================="
echo "Target (after copy): spdx-spec/docs/rdf"
echo "---------------------"
ls spdx-spec/docs/rdf
echo "====================="
cp $PARSER_OUTPUT_DIR/$RDF_BASE_DIR/spdx-context.jsonld spdx-spec/docs/model/
cp $PARSER_OUTPUT_DIR/$RDF_BASE_DIR/spdx-model.dot spdx-spec/docs/model/
cp $PARSER_OUTPUT_DIR/$RDF_BASE_DIR/spdx-model.json-ld spdx-spec/docs/model/
cp $PARSER_OUTPUT_DIR/$RDF_BASE_DIR/spdx-model.pretty-xml spdx-spec/docs/model/
cp $PARSER_OUTPUT_DIR/$RDF_BASE_DIR/spdx-model.ttl spdx-spec/docs/model/
cp $PARSER_OUTPUT_DIR/$RDF_BASE_DIR/spdx-model.xml spdx-spec/docs/model/
cp spdx-spec/docs/model/spdx-model.json-ld spdx-spec/docs/model/spdx-model.jsonld
echo "====================="
echo "Target (after copy): spdx-spec/docs/model"
echo "---------------------"
ls spdx-spec/docs/model
echo "====================="
- name: Generate JSON schema -- OLD DIR STRUCTURE
# Will be redirected from https://spdx.org/schema/3.0.0/spdx-json-schema.json
# and available at https://spdx.github.io/spdx-spec/v3.0/model/schema.json
run: |
shacl2code generate \
--input spdx-spec/docs/model/spdx-model.ttl \
--input spdx-spec/docs/model/jsonld-annotations.ttl \
--context-url spdx-spec/docs/model/spdx-context.jsonld https://spdx.org/rdf/3.0.1/spdx-context.jsonld \
--input spdx-spec/docs/rdf/spdx-model.ttl \
--input spdx-spec/docs/rdf/jsonld-annotations.ttl \
--context-url spdx-spec/docs/rdf/spdx-context.jsonld https://spdx.org/rdf/3.0.1/spdx-context.jsonld \
jsonschema \
--output spdx-spec/docs/model/schema.json
- name: Set git identity
--output spdx-spec/docs/rdf/schema.json
cp spdx-spec/docs/rdf/schema.json spdx-spec/docs/model/schema.json
- name: Copy model files and file list for MkDocs
# Will be available at https://spdx.github.io/spdx-spec/v3.0/model/*
run: |
cp -R $PARSER_OUTPUT_DIR/$MKDOCS_BASE_DIR/* spdx-spec/docs/model
cp $PARSER_OUTPUT_DIR/$MKDOCS_MODEL_YML spdx-spec
- name: Set Git identity
working-directory: spdx-spec
run: git config user.name ci-bot; git config user.email [email protected]
run: git config user.name $GIT_USER_NAME; git config user.email $GIT_USER_EMAIL
- name: Sync gh-pages
working-directory: spdx-spec
run: git checkout gh-pages && git pull && git checkout development/v3.0.1
- name: Build docs and set aliases
- name: Build complete MkDocs configuration
working-directory: spdx-spec
run: |
MODEL_YML="docs/model/mkdocs-files.yml"
BASE_MKDOCS_YML="mkdocs.yml"
FINAL_MKDOCS_YML="mkdocs-final.yml"
echo "Build $FINAL_MKDOCS_YML from $BASE_MKDOCS_YML and $MODEL_YML"
sed -e "\|- model.*#.*[MODEL_PLACEHOLDER].*|{
r $MODEL_YML
echo "Build $FULL_MKDOCS_YML from $BASE_MKDOCS_YML and $MKDOCS_MODEL_YML"
sed -e "\|- model.*#.*__MODEL_PLACEHOLDER__.*|{
r $MKDOCS_MODEL_YML
a\\

d
}" "$BASE_MKDOCS_YML" > "$FINAL_MKDOCS_YML"
echo "====================="
echo "Start mike deploy"
}" "$BASE_MKDOCS_YML" > "$FULL_MKDOCS_YML"
sed -i "/__MODEL_PLACEHOLDER__/d" "$FULL_MKDOCS_YML"
echo "====================="
mike deploy --update-aliase --config-file "$FINAL_MKDOCS_YML" --branch gh-pages --push v3.0.1-draft
# Once 3.0.1 released, use the following command to deploy 3.0.1 as latest version
# mike deploy --update-aliase --config-file "$FINAL_MKDOCS_YML" --branch gh-pages --push v3.0.1 latest
# - name: Set default version
# working-directory: spdx-spec
# run: mike set-default v3.0
# Once 3.0.1 released, use the following command to set 3.0.1 as default version
# run: mike set-default v3.0.1
echo "$FULL_MKDOCS_YML"
echo "---------------------"
cat "$FULL_MKDOCS_YML"
echo "[End of File]"
- name: Deploy and set aliases
working-directory: spdx-spec
run: |
mike delete --config-file "$FULL_MKDOCS_YML" --branch gh-pages --push --allow-empty v3.0 || true
mike delete --config-file "$FULL_MKDOCS_YML" --branch gh-pages --push --allow-empty v3.0.1-draft || true
mike deploy --update-aliase --config-file "$FULL_MKDOCS_YML" --branch gh-pages --push v3.0.1 v3.0.1-draft v3-draft v3.0-RC1 v3.0-RC2 v3.0 latest
mike set-default --config-file "$FULL_MKDOCS_YML" --branch gh-pages --push v3.0.1
# Explanations of the above mike steps:
# 1) delete existing v3.0 alias/deployment, if exists
# 2) delete existing v3.0.1-draft alias/deployment, if exists
# 3) deploy v3.0.1, with aliases (v3.0.1-draft, v3-draft, v3.0-RC1, v3.0-RC2, v3.0 latest)
# 4) set default version to v3.0.1
# A script for additional redirections will be run after this point
# See https://github.com/spdx/spdx-spec/issues/1069
51 changes: 10 additions & 41 deletions .github/workflows/validate_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,13 @@ jobs:
runs-on: ubuntu-latest
container: python:3
steps:
- name: Checkout spdx-spec
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
with:
path: spdx-spec
fetch-depth: 1
- name: Checkout spdx-3-model
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
with:
repository: spdx/spdx-3-model
ref: main
path: spdx-3-model
- name: Checkout spec-parser
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
with:
repository: spdx/spec-parser
ref: main
path: spec-parser
- name: Install pre-requisites for spdx-spec
run: pip install -r spdx-spec/requirements.txt
- name: Install pre-requisites for spec-parser
run: pip install -r spec-parser/requirements.txt
- name: Build model files
run: python3 spec-parser/main.py spdx-3-model/model spdx-spec/docs/model
- name: Build the site to validate
working-directory: spdx-spec
run: |
MODEL_YML="docs/model/mkdocs-files.yml"
BASE_MKDOCS_YML="mkdocs.yml"
FINAL_MKDOCS_YML="mkdocs-final.yml"
echo "Build $FINAL_MKDOCS_YML from $BASE_MKDOCS_YML and $MODEL_YML"
sed -e "\|- model.*#.*[MODEL_PLACEHOLDER].*|{
r $MODEL_YML
a\\

d
}" "$BASE_MKDOCS_YML" > "$FINAL_MKDOCS_YML"
echo "====================="
echo "Start mkdocs build"
echo "====================="
ENABLE_PDF_EXPORT=0 mkdocs build --clean --config-file "$FINAL_MKDOCS_YML" --verbose
# Build without the time-consuming PDF export
- name: Checkout spdx-spec
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
with:
fetch-depth: 1
- name: Install pre-requisites
run: pip install -r requirements.txt
- name: Build the site to validate (use mkdocs.yml, no model files, no PDF export)
run: ENABLE_PDF_EXPORT=0 mkdocs build --clean --verbose
# To validate the PR from within spdx-spec repo, build using mkdocs.yml
# (no model files) and without the time-consuming PDF export
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _book/
dist/
site/

# Ignore all hidden files/dirs except .gitignore
# Ignore all hidden files/dirs except .gitignore and .github
.*
!/.gitignore
!/.github
Expand All @@ -28,3 +28,9 @@ node_modules/
Thumbs.db
Thumbs.db:encryptable
*.lnk

# Build temporary directory
.env
logs/
__pycache__/
__mkdocs-full.yml
Loading