Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed the documentation to accomodate github's URL changes

  • Loading branch information...
commit dcde49748922f4d033fbf66141d847443d72c73f 1 parent 4de15a5
Erez Shin authored
Showing with 9 additions and 9 deletions.
  1. +6 −6 README.md
  2. +2 −2 docs/selectors.md
  3. +1 −1  docs/tutorial.md
View
12 README.md
@@ -38,19 +38,19 @@ A. Power and simplicity. See the examples and judge for yourself.
## Tutorials
-Learn how to write a grammar for Plyplus at the [tutorial](/erezsh/plyplus/blob/master/docs/tutorial.md)
+Learn how to write a grammar for Plyplus at the [tutorial](/docs/tutorial.md)
-Learn how to query the AST using [selectors](/erezsh/plyplus/blob/master/docs/selectors.md)
+Learn how to query the AST using [selectors](/docs/selectors.md)
## Examples
-This section contains examples of plyplus usage. For a better explanation, check out [the tutorial](/erezsh/plyplus/blob/master/docs/tutorial.md). If something is still not clear, feel free to email me and ask!
+This section contains examples of plyplus usage. For a better explanation, check out [the tutorial](/docs/tutorial.md). If something is still not clear, feel free to email me and ask!
### Parsing Python
We'll use Plyplus' grammar for Python, and play with os.py for a bit (though it could be any Python file).
-For starters, let's do something simple: Let's list all of the functions (or methods) in the os module. We'll query the AST using [selectors](/erezsh/plyplus/blob/master/docs/selectors.md), so click the link if you want to be able to follow (or maybe an understanding of CSS/JQuery is enough?).
+For starters, let's do something simple: Let's list all of the functions (or methods) in the os module. We'll query the AST using [selectors](/docs/selectors.md), so click the link if you want to be able to follow (or maybe an understanding of CSS/JQuery is enough?).
>>> import plyplus, plyplus.grammars
>>> g = plyplus.Grammar(plyplus.grammars.open('python.g')) # load python grammar
@@ -84,7 +84,7 @@ Hard to read? Try looking at it visually! (requires pydot)
>>> _.to_png_with_pydot(r'calling_popen.png')
-[calling\_popen.png](/erezsh/plyplus/blob/master/docs/calling_popen.png)
+[calling\_popen.png](/docs/calling_popen.png)
### Parsing INI files
@@ -141,6 +141,6 @@ Plyplus uses the [MIT license](https://github.com/jquery/jquery/blob/master/MIT-
I hope this readme inspired you to play with Plyplus a bit, and maybe even use it for your project.
-For more examples, check out the [test module](/erezsh/plyplus/blob/master/plyplus/test/plyplus_test.py)
+For more examples, check out the [test module](/test/plyplus_test.py)
If you have any questions or ideas, please email me at erezshin+plyplus at gmail com
View
4 docs/selectors.md
@@ -33,11 +33,11 @@ One last thing worth noting: Selectors always return the last element. If you wa
## Some examples
-So how do we use them? Let's look at this Python expression from the [readme](/erezsh/plyplus/blob/master/README.md)
+So how do we use them? Let's look at this Python expression from the [readme](/README.md)
funccall(attrget(name('subprocess'), name('Popen')), arglist(arg(name('cmd')), arg(name('shell'), funccall(name('isinstance'), arglist(arg(name('cmd')), arg(name('basestring'))))), arg(name('bufsize'), name('bufsize')), arg(name('stdin'), name('PIPE')), arg(name('stdout'), name('PIPE')), arg(name('close_fds'), name('True'))))
-It's a little messy, so you can use [this visualization](/erezsh/plyplus/blob/master/calling_popen.png) as reference.
+It's a little messy, so you can use [this visualization](/docs/calling_popen.png) as reference.
Assuming it's stored in x, let's get all of the "name" heads:
View
2  docs/tutorial.md
@@ -68,7 +68,7 @@ Finally, if we have pydot and graphviz installed, we can visualize the tree by t
>>> res.to_png_with_pydot('list_parser_tree.png')
-![pydot visualization](/erezsh/plyplus/raw/master/list_parser_tree.png "pydot visualization")
+![pydot visualization](//raw.github.com/erezsh/plyplus/master/docs/list_parser_tree.png "pydot visualization")
The last example (for now) shows Plyplus' error handling. Let's say we forgot to open the brackets in the former sample input:
Please sign in to comment.
Something went wrong with that request. Please try again.