Skip to main content

UNKNOWN

Project description

This sphinx extension provides a new directive which displays recent updated files list.

Introduction

This sphinx extension provides a new directive which displays recent updated files list. If you want to get all page list ordered by mtime, just put recentpages directive as follows:

.. recentpages::

If you want to display recent 3 files only, add num option to the directive:

.. recentpages::
    :num: 3

Install

Use easy_install:

easy_install sphinxcontrib-recentpages

Then add the following line into source/conf.py:

extensions += ['sphinxcontrib.recentpages']

Recentpages on sidebar

Recentpages can be displayed on sidebar.

First, please enable recentpages_sidebar in source/conf.py:

recentpages_sidebar = True

After you enable this, recentpages extension will create a template file ‘recentpages.html’ in your template path ( ‘_templates’ by default ).

Please make sure ‘template_path’ property contains at least 1 writable directory if you customize ‘template_path’.

Then add ‘recentpages.html’ to ‘html_sidebars’ dictionary. For example, add the following line to source/conf.py if you want to add under the default sidebar:

html_sidebars = {'**': ['localtoc.html', 'relations.html', 'sourcelink.html', 'searchbox.html', 'recentpages.html']}

By default, 5 pages are displayed on sidebar. If you want to change the number of pages on the list, please change ‘recentpages_sidbar_pages’ property:

recentpages_sidebar_pages = 10

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinxcontrib-recentpages-0.7.1.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinxcontrib_recentpages-0.7.1-py2.7.egg (19.1 kB view details)

Uploaded Egg

File details

Details for the file sphinxcontrib-recentpages-0.7.1.tar.gz.

File metadata

File hashes

Hashes for sphinxcontrib-recentpages-0.7.1.tar.gz
Algorithm Hash digest
SHA256 b66c171ff3788172382b57fb883ce9470092c4e69ab46f6a80435f1ec1abade0
MD5 7bbdf96a833d7f40b0c96d164f3cc1d7
BLAKE2b-256 65318f095601d233c6c31576556f203b07e766c7b6a6c8b45bf5b89a04d66d70

See more details on using hashes here.

File details

Details for the file sphinxcontrib_recentpages-0.7.1-py2.7.egg.

File metadata

File hashes

Hashes for sphinxcontrib_recentpages-0.7.1-py2.7.egg
Algorithm Hash digest
SHA256 951a2a0157d35b81bc9c505ae87c7dc42cde4cf3ad9a21fd2a7f17e49cce3f15
MD5 efc2d4664052b479ed5ffd59f2fc45d1
BLAKE2b-256 cc4761c74d02df36ec7c471a2f229630227d21d871a43edcda030c6f3378b7e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page