Skip to content

Commit

Permalink
Renames, docs, nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkay committed Dec 15, 2011
1 parent 2fd2d21 commit b65417b
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 53 deletions.
File renamed without changes.
15 changes: 0 additions & 15 deletions INSTALL

This file was deleted.

7 changes: 0 additions & 7 deletions README

This file was deleted.

28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# hilite.me

[hilite.me](http://hilite.me/) is a small webapp that converts your code
snippets into pretty-printed HTML format, easily embeddable into blog posts and
websites.

## Development

To set up development environment you need to install these dependencies:

* On FreeBSD: `portmaster textproc/py-pygments www/nginx www/py-flask`
* On Debian: `aptitude install nginx python-flask python-pygments`

Edit your main `nginx.conf`:

http {
...
include /path/to/hilite.me/nginx.conf;
}

Update the project location in `hilite.me/nginx.conf` and restart nginx.

Add this line to your `/etc/hosts`:

127.0.0.1 hilite.dev

Type `make run` and go to <http://hilite.dev/>. If static files don't load make
sure nginx has rx permissions for the `hilite.me/static` directory.
16 changes: 16 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
server {
root /home/alex/Projects/hilite.me/static;
server_name hilite.dev;

proxy_set_header Host $host;

location / {
if (-f $request_filename) {
access_log off;
}

if (!-f $request_filename) {
proxy_pass http://127.0.0.1:5000;
}
}
}
18 changes: 0 additions & 18 deletions src/app.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions src/index.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions src/templates/api.txt → templates/api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ GET or POST to http://www.hilite.me/api with these parameters:
* divstyles: CSS style to use in the wrapping <div> element, can be empty

The request will return the HTML code in UTF-8 encoding.

Feel free to use the API as you see fit, but please let me know if you expect to have a lot of requests, I will need to bump the App Engine quotas.
File renamed without changes.

0 comments on commit b65417b

Please sign in to comment.