mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
runthis
This commit is contained in:
parent
ade5b886b6
commit
0942d7b3d7
4 changed files with 39 additions and 4 deletions
|
@ -67,6 +67,7 @@ extensions = [
|
||||||
#'sphinx.ext.autosummary',
|
#'sphinx.ext.autosummary',
|
||||||
"numpydoc",
|
"numpydoc",
|
||||||
"cmdhelp",
|
"cmdhelp",
|
||||||
|
"runthis.sphinxext",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
|
@ -277,6 +278,8 @@ autosummary_generate = []
|
||||||
# Prevent numpy from making silly tables
|
# Prevent numpy from making silly tables
|
||||||
numpydoc_show_class_members = False
|
numpydoc_show_class_members = False
|
||||||
|
|
||||||
|
# runthis
|
||||||
|
runthis_server = "https://runthis.xonsh.org:80"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Auto-generate some docs
|
# Auto-generate some docs
|
||||||
|
|
|
@ -1,9 +1,17 @@
|
||||||
Try It Now!
|
Try It Now!
|
||||||
===========
|
===========
|
||||||
Try out xonsh right here in the browser. Just press the triangle play button in
|
Try out xonsh right here in the browser. Just press the "Run This"
|
||||||
the bottom right of the `Repl.it <https://repl.it>`_ frame below.
|
button below!
|
||||||
**Note:** this is not a fully featured xonsh instance due to repl.it limitations.
|
|
||||||
|
|
||||||
.. raw:: html
|
.. raw:: html
|
||||||
|
|
||||||
<iframe height="400px" width="100%" src="https://repl.it/@scopatz/xonsh?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
|
<div id="tryitnow"></div>
|
||||||
|
<script>
|
||||||
|
var app = Elm.Main.init({
|
||||||
|
node: document.getElementById('tryitnow'),
|
||||||
|
flags: {
|
||||||
|
placeholder: "<img src=\"_static/better_colors_windows.png\">",
|
||||||
|
serverUrl: "https://runthis.xonsh.org:80",
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
23
news/runthis.rst
Normal file
23
news/runthis.rst
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
**Added:**
|
||||||
|
|
||||||
|
* <news item>
|
||||||
|
|
||||||
|
**Changed:**
|
||||||
|
|
||||||
|
* Replaced Repl.It with RunThis on the front page of the docs.
|
||||||
|
|
||||||
|
**Deprecated:**
|
||||||
|
|
||||||
|
* <news item>
|
||||||
|
|
||||||
|
**Removed:**
|
||||||
|
|
||||||
|
* <news item>
|
||||||
|
|
||||||
|
**Fixed:**
|
||||||
|
|
||||||
|
* <news item>
|
||||||
|
|
||||||
|
**Security:**
|
||||||
|
|
||||||
|
* <news item>
|
|
@ -10,3 +10,4 @@ doctr
|
||||||
tornado
|
tornado
|
||||||
black
|
black
|
||||||
pre-commit
|
pre-commit
|
||||||
|
runthis-sphinxext
|
||||||
|
|
Loading…
Add table
Reference in a new issue