old_contents: """
  Sphinx plugins for Django documentation.
  """
  import json
  import os
  import re
  
  from sphinx import addnodes, __version__ as sphinx_ver
  from sphinx.builders.html import StandaloneHTMLBuilder
  from sphinx.writers.html import SmartyPantsHTMLTranslator
  from sphinx.util.console import bold
  from sphinx.util.compat import Directive
  
  # RE for option descriptions without a '--' prefix
  simple_option_desc_re = re.compile(
      r'([-_a-zA-Z0-9]+)(\s*.*?)(?=,\s+(?:/|-|--)|$)')
  
  def setup(app):
      app.add_crossref_type(
          directivename = "setting",
          rolename      = "setting",
          indextemplate = "pair: %s; setting",
      )
      app.add_crossref_type(
          directivename = "templatetag",
          rolename      = "ttag",
          indextemplate = "pair: %s; template tag"
      )
      app.add_crossref_type(
          directivename = "templatefilter",
          rolename      = "tfilter",
          indextemplate = "pair: %s; template filter"
      )
      app.add_crossref_type(
          directivename = "page",
          rolename      = "page",
          indextemplate = "pair: %s; page",
      )
   
  
new_contents: """
  Sphinx plugins for Django documentation.
  """
  import json
  import os
  import re
  
  from sphinx import addnodes, __version__ as sphinx_ver
  from sphinx.builders.html import StandaloneHTMLBuilder
  from sphinx.writers.html import HTMLTranslator
  from sphinx.util.console import bold
  from docutils.parsers.rst import Directive
  
  # RE for option descriptions without a '--' prefix
  simple_option_desc_re = re.compile(
      r'([-_a-zA-Z0-9]+)(\s*.*?)(?=,\s+(?:/|-|--)|$)')
  
  def setup(app):
      app.add_crossref_type(
          directivename = "setting",
          rolename      = "setting",
          indextemplate = "pair: %s; setting",
      )
      app.add_crossref_type(
          directivename = "templatetag",
          rolename      = "ttag",
          indextemplate = "pair: %s; template tag"
      )
      app.add_crossref_type(
          directivename = "templatefilter",
          rolename      = "tfilter",
          indextemplate = "pair: %s; template filter"
      )
      app.add_crossref_type(
          directivename = "page",
          rolename      = "page",
          indextemplate = "pair: %s; page",
      )
   
  
subject: Update booktypedocs.py