Rename json_serializer plugin to tipue_search

This plugin is renamed after suggestions from @astorije and @ametaireau
which can be viewed
[here](https://github.com/getpelican/pelican-plugins/pull/66)
This commit is contained in:
Talha Mansoor
2013-08-29 14:38:39 +05:00
parent 0d30333281
commit 0cafe10d16
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 Copyright (c) Talha Mansoor
@@ -25,16 +25,16 @@ Tipue's JSON search mode requires the textual content of site in JSON format.
Requirements Requirements
============ ============
JSON Serializer requires BeautifulSoup. Tipue Search requires BeautifulSoup.
```bash ```bash
pip install beautifulsoup4 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 ```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 -*- # -*- coding: utf-8 -*-
""" """
JSON Serializer Tipue Search
=============== ============
A Pelican plugin to serialize generated HTML to JSON A Pelican plugin to serialize generated HTML to JSON
that can be used by jQuery plugin - Tipue Search. that can be used by jQuery plugin - Tipue Search.
@@ -19,7 +19,7 @@ from codecs import open
from pelican import signals from pelican import signals
class JSON_Generator(object): class Tipue_Search_JSON_Generator(object):
def __init__(self, context, settings, path, theme, output_path, *null): def __init__(self, context, settings, path, theme, output_path, *null):
@@ -69,7 +69,7 @@ class JSON_Generator(object):
def get_generators(generators): def get_generators(generators):
return JSON_Generator return Tipue_Search_JSON_Generator
def register(): def register():