-
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.
Merge pull request #13 from TimKam/12-support-view-page-source
#12 support page source links
- Loading branch information
Showing
5 changed files
with
38 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
*.pyc | ||
*.egg-info | ||
.idea/ | ||
venv/ | ||
dist/ | ||
tests/root/_build |
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.2.0', | ||
version='0.3.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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{# | ||
because we now have actual and prettified sources, | ||
this plugin introduces a custom source link that points to the new location of the non-prettified sources | ||
#} | ||
{%- if show_source and has_source and sourcename %} | ||
<div role="note" aria-label="source link"> | ||
<h3>{{ _('This Page') }}</h3> | ||
<ul class="this-page-menu"> | ||
<li><a href="{{ pathto('_raw_sources/' + sourcename, true)|e }}" | ||
rel="nofollow">{{ _('Show Source') }}</a></li> | ||
</ul> | ||
</div> | ||
{%- endif %} |