Skip to main content

Sphinx plugin for Trac 0.11

Project description

First draft for sphinx like easy to use plugin. It implements basic tasks to manage Sphinx documentation in Trac.

1. Plugin install

Download the plugin sources, unzip the archive and type the easy_install command from the plugin folder:

$ easy_install setup.py install

Restart the Trac project(s). As administator we can now activate the plugin.

By default the documentation source folder is ‘./docs/source’ of the project repository. But in most of cases we will override this path in the [sphinx] section of the project ‘trac.ini’ file:

[sphinx]
source_dir = /<the_doc_source_path>

This source folder is used by the project to build the sphinx documentation using the web builder of Sphinx. If the documentation can not be generated from Trac we can specify the generated documentation path with the following option:

[sphinx]
doc_dir = /<the_doc_dir_path>

We also can set the navbar title with the following option:

[sphinx]
navbar_title = My documentation

2. Documentation update

Simple params into the project url to update the documentation from the source folder of the project to the Trac project folder ‘./sphinx-docs’. Just type the following url for update:

http://<trac_url>/<project_url>?action=refresh

In some cases the documentation can not be generated like in the identified following case:

automodule can not import part of the project

When we use the automodule, autoclass.. directives some projects can not import must requirements or config. Then Sphinx will not generate the project documentation and return the following error:

list out of range

Projects like TurboGears application are concerned. We are currently working on this issue and hope to purpose a solution soon.

3. Documentation navigation

In the right side bar of the sphinx doc in Trac we will find the three following functions:

  • Table of content

Menu of the content of the current displayed page.

  • Relative links

Include the index and module project link, and the previous/next link(s).

  • Search

Simple sphinx like search function. No javascript here we perform the search on the server side.

4. Url API overview

The plugin manage the followings urls and parameters. By default the index page of the project documentation will be displayed.

  • /<project>/sphinx

    default index page

  • /<project>/sphinx?action=view&item=<page_name>

    action=view action to display a specific page of the documentation item=page_name name of the page do display search_words=<some+words> words of the current search (highlighted in the page)

  • /<project>/sphinx?action=index&item=genindex

    action=index display the project documentation index item=genindex display the project documentation index

  • /<project>/sphinx?action=modules&item=modindex

    action=index display the project modules index item=genindex display the project modules index

5. Next updates

This plugin version implements sphinx basic functionalities.

Please do not hesitate to send emails or patches if you have further needs or if the plugin does not manage your sphinx documentation the way we want.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

TracSphinx-0.2.1-py2.6.egg (57.5 kB view details)

Uploaded Source

TracSphinx-0.2.1-py2.5.egg (57.5 kB view details)

Uploaded Source

File details

Details for the file TracSphinx-0.2.1-py2.6.egg.

File metadata

File hashes

Hashes for TracSphinx-0.2.1-py2.6.egg
Algorithm Hash digest
SHA256 2112e6ba4ed830f271e5b68c36207e143918ff8fa34bd872bf75545904619900
MD5 e0c29527f5a79130a424b15185f254db
BLAKE2b-256 feaecc54f9f189e88c46ad2b15497c87670f320f33d35d1e45656e9b1cf04969

See more details on using hashes here.

Provenance

File details

Details for the file TracSphinx-0.2.1-py2.5.egg.

File metadata

File hashes

Hashes for TracSphinx-0.2.1-py2.5.egg
Algorithm Hash digest
SHA256 61ae2b304af3da195f381e99b469532ff84b75ff6a8240b47a24121de3f67fd4
MD5 8b9f5782e201b7fe3b52b81b61bf0115
BLAKE2b-256 8ef3757c9be3540aef560cde5ba8c434ada372807deb2809b03c271766bb6908

See more details on using hashes here.

Provenance

Supported by

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