My Sphinx Extensions
Clone or download
fabpot feature #40 Generate HTTPS links for (stof)
This PR was merged into the 1.0-dev branch.


Generate HTTPS links for


d059f86 Generate HTTPS links for
Latest commit 578573f Apr 20, 2018
Failed to load latest commit information.
sensio Generate HTTPS links for Apr 20, 2018
.gitignore Fixed for @stof feedback. Jun 8, 2014
LICENSE updated LICENSE year Jan 2, 2017 Create Jun 14, 2017
composer.json added a branch alias Dec 19, 2013 Added Jul 22, 2013

Sphinx Extensions for PHP and Symfony

You can install the extension by:

  • running sudo pip install git+;

  • cloning the project and add sensio to your path (with something like sys.path.insert(0, os.path.abspath('./path/to/sensio'))).

  • Arch Linux users can use the AUR package

You can use the following extensions in your file:

  • sensio.sphinx.refinclude
  • sensio.sphinx.configurationblock
  • sensio.sphinx.phpcode
  • sensio.sphinx.bestpractice

To enable highlighting for PHP code not between <?php ... ?> by default:

# loading PhpLexer
from sphinx.highlighting import lexers
from pygments.lexers.web import PhpLexer

# enable highlighting for PHP code not between ``<?php ... ?>`` by default
lexers['php'] = PhpLexer(startinline=True)
lexers['php-annotations'] = PhpLexer(startinline=True)

And here is how to use PHP as the primary domain:

primary_domain = 'php'

Configure the api_url for links to the API:

api_url = ''