mirror of
https://github.com/not-kennethreitz/markdownplease.com.git
synced 2026-06-05 23:20:19 +00:00
Added bootstrap static file; Added instructions to README.md
This commit is contained in:
@@ -3,18 +3,28 @@
|
||||
This is a very simple web service that will take a given URL, and return
|
||||
a Markdown representation of that page.
|
||||
|
||||
Powered by [Readability](http://readability.com/), [Requests](http://python-guide.org/), [html2text](http://www.aaronsw.com/2002/html2text/), and [Flask](http://flask.pocoo.org/).
|
||||
Powered by [Readability](http://readability.com/),
|
||||
[Requests](http://python-guide.org/),
|
||||
[html2text](http://www.aaronsw.com/2002/html2text/),
|
||||
[markdown](http://pythonhosted.org/Markdown/),
|
||||
and [Flask](http://flask.pocoo.org/).
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
$ curl http://url2markdown.herokuapp.com/?url=http://kennethreitz.org
|
||||
|
||||
|
||||
# Hi, there.
|
||||
|
||||
|
||||
My name is Kenneth Reitz.
|
||||
...
|
||||
|
||||
Or, if you understand code:
|
||||
|
||||
$ mkvirtualenv url2markdown
|
||||
$ pip install -r requirements.txt
|
||||
$ READABILITY_TOKEN="XXX" python service.py
|
||||
|
||||
Enjoy!
|
||||
|
||||
## Configuration
|
||||
@@ -28,3 +38,4 @@ You can use [autoenv](https://github.com/kennethreitz/autoenv) to do this easily
|
||||
## License
|
||||
|
||||
Unfortunately, this code is released under [GPLv3](http://www.gnu.org/copyleft/gpl.html).
|
||||
|
||||
|
||||
Vendored
+9
File diff suppressed because one or more lines are too long
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>url2markdown</title>
|
||||
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="{{ url_for('static', filename='css/bootstrap.min.css' ) }}" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
Reference in New Issue
Block a user