Skip to content

Commit

Permalink
Derived user facing delivery items
Browse files Browse the repository at this point in the history
- enhanced html toc generation
- enhanced styles
- added a make file for convenience

Signed-off-by: Stefan Hagen <stefan@hagen.link>
  • Loading branch information
sthagen committed Aug 10, 2024
1 parent 6813142 commit 42e1607
Show file tree
Hide file tree
Showing 9 changed files with 1,398 additions and 1,477 deletions.
9 changes: 9 additions & 0 deletions csaf_2.1/prose/edit/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DEFAULT_GOAL := build
.PHONY: build
build:
bin/volatile.py
cp -a build/tmp.md ../share/csaf-v2.1-draft.md
pandoc -f gfm+definition_lists -t html build/tmp.md --columns=345 --css style/base.css --css style/skin.css --standalone -o build/tmp.html --metadata title="Common Security Advisory Framework Version 2.1 CSD01"
bin/toccata.py
timeout 2 tidy -config etc/tidy-config.txt build/injected.html -ashtml | sed 's/<!\[CDATA\[//g; s/\]\]>//g;' > ../share/csaf-v2.1-draft.html
git status
446 changes: 40 additions & 406 deletions csaf_2.1/prose/edit/bin/toccata.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion csaf_2.1/prose/edit/etc/example-global-to-local.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"93": "multiple-flags-with-vex-justification-codes-per-product-eg-1",
"94": "unused-definition-of-product-id-eg-1",
"95": "missing-remediation-eg-1",
"96": "missing-score-eg-1",
"96": "missing-metric-eg-1",
"97": "build-metadata-in-revision-history-eg-1",
"98": "older-initial-release-date-than-revision-history-eg-1",
"99": "older-current-release-date-than-revision-history-eg-1",
Expand Down
2 changes: 1 addition & 1 deletion csaf_2.1/prose/edit/etc/example-local-to-global.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"missing-item-in-revision-history-eg-1": "70",
"missing-product-identification-helper-eg-1": "109",
"missing-remediation-eg-1": "95",
"missing-score-eg-1": "96",
"missing-metric-eg-1": "96",
"missing-tlp-label-eg-1": "103",
"mixed-integer-and-semantic-versioning-eg-1": "90",
"multiple-definition-in-involvements-eg-1": "73",
Expand Down
33 changes: 18 additions & 15 deletions csaf_2.1/prose/edit/etc/section-display-to-label.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,23 @@
"3.2.4.5": "vulnerabilities-property-flags",
"3.2.4.6": "vulnerabilities-property-ids",
"3.2.4.7": "vulnerabilities-property-involvements",
"3.2.4.8": "vulnerabilities-property-notes",
"3.2.4.9": "vulnerabilities-property-product-status",
"3.2.4.10": "vulnerabilities-property-references",
"3.2.4.11": "vulnerabilities-property-release-date",
"3.2.4.12": "vulnerabilities-property-remediations",
"3.2.4.12.1": "vulnerabilities-property-remediations-category",
"3.2.4.12.2": "vulnerabilities-property-remediations-date",
"3.2.4.12.3": "vulnerabilities-property-remediations-details",
"3.2.4.12.4": "vulnerabilities-property-remediations-entitlements",
"3.2.4.12.5": "vulnerabilities-property-remediations-group-ids",
"3.2.4.12.6": "vulnerabilities-property-remediations-product-ids",
"3.2.4.12.7": "vulnerabilities-property-remediations-restart-required",
"3.2.4.12.8": "vulnerabilities-property-remediations-url",
"3.2.4.13": "vulnerabilities-property-scores",
"3.2.4.8": "vulnerabilities-property-metrics",
"3.2.4.8.1": "vulnerabilities-property-metrics-content",
"3.2.4.8.2": "vulnerabilities-property-metrics-products",
"3.2.4.8.3": "vulnerabilities-property-metrics-source",
"3.2.4.9": "vulnerabilities-property-notes",
"3.2.4.10": "vulnerabilities-property-product-status",
"3.2.4.11": "vulnerabilities-property-references",
"3.2.4.12": "vulnerabilities-property-release-date",
"3.2.4.13": "vulnerabilities-property-remediations",
"3.2.4.13.1": "vulnerabilities-property-remediations-category",
"3.2.4.13.2": "vulnerabilities-property-remediations-date",
"3.2.4.13.3": "vulnerabilities-property-remediations-details",
"3.2.4.13.4": "vulnerabilities-property-remediations-entitlements",
"3.2.4.13.5": "vulnerabilities-property-remediations-group-ids",
"3.2.4.13.6": "vulnerabilities-property-remediations-product-ids",
"3.2.4.13.7": "vulnerabilities-property-remediations-restart-required",
"3.2.4.13.8": "vulnerabilities-property-remediations-url",
"3.2.4.14": "vulnerabilities-property-threats",
"3.2.4.15": "vulnerabilities-property-title",
"4": "profiles",
Expand Down Expand Up @@ -162,7 +165,7 @@
"6.2": "optional-tests",
"6.2.1": "unused-definition-of-product-id",
"6.2.2": "missing-remediation",
"6.2.3": "missing-score",
"6.2.3": "missing-metric",
"6.2.4": "build-metadata-in-revision-history",
"6.2.5": "older-initial-release-date-than-revision-history",
"6.2.6": "older-current-release-date-than-revision-history",
Expand Down
33 changes: 18 additions & 15 deletions csaf_2.1/prose/edit/etc/section-label-to-display.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"missing-item-in-revision-history": "6.1.21",
"missing-product-identification-helper": "6.2.16",
"missing-remediation": "6.2.2",
"missing-score": "6.2.3",
"missing-metric": "6.2.3",
"missing-tlp-label": "6.2.10",
"mixed-integer-and-semantic-versioning": "6.1.30",
"multiple-definition-in-involvements": "6.1.24",
Expand Down Expand Up @@ -239,20 +239,23 @@
"vulnerabilities-property-flags": "3.2.4.5",
"vulnerabilities-property-ids": "3.2.4.6",
"vulnerabilities-property-involvements": "3.2.4.7",
"vulnerabilities-property-notes": "3.2.4.8",
"vulnerabilities-property-product-status": "3.2.4.9",
"vulnerabilities-property-references": "3.2.4.10",
"vulnerabilities-property-release-date": "3.2.4.11",
"vulnerabilities-property-remediations": "3.2.4.12",
"vulnerabilities-property-remediations-category": "3.2.4.12.1",
"vulnerabilities-property-remediations-date": "3.2.4.12.2",
"vulnerabilities-property-remediations-details": "3.2.4.12.3",
"vulnerabilities-property-remediations-entitlements": "3.2.4.12.4",
"vulnerabilities-property-remediations-group-ids": "3.2.4.12.5",
"vulnerabilities-property-remediations-product-ids": "3.2.4.12.6",
"vulnerabilities-property-remediations-restart-required": "3.2.4.12.7",
"vulnerabilities-property-remediations-url": "3.2.4.12.8",
"vulnerabilities-property-scores": "3.2.4.13",
"vulnerabilities-property-metrics": "3.2.4.8",
"vulnerabilities-property-metrics-content": "3.2.4.8.1",
"vulnerabilities-property-metrics-products": "3.2.4.8.2",
"vulnerabilities-property-metrics-source": "3.2.4.8.3",
"vulnerabilities-property-notes": "3.2.4.9",
"vulnerabilities-property-product-status": "3.2.4.10",
"vulnerabilities-property-references": "3.2.4.11",
"vulnerabilities-property-release-date": "3.2.4.12",
"vulnerabilities-property-remediations": "3.2.4.13",
"vulnerabilities-property-remediations-category": "3.2.4.13.1",
"vulnerabilities-property-remediations-date": "3.2.4.13.2",
"vulnerabilities-property-remediations-details": "3.2.4.13.3",
"vulnerabilities-property-remediations-entitlements": "3.2.4.13.4",
"vulnerabilities-property-remediations-group-ids": "3.2.4.13.5",
"vulnerabilities-property-remediations-product-ids": "3.2.4.13.6",
"vulnerabilities-property-remediations-restart-required": "3.2.4.13.7",
"vulnerabilities-property-remediations-url": "3.2.4.13.8",
"vulnerabilities-property-threats": "3.2.4.14",
"vulnerabilities-property-title": "3.2.4.15",
"vulnerability-id": "6.1.27.8",
Expand Down
Loading

0 comments on commit 42e1607

Please sign in to comment.