Skip to content

Adds internal documentation#64

Merged
ufukty merged 5 commits into
mainfrom
cl/3
May 10, 2026
Merged

Adds internal documentation#64
ufukty merged 5 commits into
mainfrom
cl/3

Conversation

@ufukty
Copy link
Copy Markdown
Owner

@ufukty ufukty commented May 9, 2026

@ufukty
Copy link
Copy Markdown
Owner Author

ufukty commented May 9, 2026

While this adds diagrams written with Mermaid.js (mmdc 11.14.0), i didn't add it as a dev dependency as it doubled the package lock file.

Copy link
Copy Markdown
Owner Author

@ufukty ufukty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub still miss img tags with srcset inside Markdown files.

Copy link
Copy Markdown
Owner Author

@ufukty ufukty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for future.

Comment thread CONTRIBUTING.md
Comment on lines +13 to +16
<picture>
<source srcset="./diagrams/structure@2x.png 2x">
<img srcset="./diagrams/structure@2x.png 2x">
</picture>
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for future,

This "hack" works at the moment. But will cause duplicate placements once GitHub or VS Code enhance their srcset support.

This combination seems redundant but each attachment works in either VS Code Markdown Preview or GitHub Markdown Preview.

GitHub seems to allow srcset attribute only on the source tags contained inside picture elements, and VS Code only allows the attribute on the img tags.

Hardcoding the Markdown file for the diagram widths is worse, as they are very dynamic.

Both mediums ignore the other's solution.

Comment thread CONTRIBUTING.md
Comment on lines +24 to +27
<picture>
<source srcset="./diagrams/config-cache@2x.png 2x">
<img srcset="./diagrams/config-cache@2x.png 2x">
</picture>
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

@ufukty ufukty merged commit 1f9e1de into main May 10, 2026
2 checks passed
@ufukty ufukty deleted the cl/3 branch May 10, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Internal documentation

1 participant