Merge pull request #67 from talha131/rename-json-serializer

Rename json_serializer plugin to tipue_search
This commit is contained in:
Alexis Metaireau
2013-08-29 07:13:59 -07:00
4 changed files with 11 additions and 11 deletions

View File

@@ -1 +0,0 @@
from .json_serializer import *

View File

@@ -1,7 +1,7 @@
JSON Serializer
===============
Tipue Search
============
A Pelican plugin to serialize HTML output to JSON
A Pelican plugin to serialize generated HTML to JSON that can be used by jQuery plugin - Tipue Search.
Copyright (c) Talha Mansoor
@@ -25,16 +25,16 @@ Tipue's JSON search mode requires the textual content of site in JSON format.
Requirements
============
JSON Serializer requires BeautifulSoup.
Tipue Search requires BeautifulSoup.
```bash
pip install beautifulsoup4
```
How JSON Serializer works
How Tipue Search works
=========================
JSON Serializer serializes the generated HTML into JSON. Format of JSON is as follows
Tipue Search serializes the generated HTML into JSON. Format of JSON is as follows
```python
{

1
tipue_search/__init__.py Normal file
View File

@@ -0,0 +1 @@
from .tipue_search import *

View File

@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""
JSON Serializer
===============
Tipue Search
============
A Pelican plugin to serialize generated HTML to JSON
that can be used by jQuery plugin - Tipue Search.
@@ -19,7 +19,7 @@ from codecs import open
from pelican import signals
class JSON_Generator(object):
class Tipue_Search_JSON_Generator(object):
def __init__(self, context, settings, path, theme, output_path, *null):
@@ -69,7 +69,7 @@ class JSON_Generator(object):
def get_generators(generators):
return JSON_Generator
return Tipue_Search_JSON_Generator
def register():