The demo not attempt to show general cross references (declarations and uses of a symbol) from the index, nor does it display the inferred type information or generated error/warning diagnostics. It could be made to do these things, as well as be made more configurable and generally useful, with additional effort.
Run it from jython source tree root dir with; e.g., to index /usr/lib/python2.4/email
ant jar && java -classpath ./dist/jython.jar org.python.indexer.demos.HtmlDemo /usr/lib/python2.4 /usr/lib/python2.4/emailFully indexing the Python standard library may require a more complete build to pick up all the dependencies:
rm -rf ./html/ && ant clean && ant jar && ant jar-complete && java -classpath ./dist/jython.jar org.python.indexer.demos.HtmlDemo /usr/lib/python2.4 /usr/lib/python2.4You can alternately use Jython's version of the Python library. The following command will index the whole thing:
ant jar-complete && java -classpath ./dist/jython.jar org.python.indexer.demos.HtmlDemo ./CPythonLib ./CPythonLib
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private Indexer | |
| private Linker | |
| private static final File | |
| private File | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private String | |
| private static File | |
| private void | |
| private static void | |
| public static void | |
| private void | |
| private String | |
| private void | |
| private static void |
| CSS | back to summary |
|---|---|
| private static final String CSS | |
| indexer | back to summary |
|---|---|
| private Indexer indexer | |
| linker | back to summary |
|---|---|
| private Linker linker | |
| OUTPUT_DIR | back to summary |
|---|---|
| private static final File OUTPUT_DIR | |
| rootDir | back to summary |
|---|---|
| private File rootDir | |
| rootPath | back to summary |
|---|---|
| private String rootPath | |
| HtmlDemo | back to summary |
|---|---|
| public HtmlDemo() | |
| abort | back to summary |
|---|---|
| private static void abort(String msg) | |
| addLineNumbers | back to summary |
|---|---|
| private String addLineNumbers(String source) | |
| checkFile | back to summary |
|---|---|
| private static File checkFile(String path) | |
| generateHtml | back to summary |
|---|---|
| private void generateHtml() throws Exception | |
| info | back to summary |
|---|---|
| private static void info(Object msg) | |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws Exception | |
| makeOutputDir | back to summary |
|---|---|
| private void makeOutputDir() throws Exception | |
| markup | back to summary |
|---|---|
| private String markup(String path) throws Exception | |
| start | back to summary |
|---|---|
| private void start(File stdlib, File fileOrDir) throws Exception | |
| usage | back to summary |
|---|---|
| private static void usage() | |