Skip to main content

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:

  • Title resolution via GitHub disabled by default (to avoid rate limits)

    Re-enable by setting issuetracker_resolve_issues = True

  • Trackers other than GitHub removed

  • 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

Release files for sphinx-autoissues 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-autoissues 0.0.1
File Size Uploaded
sphinx-autoissues-0.0.1.tar.gz 13.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-autoissues 0.0.1
File Interpreter ABI Platform
sphinx_autoissues-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.3 kB

Release files / sphinx-autoissues-0.0.1.tar.gz

Download URL sphinx-autoissues-0.0.1.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a308fd914d700ff2aa2b4584c29975a030ede7171898130ec816eca7ec2c8ce8
BLAKE2b-256 checksum
How to use checksums
740999909021acd9515053f89910a6a40da3ba9fc06d5c5783896231e791bd26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / sphinx_autoissues-0.0.1-py3-none-any.whl

Download URL sphinx_autoissues-0.0.1-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07503b774c3a64b97d2614fa409410316fbfeb87ba4553dbe3a7d2131b7453a0
BLAKE2b-256 checksum
How to use checksums
bb0318ca46ff11873df0bcc858e0d732b6b514b9c7e2bd9ee54e99d12e98753b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page