-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontribute.html
41 lines (40 loc) · 2.68 KB
/
contribute.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<head>
<title>Contribution Guide</title>
</head>
<body>
<h1>Contribution Guide</h1>
<p>
Contribution to this website is welcomed. However, please read this guide before you contribute.
<h2>One Unbreakable Rule</h2>
<b>Any contribution to this website must be <a href="http://creativecommons.org/publicdomain/zero/1.0/">EXPLICITLY PUBLIC DOMAIN</a> (e.g.: Explicitly licensed under Unlicense or CC0-1.0), stuff that does not have license is copyrighted by default and is not allowed.</b>
<h2>How You Can Contribute</h2>
<h3>I found a bug/typo</h3>
Post an issue at <a href="https://github.com/none-None1/Interpret-Esolangs-Online">GitHub</a> or talk in the <a href="https://esolangs.org/wiki/Talk:Interpret_Esolangs_Online">talk page at esolangs.org</a>. You can send a pull request if you already know how to fix the bug.
<h3>I want a new esolang/feature</h3>
It's like the above but you can give me a <b>public domain</b> interpreter (preferably client-side JS) as well. If you want to send a pull request to add an esolang, here is how to do that:
<li>Add a JavaScript file for the language, it contains a function that takes the program and the input and returns the output, like this:</li>
<pre>
function yourlang(program,input){
//code here...
return output;
}
</pre>
If the interpreter is in other languages but can be called from JavaScript (like C by using Emscripten), the JavaScript file should call the interpreter.
The function name should not be the same with function names for existing esolangs.
<li>Add an <code>option</code> tag inside the <code>select</code> tag in the index.html file, the text should be the language name, like this:</li>
<pre>
<option>YourLang</option>
</pre>
The <code>option</code> tags should then be sorted by text, lexicographically.
<li>Add a <code>script</code> tag in the index.html file, the source is the JavaScript file you created in the first step, like this:</li>
<pre>
<script defer src="yourlang.js"></script>
</pre>
<code>script</code> tags should be sorted by their sources, in lexicographical order, just like the <code>option</code> tags.
<li>Finally, add the link to the language in the README.md file and add a row for this language in the about.html file, and update the number of languages and the version number.</li>
Please do <b>NOT</b> do anything else or you'll mess up the repository!
</p>
</body>
</html>