-
Notifications
You must be signed in to change notification settings - Fork 75
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 #209 from dopplershift/cleanup-config
Cleanup doc config
- Loading branch information
Showing
4 changed files
with
66 additions
and
35 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{# Extend the RTD template to include links to Github instead of "View page | ||
source" #} | ||
{% extends "!breadcrumbs.html" %} | ||
|
||
|
||
{% block breadcrumbs_aside %} | ||
<li class="source-link"> | ||
{% if hasdoc(pagename) %} | ||
{% if pagename.startswith("api/") or pagename.startswith("tutorials/") or pagename.startswith("examples/")%} | ||
{% set title = "Suggested improvement for " + pagename %} | ||
{% set body = "Please describe what could be improved about this page or the typo/mistake that you found:" %} | ||
<a href="https://github.com/{{ github_repo }}/issues/new?title={{ title|urlencode }}&body={{ body|urlencode }}" | ||
class="fa fa-github"> Improve this page</a> | ||
{% else %} | ||
<a href="https://github.com/{{ github_repo }}/edit/{{ github_version }}/{{ doc_path }}/{{ pagename }}{{ suffix }}" | ||
class="fa fa-github"> Improve this page</a> | ||
{% endif %} | ||
{% endif %} | ||
</li> | ||
{% endblock %} |
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