Skip to content
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

Add code view to example pages #2

Open
5 tasks
nateplusplus opened this issue Dec 21, 2022 · 1 comment
Open
5 tasks

Add code view to example pages #2

nateplusplus opened this issue Dec 21, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@nateplusplus
Copy link
Owner

nateplusplus commented Dec 21, 2022

Example pages like https://pushinjs.com/examples/simple/ could use an easy way to see the source code, so that they can be used as code examples.

  • Add sub-navigation to example pages
  • Options for subnav: Result, Vanilla, React
    • Clicking on Result should show the example as a demo
    • Clicking on Vanilla should show plain HTML and vanilla JS code used to create the example
    • Clicking on React should show a React code snippet that can be used to create the example
@nateplusplus
Copy link
Owner Author

Worth consideration: https://developer.stackblitz.com/platform/api/javascript-sdk

I'm not sure if it's exactly what we're after here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant