Skip to content
This repository has been archived by the owner on May 27, 2019. It is now read-only.

Commit

Permalink
added configuration sections to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tleguijt committed Oct 7, 2016
1 parent c0a6f3d commit d7820c3
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
3 changes: 1 addition & 2 deletions docs/conf.py
Expand Up @@ -12,10 +12,8 @@
#
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os
import wagtailsocialfeed
import sphinx_rtd_theme

# If extensions (or modules to document with autodoc) are in another
Expand All @@ -33,6 +31,7 @@
# version is used.
sys.path.insert(0, project_root)

import wagtailsocialfeed

# -- General configuration ---------------------------------------------

Expand Down
45 changes: 45 additions & 0 deletions docs/configuration.rst
@@ -0,0 +1,45 @@
=============
Configuration
=============

The following configuration options are available:

``WAGTAIL_SOCIALFEED_CONFIG``
-----------------------------
The configuration for the social media accounts. ::

WAGTAIL_SOCIALFEED_CONFIG = {
'twitter': {
'CONSUMER_KEY': 'SOME_KEY',
'CONSUMER_SECRET': 'SOME_SECRET',
'ACCESS_TOKEN_KEY': 'SOME_KEY',
'ACCESS_TOKEN_SECRET': 'SOME_SECRET'
},
'facebook': {
'CLIENT_ID': 'SOME_ID',
'CLIENT_SECRET': 'SOME_SECRET',
}
}

No credentials are needed for Instagram.

Defaults to ``{}``


``WAGTAIL_SOCIALFEED_CACHE_DURATION``
-------------------------------------

The cache timeout (in seconds) for the social feed items

Defaults to ``900``


``WAGTAIL_SOCIALFEED_SEARCH_MAX_HISTORY``
-----------------------------------------

The amount of time the module is allowed to search through the history of the social feed.
This is only used for the moderator view. In the moderator view it is possible to enter
a search query. For the search to return a usable data-set, multiple result-pages are requested
from the social feed source. But it does need to have a limit.

Defaults to ``timedelta(weeks=26)``
1 change: 1 addition & 0 deletions docs/index.rst
Expand Up @@ -14,6 +14,7 @@ Contents:
readme
installation
usage
configuration
contributing

Indices and tables
Expand Down

0 comments on commit d7820c3

Please sign in to comment.