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
docs: Describe relations with and between specs #211
Conversation
@@ -9,7 +9,8 @@ | |||
"parser", | |||
"javascript", | |||
"DOMParser", | |||
"XMLSerializer" | |||
"XMLSerializer", | |||
"ponyfill" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<3
docs/puml.sh
Outdated
function svg { | ||
if [[ -f "docs/$1.puml" ]] ; then | ||
echo "updating docs/$1.svg" | ||
< "docs/$1.puml" docker run --rm -i karfau/plantuml:$PLANTUML_VERSION -pipe -tsvg -nometadata > "docs/$1.svg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For people like me who don't have so much extra horsepower to run Docker on my laptop, do you think it will work if I would use Ubuntu on the cloud? Would you recommend any resources if I need to install or configure anything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The alternatives to using docker are
- either have java installed and download the plantuml.jar and use the command
< "docs/$1.puml" java -jar path/to/plantuml.jar -pipe ...
instead. I added this as an option to the script, but depending on some OS dependencies (e.g. graphviz) versions the output can differ (this is what happened when I tried it locally). - or use the web interface http://www.plantuml.com/plantuml/uml/SyfFKj2rKt3CoKnELR1Io4ZDoSa70000 (but I think it includes
metadata
which causes the generated to change every time)
Or we could of course also use some other format for creating images/diagrams for documentation purposes. This is just the one that supports many styles and I know how to use it.
I would favor linking into MDN API documents in some (more?) places. This looks really awesome in general. I may need 1-2 weeks or so to go through this more carefully, please ping me in case I slip on this one. |
I think this is a good idea when linking to API docs, but the main purpose of this PR is to clarify the relations to those specs. |
Since it's not that helpful at the beginning of the README. We will link to it when we either have a specific file about the topic of contribution docs.
I changed that, for now the architecture (which is anyways more for internal use), is not linked anywhere.
Ping @brodybits |
I may need another week or so due to some other things that popped up, my apologies. |
@brodybits Would love to get this landed, so that I can access those docs from master. |
I will try to review this over the weekend (Sunday), please follow up in case I miss again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I think this looks really good, left a few nits.
|
||
## Specs | ||
|
||
![Related specifications](docs/specs.svg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I don't know how accessible embedding this SVG would be to the visually impaired.
My understanding is that the visually impaired are able to read many websites with help from tools such as text-to-speech.
And another understanding is that at least in some parts of North America, free websites need to be accessible since they are considered public resources, and some less-abled people can sue website owners for websites that are not accessible enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would assume that an SVG is more accessible than a PNG file, since it contains the text elements in a semantic manner.
I believe the related PUML file might even be less accessible because of it's weird syntax.
But I also have no clue if there would be a way to list this information in a textual manner including the relationships...
Of course I have no clue about the north american regulations.
Any recommendation?
I think that this is in any way a good starting point since it allows easier access to the related specs, even though not to everyone. Once we discussed which ones we consider relevant for our development we should be able to come up with a shortened textual representation with links to those relevant specs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this is in any way a good starting point
👍 agreed on my part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And a minor nit, maybe not worth addressing, is that I would generally rather use Excalidraw for UML and other software diagrams. It is 100% open-source and I think it works via web or local Node.js.
Just wanted to add my perspective, which is why I created the diagrams this way: I personally prefer generating diagrams from some kind of source code, so they can be maintained and it's possible to ad comments to explain the thoughts behind it. Such a source code often also allows some semantic structuring which is harder to maintain with some visual tool or by hand writing SVGs. I'm fine if there would be some decision to another format at any point in time and willing to port this diagram over if suitable and possible. But for now I would not want to look for other options myself. |
Co-authored-by: Chris Brody <git.brodybits@gmail.com>
and improve script name and comments in PUML files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @karfau, all arguments sound reasonable to me.
@brodybits Do you think we can mark this PR as resolving #119 ? Update: I just read through the issue again and I think this PR coveres everything. |
Co-authored-by: Chris Brody <git.brodybits@gmail.com>
Fixes #119 and also gives some orientation while working on #203