aboutsummaryrefslogtreecommitdiffstats
path: root/docs/flibbit.py
diff options
context:
space:
mode:
authorPerry Hung <iperry@gmail.com>2011-01-24 23:23:29 -0500
committerPerry Hung <iperry@gmail.com>2011-01-24 23:23:29 -0500
commitc48689d34809943a5907884bd287cea9ae275352 (patch)
treed49ff06b0d4b81f6ab0eac8060d178ce7542476c /docs/flibbit.py
parent64431fd4b59cb8656365f1fad5f679cd4d756239 (diff)
parenta9b2d70bc7799ca96c1673b18fe3012b1a4dd329 (diff)
downloadlibrambutan-c48689d34809943a5907884bd287cea9ae275352.tar.gz
librambutan-c48689d34809943a5907884bd287cea9ae275352.zip
Merge remote branch 'leaf/master'
Diffstat (limited to 'docs/flibbit.py')
-rw-r--r--docs/flibbit.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/docs/flibbit.py b/docs/flibbit.py
deleted file mode 100644
index 5f149d4..0000000
--- a/docs/flibbit.py
+++ /dev/null
@@ -1,26 +0,0 @@
-import os
-import shutil
-import re
-from os.path import *
-
-src = '/Users/mbolivar/foo/arduino.cc/en/Reference'
-dst = '/Users/mbolivar/hack/leaf/libmaple/docs/source/arduino'
-
-fs = [x for x in os.listdir(src) if x.endswith('.rst')]
-
-def process(line):
- if re.match('-+$', line.rstrip()):
- return '=' * (len(line) - 1) + '\n'
- elif re.match('\^+$', line.rstrip()):
- return '-' * (len(line) - 1) + '\n'
- return line
-
-for f in fs:
- print 'processing:', f
- with open(join(src,f), 'r') as f_in:
- with open(join(dst, basename(f)), 'w') as f_out:
- label = '.. _arduino-%s:\n\n' % (f.split('.')[0])
- f_out.write(label)
- for line in list(f_in.readlines())[20:-22]:
- f_out.write(process(line))
-