Release cycle chart: show suggestion if JavaScript disabled by hugovk · Pull Request #997 · python/devguide · GitHub
Skip to content

Release cycle chart: show suggestion if JavaScript disabled - #997

Merged
hugovk merged 1 commit into
python:mainfrom
hugovk:mermaid-noscript
Dec 6, 2022
Merged

Release cycle chart: show suggestion if JavaScript disabled#997
hugovk merged 1 commit into
python:mainfrom
hugovk:mermaid-noscript

Conversation

@hugovk

@hugovk hugovk commented Dec 5, 2022

Copy link
Copy Markdown
Member

Follow on from #988.

Visit https://devguide.python.org/versions/.


Before: with JavaScript enabled

image


Before: with JavaScript disabled

image


After: with JavaScript disabled

Instead, hide chart code and advise the user to enable JS if they wish to see the chart:

image

Uses the advice at https://florianbrinkmann.com/en/css-rules-when-javascript-is-disabled-4536/


Demo

https://cpython-devguide--997.org.readthedocs.build/versions/

@ezio-melotti ezio-melotti left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is an improvement compared to what we have now, but have you considered creating a static image from mermaid at build time (if possible)? This will make it easier to share/embed too.

@CAM-Gerlach

Copy link
Copy Markdown
Member

@CAM-Gerlach CAM-Gerlach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, FWIW—too bad we have to rely on raw, but I guess it isn't so bad for the devguide.

@hugovk

hugovk commented Dec 6, 2022

Copy link
Copy Markdown
Member Author

@hugovk
hugovk merged commit c4d2e67 into python:main Dec 6, 2022
@hugovk
hugovk deleted the mermaid-noscript branch December 6, 2022 09:20
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.

4 participants