sphinx-contrib / nicovideo /

Filename Size Date modified Message
..
sphinxcontrib
1.4 KB
49 B
1.2 KB
37 B
1.1 KB
868 B
nicovideo extension README
==========================
This is a sphinx extension which embed videos from nicovideo_ .

.. _nicovideo:: http://www.nicovideo.jp/

Setting
=======

You can get archive file at http://bitbucket.org/birkenfeld/sphinx-contrib/

Install
-------

.. code-block:: bash

   > easy_install sphinxcontrib-nicovideo


Configure Sphinx
----------------
To enable this extension, add ``sphinxcontrib.nicovideo`` module to extensions 
option at :file:`conf.py`. 

.. code-block:: python

   import os, sys

   # Path to the folder where nicovideo.py is
   # NOTE: not needed if the package is installed in traditional way
   # using setup.py or easy_install
   sys.path.append(os.path.abspath('/path/to/sphinxcontrib.nicovideo'))

   # Enabled extensions
   extensions = ['sphinxcontrib.nicovideo']


Directives and Roles
=====================

.. rst:role: nicovideo

   nicovideo role makes a link to movie page::

      :nicovideo:`sm9`

.. rst:directive:: .. nicovideo:: [video_id]

   nicovideo directive embeds a movie into the generated document.


Repository
==========
This code is hosted by Bitbucket.

  http://bitbucket.org/birkenfeld/sphinx-contrib/
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.