Skip to main content

Sphinx integration with different issuetrackers

Project description

sphinx-autoissues · Python Package License Code Coverage

https://sphinx-autoissues.git-pull.com/

This is a fork of Sebastian Wiesner lunaryorn@gmail.com's excellent sphinxcontrib-issuetracker plugin.

A Sphinx extension to reference issues in issue trackers, either explicitly with an "issue" role or optionally implicitly by issue ids like #10 in plaintext.

Currently the following issue trackers are supported: GitHub

A simple API is provided to add support for other issue trackers. If you added support for a new tracker, please consider sending a patch to make your work available to other users of this extension.

What's changed from sphinx-issuetracker?

The old codebase has most of its commits from 2010-2012. For that time, the quality is impeccable, but a lot has happened tooling wise.

We've incorporated the python toolset from git-pull projects like tmuxp / libvcs / cihai: mypy, black, isort, pytest, markdown docs w/ doctests, github workflows, etc. In addition:

  • Python 2.x support removed via pyupgrade and by hand
    • Compat import, __future__ statements
  • Poetry
  • Minimum python version 3.7
  • Updated to latest sphinx (from 1.1)
  • Updated to latest pytest (from 2.2)

Installation

This extension can be installed from the Python Package Index:

$ pip install sphinx-autoissues

This extension requires Sphinx 1.1 and Python 2.6 or Python 3.1.

Usage

Just add this extension to extensions and configure your issue tracker:

extensions = ['sphinx_autoissues']
issuetracker = 'github'
issuetracker_project = 'tony/sphinx-autoissues'

Now issue references like #10 are replaced with links to the issue tracker of this extension, unless the reference occurs in literal text like inline literals or code blocks.

You can disable this magic behaviour by setting issuetracker_plaintext_issues to False:

issuetracker_plaintext_issues = False

Now textual references are no longer replaced. However, you can still explicitly reference issues with the issue role.

For more details refer to the documentation.

Support

Please report issues to the issue tracker if you have trouble, found a bug in this extension or lack support for a specific issue tracker, but respect the following rules:

  • Check that the issue has not already been reported.
  • Check that the issue is not already fixed in the master branch.
  • Open issues with clear title and a detailed description in grammatically correct, complete sentences.

Development

The source code is hosted on Github:

$ git clone https://github.com/tony/sphinx-autoissues

Please fork the repository and send pull requests with your fixes or cool new features, but respect the following rules:

Docs Build Status

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

sphinx-autoissues-0.0.1a1.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

sphinx_autoissues-0.0.1a1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file sphinx-autoissues-0.0.1a1.tar.gz.

File metadata

  • Download URL: sphinx-autoissues-0.0.1a1.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for sphinx-autoissues-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 bb527a19f8292f9c650788293ba5bc0607c706591c3adca974862f41a2ba0228
MD5 4dfc4005342029d2126b912c7a643fcb
BLAKE2b-256 0c8fa17fefb5f1aa8ad2d09ee8d33b7c73fbfa26354c593c5e09551a824830eb

See more details on using hashes here.

File details

Details for the file sphinx_autoissues-0.0.1a1-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_autoissues-0.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 13cb27325d88227725ea5e03ffd5dae300961971b7f201487b8e760fdb4f5ced
MD5 819186b74badd03e115d547dfafd4546
BLAKE2b-256 8971d6578e40e17298411e93fc2b503c1b32774965fe509bfc5bc7604d6183d7

See more details on using hashes here.

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