Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
My Sphinx Extensions
Python
branch: master

minor #27 updated license year (maqnouch)

This PR was merged into the 1.0-dev branch.

Discussion
----------

updated license year

Commits
-------

8d85211 updated license year
latest commit 7467b42ad4
@fabpot authored
Failed to load latest commit information.
sensio bug #25 show "Best Practice" title only once (xabbuh)
.gitignore Fixed for @stof feedback.
LICENSE updated license year
README.md
composer.json added a branch alias
setup.py Added setup.py

README.md

Sphinx Extensions for PHP and Symfony

You can install the extension by:

  • running sudo pip install git+https://github.com/fabpot/sphinx-php.git;

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

You can use the following extensions in your conf.py 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 = 'http://api.symfony.com/master/%s'
Something went wrong with that request. Please try again.