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

[Idea]: Make code blocks on website documentation interactive #26

Open
Planeshifter opened this issue Jan 12, 2023 · 0 comments
Open

[Idea]: Make code blocks on website documentation interactive #26

Planeshifter opened this issue Jan 12, 2023 · 0 comments
Labels
difficulty: 4 Likely to be challenging with ambitious goals. idea Potential GSoC project idea. priority: low Low priority. tech: html/css Involves using HTML and CSS. tech: javascript Involves programming in JavaScript. tech: jsx/react Involves programming with React JSX.

Comments

@Planeshifter
Copy link
Member

Planeshifter commented Jan 12, 2023

Idea

Currently, all code blocks in the documentation at https://stdlib.io/docs/api/latest are static. To make example code more useful and engaging, it would be nice to have interactive code shells on the website that could be edited and would provide real-time return annotations.

Some initial brainstorming has been done to inform how this would work, but, at minimum, we'd need to

  • convert READMEs to structured data to allow for more straightforward transformation
  • support dynamic loading of relevant stdlib packages used in example code blocks
  • lazily integrate a code editor into documentation pages
  • implement security measures to prevent malicious usage

Expected Outcomes

Improved user experience on the website, as the code examples would become editable and interactive. Return annotations would have to update in real-time, and additional contextual help could be provided via overlays etc. Another outcome would be to make it easy to switch between ES5 and ES6 for code blocks.

Involved Software

No other software is necessary.

Prerequisite Knowledge

JavaScript, HTML/CSS, React + JSX

Difficulty

Hard.

Project Length

350 hours.

Potential Mentors

@kgryte @Planeshifter @steff456

@Planeshifter Planeshifter added idea Potential GSoC project idea. priority: low Low priority. tech: javascript Involves programming in JavaScript. tech: html/css Involves using HTML and CSS. tech: jsx/react Involves programming with React JSX. difficulty: 4 Likely to be challenging with ambitious goals. labels Jan 12, 2023
@stdlib-js stdlib-js locked and limited conversation to collaborators Jan 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
difficulty: 4 Likely to be challenging with ambitious goals. idea Potential GSoC project idea. priority: low Low priority. tech: html/css Involves using HTML and CSS. tech: javascript Involves programming in JavaScript. tech: jsx/react Involves programming with React JSX.
Projects
None yet
Development

No branches or pull requests

1 participant