Skip to content

conf.py parameter for default document name uses exclusionary language #8326

Closed

Description

@moshez

Is your feature request related to a problem? Please describe.

In a number of projects I am involved with which use sphinx, avoiding exclusionary language, and especially terms that are related to racial injustices, is a priority. In conf.py, to override which document is the root, it uses the term master_doc.

Describe the solution you'd like

An alias to the term master_doc in conf.py. For example, if this was root_doc, then using

root_doc = "README.rst"

would have the same effect as

master_doc = "README.rst"

If both are defined, this is either an error or root_doc takes precedence. I have no strong feelings about the behavior in this corner case.

A clear and concise description of what you want to happen.

Describe alternatives you've considered

  • We can have alternative names for root_doc (for example, content_doc)
  • For some use cases, taking advantage of the default index.rst works well, so I don't need to explicitly set it.
  • I considered playing games with global so offensive terms are not explicit in my code. e.g. globals()[rot13(...)] = "README.rst
  • I can copy files to the default filename.

Activity

  1. added
    type:enhancement
    on Oct 21, 2020
  2. shimizukawa commented on Nov 23, 2020

    @shimizukawa
    Member

    +1 for the root_doc alias of master_doc

  3. tk0miya commented on Nov 23, 2020

    @tk0miya
    Member

    +1: I think root_doc is a good name to describe its meaning.

  4. added this to the 4.0.0 milestone on Nov 23, 2020
  5. added 3 commits that reference this issue on Nov 24, 2020
    848b8fb
    284de66
    4f5afa4
  6. jfbu commented on Jan 24, 2021

    @jfbu
    Contributor

    Maybe one should inform people that a degree such as master of arts is impropriately worded.

  7. tk0miya commented on Jan 24, 2021

    @tk0miya
    Member

    I think I would object to rename if no good alternative was found. But "root" is so natural for me because we already use the "tree" metaphor for the Table of Contents. Therefore, I think this is a good change, not only for political requests.

  8. added 9 commits that reference this issue on Feb 28, 2021
    c4ca2f2
    6cac4de
    8029e92
    65d1813
    cde948a
    9311772
    954803e
    3059a99
    fc8247a
  9. added a commit that references this issue on Mar 11, 2021
    3134085
  10. locked as resolved and limited conversation to collaborators on Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    internals:configtype:enhancement

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions