From 4a6bf81b2ef75116d1bef0c62e645c71ead5c946 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Thu, 11 Aug 2011 23:50:04 +0200 Subject: [PATCH] remove skribit support. fixes #154 --- docs/fr/themes.rst | 16 ----- docs/index.rst | 2 +- docs/settings.rst | 58 ------------------- docs/themes.rst | 16 ----- pelican/themes/notmyidea/templates/base.html | 3 - .../templates/skribit_tab_script.html | 14 ----- .../templates/skribit_widget_script.html | 8 --- 7 files changed, 1 insertion(+), 116 deletions(-) delete mode 100644 pelican/themes/notmyidea/templates/skribit_tab_script.html delete mode 100644 pelican/themes/notmyidea/templates/skribit_widget_script.html diff --git a/docs/fr/themes.rst b/docs/fr/themes.rst index 53e6374e..c6f45300 100644 --- a/docs/fr/themes.rst +++ b/docs/fr/themes.rst @@ -169,19 +169,3 @@ dates_pages La page actuelle d'articles, ordonnée par date croissante. page_name 'tag/`nom du tag`'. =================== =================================================== - -Inclure le script skribit -========================= - -Pour pouvoir supporter les scripts skribit dans vos thèmes, vous devez -faire ceci : - - * Copier `skribit_tab_script.html` et `skribit_widget_script.html` dans - votre dossier de templates. - * Ajouter {% include 'skribit_tab_script' %} dans votre pour - ajouter le support de l'onglet de suggestions. - * Ajouter {% include 'skribit_widget_script' %} là où vous le souhaitez - pour ajouter le widget dans la sidebar. - -Vous pouvez regarder le thème par défault (notmyidea) pour voir un -exemple de thème fonctionnel. diff --git a/docs/index.rst b/docs/index.rst index 41c7b269..1e0a56f8 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -23,7 +23,7 @@ Pelican currently supports: * publication of articles in various languages * RSS/Atom feeds * wordpress/dotclear or RSS imports -* integration with various tools: twitter/google analytics/skribit (optional) +* integration with various tools: twitter/google analytics (optional) Why the name "Pelican" ? ======================== diff --git a/docs/settings.rst b/docs/settings.rst index 7cfb9442..d08e24da 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -262,64 +262,6 @@ adding that in your configuration:: CSS_FILE = "wide.css" -Skribit -------- - -Skribit has two ways to display suggestions : as a sidebar widget or as a -suggestions tab. You can choose one of the display by setting the SKRIBIT_TYPE -in your config. - - * SKRIBIT_WIDGET_ID : the identifier of your blog. - -All the customizations are done in the skribit web interface. - -To retrieve your identifier from the code snippet, you can use this python code:: - - import re - regex = re.compile('.*http://assets.skribit.com/javascripts/SkribitWidget.\ - js\?renderTo=writeSkribitHere&blog=(.*)&.*') - snippet = '''SNIPPET CONTENT''' - snippet = snippet.replace('\n', '') - identifier = regex.match(snippet).groups()[0] - -Suggestion tab --------------- - -The setting for suggestion tab's customizations are : - - * SKRIBIT_TAB_COLOR - * SKRIBIT_TAB_DISTANCE_HORIZ - * SKRIBIT_TAB_DISTANCE_VERT - * SKRIBIT_TAB_PLACEMENT - -The identifier is : - - * SKRIBIT_TAB_SITENAME : the identifier of your blog - -To retrieve your sitename from the code snippet, you can use this python code:: - - import re - regex = re.compile('.*http://skribit.com/lightbox/(.*)\',.*') - snippet = '''SNIPPET CONTENT''' - snippet = snippet.replace('\n', '') - identifier = regex.match(snippet).groups()[0] - -Skribit settings ----------------- - -================================================ ===================================================== -Setting name (default value) what does it do? -================================================ ===================================================== -`SKRIBIT_TYPE` The type of skribit widget (TAB or WIDGET). -`SKRIBIT_TAB_COLOR` Tab color (#XXXXXX, default #333333). -`SKRIBIT_TAB_HORIZ` Tab Distance from Left (% or distance, default Null). -`SKRIBIT_TAB_VERT` Tab Distance from Top (% or distance, default 20%). -`SKRIBIT_TAB_PLACEMENT` Tab placement (Top, Bottom, Left or Right, - default LEFT). -`SKRIBIT_TAB_SITENAME` Tab identifier (See Skribit part below). -`SKRIBIT_WIDGET_ID` Widget identifier (See Skribit part below). -================================================ ===================================================== - .. _pelican-themes: :doc:`pelican-themes` Example settings diff --git a/docs/themes.rst b/docs/themes.rst index 2ebfcf49..a20fd099 100644 --- a/docs/themes.rst +++ b/docs/themes.rst @@ -190,22 +190,6 @@ dates_page The current page of articles, ordered by date, page_name 'tag/`tag_name`'. Useful for pagination links. =================== =================================================== -Include skribit script -====================== - -In order to support skribit scripts in your themes, you must perform these -actions: - - * Copy `skribit_tab_script.html` and `skribit_widget_script.html` in your - templates directory. - * Add {% include 'skribit_tab_script.html' %} in your part in order to - support suggestions tab. - * Add {% include 'skribit_widget_script.html' %} where you want in order to - support sidebar widget. - -You can take a look at notmyidea default theme for working example. - - Inheritance =========== diff --git a/pelican/themes/notmyidea/templates/base.html b/pelican/themes/notmyidea/templates/base.html index ad0f636f..a34b5d5a 100644 --- a/pelican/themes/notmyidea/templates/base.html +++ b/pelican/themes/notmyidea/templates/base.html @@ -9,8 +9,6 @@ {% endif %} - {% include 'skribit_tab_script.html' %} - @@ -54,7 +52,6 @@ {% endif %} - {% include 'skribit_widget_script.html' %} {% if SOCIAL %}

social

diff --git a/pelican/themes/notmyidea/templates/skribit_tab_script.html b/pelican/themes/notmyidea/templates/skribit_tab_script.html deleted file mode 100644 index 637bd78f..00000000 --- a/pelican/themes/notmyidea/templates/skribit_tab_script.html +++ /dev/null @@ -1,14 +0,0 @@ -{% if SKRIBIT_TYPE and SKRIBIT_TYPE == 'TAB' and SKRIBIT_TAB_SITENAME %} - - - - -{% endif %} \ No newline at end of file diff --git a/pelican/themes/notmyidea/templates/skribit_widget_script.html b/pelican/themes/notmyidea/templates/skribit_widget_script.html deleted file mode 100644 index 0e03531b..00000000 --- a/pelican/themes/notmyidea/templates/skribit_widget_script.html +++ /dev/null @@ -1,8 +0,0 @@ -{% if SKRIBIT_TYPE == 'WIDGET' and SKRIBIT_WIDGET_ID %} -
- - -{% endif %} \ No newline at end of file