Skip to content

Commit

Permalink
Merge pull request #36 from wbcsd/variables
Browse files Browse the repository at this point in the history
Use Text Macro for current version
  • Loading branch information
raimundo-henriques authored Dec 20, 2023
2 parents c5e489a + 1c74b47 commit dae36f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions spec/v2/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
DIAGRAMS := $(patsubst %.mmd,%.svg,$(wildcard diagrams/*.mmd))
OUTDIR := ../upload/v2
MMDC := ./node_modules/.bin/mmdc
MMDC := mmdc

all: index.html

clean:
rm -f docs/index.html docs/diagrams/*.svg index.html $(DIAGRAMS)
rm -rf node_modules
rm -rf node_modules/

publish: index.html
mkdir -p $(OUTDIR)/diagrams
Expand All @@ -23,6 +23,6 @@ serve: $(DIAGRAMS)
bikeshed serve index.bs

$(MMDC):
npm install @mermaid-js/mermaid-cli
npm install -g @mermaid-js/mermaid-cli

.PHONY: publish clean serve
11 changes: 6 additions & 5 deletions spec/v2/index.bs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<pre class='metadata'>
Title: Technical Specifications for PCF Data Exchange (Version 2.1.0)
Text Macro: VERSION 2.1.0
Shortname: data-exchange-protocol
Level: 1
Status: LD
Expand Down Expand Up @@ -206,7 +207,7 @@ A ProductFootprint has the following properties:
<td>String
<td>M
<td>
The version of the ProductFootprint data specification with value `2.1.0`.
The version of the ProductFootprint data specification with value <code>[VERSION]</code>.

Advisement: Subsequent revisions will update this value according to [Semantic Versioning 2.0.0](https://semver.org/lang/en/).
<tr>
Expand Down Expand Up @@ -836,9 +837,9 @@ See [[!DATA-MODEL-EXTENSIONS]] for technical details and [[!EXTENSIONS-GUIDANCE]
<div class=example>
Example imaginary Data Model Extension for encoding shipment-related data, encoded in JSON:

```json
<pre highlight=json>
{
"specVersion": "2.0.0",
"specVersion": "[VERSION]",
"dataSchema": "https://catalog.carbon-transparency.com/shipment/1.0.0/data-model.json",
"data": {
"shipmentId": "S1234567890",
Expand All @@ -848,7 +849,7 @@ Example imaginary Data Model Extension for encoding shipment-related data, encod
"transportChainElementId": "ABCDEFGHI"
}
}
```
</pre>
</div>


Expand Down Expand Up @@ -1546,7 +1547,7 @@ A [=host system=] requires a [=data recipient=] to first authenticate before suc
2. otherwise, data recipient using [=AuthHostname=]`/`[=AuthSubpath=]`/auth/token` as the [=AuthEndpoint=] in the next step.
3. data recipient retrieving the [=access token=] from [=AuthEndpoint=] (see [[#api-action-auth-request]]).

Note: The [=authentication flow=] is defined such that a Version 2.1 data recipient can authenticate against host versions irrespective of their support for OpenID-Connect.
Note: The [=authentication flow=] is defined such that a Version [VERSION] data recipient can authenticate against host versions irrespective of their support for OpenID-Connect.

<figure>
<img src="diagrams/authentication-flow.svg" >
Expand Down

0 comments on commit dae36f5

Please sign in to comment.