-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since version 1.5.0, Sphinx is adding the source file extension to the source files it includes in the output folder. For example, when your source file extension is `rst` (specified in the config variable `source_suffix` as `[.rst]`, your index file appears in the output's source folder as `index.rst.txt`. If you use a Sphinx version lower than 1.5.0, it appears as `index.txt`. Here's the link to the PR that introduces the breaking change: sphinx-doc/sphinx#2454. The solution adjust the file name/suffix based on the Sphinx version: * If you use Sphinx >=1.5, the file name will be filename + source_file_ending + ".txt". * If you use Sphinx < 1.5, the file name will be filename + ".txt". The changes also add aconfig option that allows forcing a fallback to 2). This will help folks who use this extension for a long time and whose templates evolved accordingly.
- Loading branch information
Showing
3 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
setuptools.setup( | ||
name='sphinxprettysearchresults', | ||
packages=['sphinxprettysearchresults'], | ||
version='0.1.7', | ||
version='0.2.0', | ||
description='Decently styled search results for sphinx-doc projects', | ||
author='Timotheus Kampik', | ||
author_email='[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters