This repository has been archived by the owner on Oct 27, 2023. It is now read-only.
forked from pytorch/pytorch_sphinx_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
adding header and footer integration + styles adjustment #5
Open
rodrigo-techera
wants to merge
23
commits into
develop
Choose a base branch
from
YJ2175-207/header-footer-integration
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
d36f4bb
adding header and footer integration + styles adjustment
ddcb36c
adding header and footer integration + styles adjustment
db8524f
fixing styles and javascript for indexes
a73b30a
adding footer legalmenu structure
5c4a368
adding styles to index pages
42354e9
adding cards to footer
4ef2dbb
adding cards to backend page
98b6ae0
removing prefooter
a9b7d88
fixing bugs
614b943
css fixes and refactor of collapsable left menu
a3dba3b
adding top container for tutorials
a95ccef
adding menu active for docs and tutorials
059e3ab
adding menu active for docs and tutorials
bdc7237
adding tutorials fixes to sphinx theme
fbdda17
adding layout fixes
0f7721c
adding hamburguer menu and search functionality
eacb89e
YJ2175-207/header-footer-integration
0a9a2be
adding gtm snippet
a857bd7
removing js error from right sidemenu
16ca4f2
fixing prev and next, footer spacing and copyright text
d03cad0
adding css exceptions
5c9321f
removing redundant github link
b16e48a
removing redundant github link
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,75 +1,17 @@ | ||
<footer> | ||
{% if (theme_prev_next_buttons_location == 'bottom' or theme_prev_next_buttons_location == 'both') and (next or prev) %} | ||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> | ||
{% if next %} | ||
<a href="{{ next.link|e }}" class="btn btn-neutral float-right" title="{{ next.title|striptags|e }}" accesskey="n" rel="next">{{ _('Next') }} <img src="{{ pathto('_static/images/chevron-right-orange.svg', 1) }}" class="next-page"></a> | ||
{% endif %} | ||
{% if prev %} | ||
<a href="{{ prev.link|e }}" class="btn btn-neutral" title="{{ prev.title|striptags|e }}" accesskey="p" rel="prev"><img src="{{ pathto('_static/images/chevron-right-orange.svg', 1) }}" class="previous-page"> {{ _('Previous') }}</a> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
|
||
{% if theme_pytorch_project == 'tutorials' %} | ||
|
||
<hr class="rating-hr hr-top"> | ||
<div class="rating-container"> | ||
<div class="rating-prompt">Rate this Tutorial</div> | ||
<div class="stars-outer"> | ||
<i class="far fa-star" title="1 Star" data-behavior="tutorial-rating" data-count="1"></i> | ||
<i class="far fa-star" title="2 Stars" data-behavior="tutorial-rating" data-count="2"></i> | ||
<i class="far fa-star" title="3 Stars" data-behavior="tutorial-rating" data-count="3"></i> | ||
<i class="far fa-star" title="4 Stars" data-behavior="tutorial-rating" data-count="4"></i> | ||
<i class="far fa-star" title="5 Stars" data-behavior="tutorial-rating" data-count="5"></i> | ||
</div> | ||
</div> | ||
<hr class="rating-hr hr-bottom"/> | ||
|
||
{% else %} | ||
|
||
<hr> | ||
|
||
{% endif %} | ||
|
||
<div role="contentinfo"> | ||
<p> | ||
{%- if show_copyright %} | ||
{%- if hasdoc('copyright') %} | ||
{% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %} | ||
{%- else %} | ||
{% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %} | ||
{%- endif %} | ||
{%- endif %} | ||
|
||
{%- if build_id and build_url %} | ||
{% trans build_url=build_url, build_id=build_id %} | ||
<span class="build"> | ||
Build | ||
<a href="{{ build_url }}">{{ build_id }}</a>. | ||
</span> | ||
{% endtrans %} | ||
{%- elif commit %} | ||
{% trans commit=commit %} | ||
<span class="commit"> | ||
Revision <code>{{ commit }}</code>. | ||
</span> | ||
{% endtrans %} | ||
{%- elif last_updated %} | ||
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %} | ||
{%- endif %} | ||
|
||
</p> | ||
<footer class="Footer"> | ||
<hr> | ||
<div class="mainNav"> | ||
<div class="logo"> | ||
<a href="{{ pytorch_site_url }}"> | ||
<svg width="30" height="35" viewBox="0 0 30 35" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M24.8384 10.3748L22.3344 12.8296C26.5077 16.9211 26.5077 23.5842 22.3344 27.6757C18.1612 31.7671 11.3647 31.7671 7.19148 27.6757C3.01823 23.5842 3.01823 16.9211 7.19148 12.8296L13.8687 6.28337L14.7033 5.34818V0.438477L4.56829 10.3748C-1.03579 15.869 -1.03579 24.6363 4.56829 30.1305C10.1724 35.6247 19.1151 35.6247 24.7191 30.1305C30.4424 24.6363 30.4424 15.7521 24.8384 10.3748Z" fill="#de3412"></path> | ||
<ellipse cx="19.8316" cy="7.80298" rx="1.90777" ry="1.87036" fill="#de3412"></ellipse> | ||
</svg> | ||
</a> | ||
</div> | ||
<ul class="footerNav"></ul> | ||
</div> | ||
|
||
{%- if show_sphinx %} | ||
{% trans %} | ||
<div> | ||
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. | ||
</div> | ||
{% endtrans %} | ||
{%- endif %} | ||
|
||
{%- block extrafooter %} {% endblock %} | ||
|
||
</footer> | ||
|
||
<div class="legalNav"> | ||
<ul class="legalNavList"></ul> | ||
</div> | ||
</footer> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you modifying the SVG with CSS at all? If not can we use something like this
src="{{ pathto('_static/images/YOUR_SVG_NAME.svg', 1) }}
so that we can maintain the consistency for each implementation