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:
@@ -1 +0,0 @@
|
||||
from .json_serializer import *
|
||||
@@ -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
1
tipue_search/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .tipue_search import *
|
||||
@@ -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():
|
||||
Reference in New Issue
Block a user