Re: [whatwg/storage] Editorial: Add a diagram for storage model (PR #152)

@saschanaz commented on this pull request.



> @@ -21,3 +21,7 @@ local: storage.bs
 deploy: storage.bs
  curl --remote-name --fail https://resources.whatwg.org/build/deploy.sh
  bash ./deploy.sh
+
+build-diagram: assets/model-diagram.mmd
+ mmdc -i assets/model-diagram.mmd -o assets/model-diagram.svg -c assets/mmdc.config.json
+ svgo -f assets -o assets/ --config assets/svgo.config.js

Hmm, in that case I'll add package.json instead.

> @@ -0,0 +1,11 @@
+erDiagram
+
+%% This is the source file for `model-diagram.svg`.
+%% Prerequisites: `npm i -g @mermaid-js/mermaid-cli svgo`
+%% Build command: `make model-diagram`
+
+"User agent" ||--|| "Storage shed" : "holds (local)"
+"Browsing session" ||--|| "Storage shed" : "holds (session)"
+"Storage shed" ||--o{ "Storage shelf" : "for each storage key"
+"Storage shelf" ||--|| "Storage bucket" : "holds (default)"
+"Storage bucket" ||--|{ "Storage bottle" : "for each storage endpoint"

I'm not sure about that either, diagrams tend to have the cases this way.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/storage/pull/152#discussion_r1029232062
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/storage/pull/152/review/1189902671@github.com>

Received on Tuesday, 22 November 2022 12:03:51 UTC