Sphinx directive to add unselectable prompt
Project description
Sphinx Prompt
=============
.. contents:: Table of contents
Inititlise
----------
In ``conf.py`` add ``extensions += ['sphinx-prompt']``.
Directive
---------
.. code::
.. prompt::
cd <folder>
cp <src> \
<dst>
cd -
=>
.. code:: html
<pre>
<style type="text/css" scoped>
span:before {
content: "$ ";
}
</style>
<span>cd <folder></span>
<span>cd -</span>
<span>cp <src> \
<dst></span>
</pre>
----
.. code::
.. prompt:: bash #
cd <folder>
cd -
=>
.. code:: html
<pre>
<style type="text/css" scoped>
span:before {
content: "# ";
}
</style>
<span>cd <folder></span>
<span>cd -</span>
</pre>
Build
-----
.. code::
python bootstrap.py --distribute -v 1.7.1
./buildout/bin/buildout
=============
.. contents:: Table of contents
Inititlise
----------
In ``conf.py`` add ``extensions += ['sphinx-prompt']``.
Directive
---------
.. code::
.. prompt::
cd <folder>
cp <src> \
<dst>
cd -
=>
.. code:: html
<pre>
<style type="text/css" scoped>
span:before {
content: "$ ";
}
</style>
<span>cd <folder></span>
<span>cd -</span>
<span>cp <src> \
<dst></span>
</pre>
----
.. code::
.. prompt:: bash #
cd <folder>
cd -
=>
.. code:: html
<pre>
<style type="text/css" scoped>
span:before {
content: "# ";
}
</style>
<span>cd <folder></span>
<span>cd -</span>
</pre>
Build
-----
.. code::
python bootstrap.py --distribute -v 1.7.1
./buildout/bin/buildout
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sphinx-prompt-0.1.tar.gz
(2.3 kB
view hashes)