The Wayback Machine - https://web.archive.org/web/20180611013151/https://github.com/jmbarbier/rst2code
Skip to content
This repository has been archived by the owner. It is now read-only.
ReStructuredText documentation to code (Litterate Programming style)
Python Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_static
_templates
archive
source
src
.gitignore
AUTHORS
LICENSE.txt
Makefile
README.md
conf.py
index.rst
make.bat
requirements.txt
rst2code.py
setup.py
version.py

README.md

rst2code : reStructuredText literal programming tool

rst2code is a literal programming tool. See index.rst for more details

WARNING: this is a python3-only program for now.

Testing with sphinx

Building with itself, hacking around

git clone https://github.com/jmbarbier/rst2code.git
cd rst2code
virtualenv --python=python3 venv
source venv/bin/activate
pip install -r requirements.txt
make html

Then a src/rst2code.py file should appear.

Using it

pip install git+git://github.com/jmbarbier/rst2code.git@master
# Create a sphinx documentation
sphinx-quickstart
# Edit conf.py, add 'rst2code' to extensions
# Edit index.rst, add for example 
Testing ::

#@@/test.py@@
    print("Hello, world")

# Launch sphinx
make html
# A directory src containing test.py should appear.  
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.