Skip to content

Commit

Permalink
1.2dev: Render INSTALL and UPGRADE as ReST.
Browse files Browse the repository at this point in the history
Renamed `INSTALL` to `INSTALL.rst` and `UPGRADE` to `UPGRADE.rst`.
Modified the default value of `[mimeviewer] mime_map_patterns` so
that `INSTALL.rst` isn't matched by the regular expression for the
`text/plain` mime type. `INSTALL.rst` and `UPGRADE.rst` should now
be rendered to HTML when docutils is installed, even when viewing
the files in a Git repository (or any other VCS that doesn't allow
the mimetype to be set as a repository property, like Subversion
does).

Refs #12141.


git-svn-id: http://trac.edgewall.org/intertrac/log:/trunk@14330 af82e41b-90c4-0310-8c96-b1721e28e2e2
  • Loading branch information
rjollos committed Sep 22, 2015
1 parent a99ec9f commit 9371042
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion trac/mimeview/api.py
Expand Up @@ -649,7 +649,7 @@ class Mimeview(Component):
""")

mime_map_patterns = ListOption('mimeviewer', 'mime_map_patterns',
'text/plain:README|INSTALL|COPYING.*',
'text/plain:README|INSTALL(?!\.rst)|COPYING.*',
doc="""List of additional MIME types associated to filename patterns.
Mappings are comma-separated, and each mapping consists of a MIME type
and a Python regexp used for matching filenames, separated by a colon
Expand Down

0 comments on commit 9371042

Please sign in to comment.