This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Runable examples #6
Open
Potherca
wants to merge
24
commits into
poef:main
Choose a base branch
from
potherca-contrib:docs/runable-examples
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Potherca
force-pushed
the
docs/runable-examples
branch
from
August 24, 2024 07:13
8dee544
to
77f4586
Compare
- Add original styles from button - Add support for aria labelled button
- Make error message background compatible with dark theme - Make background of code block fill entire width - Remove scroll bar at <script> level - Make empty space between header and content smaller
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This MR add logic to extract all JS and HTML code blocks from the docs, so they can be saved to individual files.
An HTML file with some styling and logic has also been added to run the extracted examples.
To show output,
console.log
has been hijacked to render HTML.As most examples do not show their result, the examples do not always show output.
Which examples should not be shown, can be decided by removing them from the menu in the HTML.
The result can be seen in action at https://contrib.pother.ca/MetroJS/examples/
At this point there are some errors because:
These can be addressed in future MRs.