-
Notifications
You must be signed in to change notification settings - Fork 1.1k
update remix tutorials & resize visually heavy images #3259
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
(() => { | ||
const CAP = 640; // same as --fig-w | ||
const SEL = '.prose img, .rst-content img, .md-content img'; | ||
|
||
const flag = (img) => { | ||
const tag = () => { | ||
const w = img.naturalWidth, h = img.naturalHeight; | ||
if (!w || !h) return; // safety | ||
if (w >= h && w > CAP) { // landscape AND wider than cap | ||
img.classList.add('fig--landscape'); | ||
} | ||
}; | ||
if (img.complete) tag(); else img.addEventListener('load', tag, { once: true }); | ||
}; | ||
|
||
document.querySelectorAll(SEL).forEach(flag); | ||
})(); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,37 @@ | ||
# Tutorials in Remix | ||
|
||
**Learneth** is a tutorial platform integrated into Remix. | ||
You can do tutorials around blockchain development on Ethereum using the **LearnEth** plugin, a tutorial platform integrated into Remix. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is an edit: |
||
|
||
Tutorials can contain quizzes for testing students' work. These quizzes are run by Solidity Unit Tests. | ||
Some tutorials contain quizzes run by the Solidity Unit Tests plugin to test how much you learned from the tutorial. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An edit: |
||
|
||
 | ||
|
||
We have a growing set of tutorials on our repo- but anyone can build tutorials on their own repos and have their students load them up! | ||
 | ||
|
||
The tutorials contain .md files for instructions and can also contain example files, Solidity Unit Test files for quizzes, as well as answer files for quizzes. | ||
|
||
## Opening LearnEth & associated links | ||
## Using the LearnEth Plugin | ||
|
||
LearnEth is a plugin - so to access it, you need to activate the LearnEth plugin in the Plugin Manager. Alternatively - this link will active it: click this link. | ||
To open LearnEth, you need to activate the LearnEth plugin in the Plugin Manager. Alternatively, you can activate it by clicking the link below which automatically opens the Remix IDE with LearnEth enabled. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An edit: |
||
|
||
``` | ||
```text | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update the url to: |
||
https://remix.ethereum.org/?#activate=udapp,solidity,LearnEth | ||
``` | ||
|
||
This link will activate LearnEth and then will open a specific tutorial - in this case it will load the **proxy contract** tutorial: | ||
```{tip} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should leave the text that was on line 21 as well as the link on line 24 and put this tip below that. |
||
For other tricks about Remix URLs with parameters, visit {doc}`locations. </locations>` | ||
``` | ||
https://remix.ethereum.org/?#activate=udapp,solidity,LearnEth&call=LearnEth//startTutorial//ethereum/remix-workshops//master//proxycontract | ||
``` | ||
|
||
**NOTE:** For other tricks about Remix URLs with parameters, go here: {doc}`locations </locations>`. | ||
|
||
### LearnEth Tutorials | ||
|
||
Here is the current list of LearnEth Tutorials | ||
|
||
**_Beginner_** | ||
### Loading LearnEth with Other Repositories | ||
|
||
Remix Basics | ||
Intro to Solidity | ||
We have a growing set of tutorials on our default LearnEth content source. However, anyone can build tutorials on their own repos load them in the LearnEth plugin and it would work as it if were our default content source. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have a growing set of tutorials that load from our default LearnEth content source, https://github.com/remix-project-org/remix-workshops. Remove, "However... " |
||
|
||
**_Intermediate_** | ||
 | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add |
||
Basic Use of web3.js | ||
The Recorder | ||
|
||
**_Advanced_** | ||
|
||
All About Proxy Contracts | ||
Deploy with Libraries | ||
Opcodes in the Debugger | ||
|
||
### LearnEth & Tutorial Repos | ||
|
||
The code for the LearnEth plugin is located here: | ||
https://github.com/bunsenstraat/remix-learneth-plugin/blob/master/docs/index.rst | ||
```{important} | ||
Your repository must follow the LearnEth conventions to work on LearnEth. Learn how to [create your own LearnEth tutorials](https://remix-learneth-plugin.readthedocs.io/en/latest/index.html). | ||
``` | ||
|
||
Documentation for creating your own tutorials is located here: | ||
https://remix-learneth-plugin.readthedocs.io/en/latest/index.html | ||
### Useful LearnEth Links | ||
|
||
Remix maintains and curates this repo of LearnEth tutorials: | ||
https://github.com/ethereum/remix-workshops | ||
- LearnEth Plugin source code: [LearnEth Plugin repo](https://github.com/bunsenstraat/remix-learneth-plugin/) | ||
- Default LearnEth content source: [Remix Workshops repo](https://github.com/ethereum/remix-workshops) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally the images would be the same width as the paragraphs of text. In the current master, these images basically match the width of the paragraph and in this PR it makes them more narrow. So I'm not sure that the narrowing to 640px is a good idea. Please double check that 640px is the width you want to go with.