This repository has been archived by the owner. It is now read-only.
ReStructuredText documentation to code (Litterate Programming style)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
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.