Skip to content

Conversation

@rschroll
Copy link
Contributor

The code snippet in the README can (and has) easily fall out of date, compared to the actual code in the preamble. Instead of hoping that they are kept in sync, this loads in the Markdown file and displays the section between two markers. It assumes that the URL of the markdown file can be found in the query string. I don't know how good of an assumption this is.

I'm not sure that this is a good idea. In addition to the worry noted above, this means that the code won't be displayed when the file is viewed on GitHub. But I thought I'd toss the idea out there.

This assumes that we can find the URL of that document in the query
string.
@andre-dietrich
Copy link
Contributor

That is a good point ... I am not sure either? Originally, the implementation section was used to allow others to copy and paste all required code, before we had implemented the ability to import this directly from foreign documents ... One thing could be to add a link to the liveeditor that displays the entire code immediately ...

https://liascript.github.io/LiveEditor/?/show/file/https://raw.githubusercontent.com/LiaTemplates/Pyodide/refs/heads/master/README.md

Especially for this we had added a new "macro", simply adding edit: true to the main header will automatically display this link in the nav-bar ...

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.

2 participants