Skip to content

CONTRIBUTING.rst has broken links when viewed on GitHub #1910

@pushfoo

Description

@pushfoo

Bug Report

tl;dr :ref:s and other directives don't seem to render in a GitHub view of an .rst file, even for targets within the same file

System Info

Version 117.0.5938.62 (Official Build) built on Debian 11.7, running on Debian 11.6 (64-bit)

Actual behavior:

The Testing link in After making changes does not link anywhere and does not render correctly:
image

Expected behavior:

The Testing link in After making changes:

  1. Works when clicked
  2. (Ideally) renders cleanly

Steps to reproduce/example code:

  1. Go to After making changes
  2. Observe the link
  3. Attempt to click it

Correcting the capitalization does not change this either. It appears GitHub cannot render :ref: targets.

Root causes

There seems to be limited post-processing of directives in GitHub views

Implications

This may block #1302 and affect #1886, both of which I was looking at when I noticed this.

Possible ways to fix it

  1. Use a script which renders CONTRIBUTING.rst as markdown
  2. Go back to old approach: the abbreviated model + links to the web site

I'm not in favor of clever scripts because those will probably break at some point.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions