Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

site-wide social include #12102

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8660740
trying out site-wide social include
aaronmarkham Aug 8, 2018
b266724
adding svg versions of social icons
aaronmarkham Aug 9, 2018
e6c533d
fix social section images and layout on contribute
aaronmarkham Aug 9, 2018
382258f
fix max-height for logos on home page
aaronmarkham Aug 9, 2018
295a709
making the twitter birdie bigger
aaronmarkham Aug 9, 2018
99a4738
conformed svg images to single design
aaronmarkham Aug 9, 2018
bf0299c
fixup! conformed svg images to single design
aaronmarkham Aug 9, 2018
c8ef1bb
fixup! conformed svg images to single design
aaronmarkham Aug 9, 2018
fc0f9f4
fixup! fix max-height for logos on home page
aaronmarkham Aug 9, 2018
fce65c0
only show social on index page and updated youtube address
aaronmarkham Aug 23, 2018
97248b2
fix splash div overlap on social navbar
aaronmarkham Aug 23, 2018
8c94813
update youtube address
aaronmarkham Aug 23, 2018
25ccaec
use regular colored social buttons
aaronmarkham Aug 23, 2018
29ead68
remove padding to prevent overlap of social icons on high res monitors
aaronmarkham Aug 27, 2018
aa906fb
add image padding to social icons
aaronmarkham Aug 27, 2018
9387025
update twitter button
aaronmarkham Aug 27, 2018
4d17a7f
Merge branch 'master' into social_media_update
aaronmarkham Aug 27, 2018
0a6ae47
update images; fix youtube link & contrib social section
aaronmarkham Aug 27, 2018
f26ebf2
hide social when colliding with promo
aaronmarkham Aug 27, 2018
c8643fc
adding more padding to social images
aaronmarkham Aug 27, 2018
824234f
reduce promo div for social
aaronmarkham Aug 28, 2018
7c8608e
removing height limit to let the social logos get a bit bigger
aaronmarkham Aug 29, 2018
bac9781
Merge branch 'master' into social_media_update
aaronmarkham Sep 26, 2018
5881164
Merge branch 'master' into social_media_update
aaronmarkham Oct 19, 2018
5a6bc6c
update image names
aaronmarkham Oct 19, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/_static/images/medium.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions docs/_static/images/reddit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions docs/_static/images/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions docs/_static/images/youtube.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/_static/mxnet-theme/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</div>
</div>
</div>
<div class="col-lg-6" style="padding-top: 60px;">
<div class="col-lg-5" style="padding-top: 60px;">
<a href="http://www.apachecon.com/acna18/" class="section-tout-promo"><img src="http://www.apachecon.com/acna18/banners/acna-sleek-highres.png" width="65%" alt="apachecon"/></a>
</div>
</div>
Expand Down
40 changes: 22 additions & 18 deletions docs/_static/mxnet-theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,24 @@
</script>

<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script type="text/javascript" src="{{ pathto('_static/js/sidebar.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/js/search.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/js/navbar.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/js/clipboard.min.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/js/copycode.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/js/page.js', 1) }}"></script>
<script type="text/javascript">
$('body').ready(function () {
$('body').css('visibility', 'visible');
});
</script>
{% if pagename != 'index' %}
<script type="text/javascript">
$('body').css('background', 'white');
</script>
{%- endif %}

{% for name in ['underscore.js', 'searchtools_custom.js', 'doctools.js', 'selectlang.js'] %}
<script type="text/javascript" src="{{ pathto('_static/' + name, 1) }}"></script>
{% endfor %}
Expand Down Expand Up @@ -118,7 +136,6 @@
{%- endblock %}
{{ css() }}
{%- if not embedded %}
{{ script() }}
{%- if use_opensearch %}
<link rel="search" type="application/opensearchdescription+xml"
title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
Expand Down Expand Up @@ -158,11 +175,10 @@
<body role="document" background="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet-background-compressed.jpeg">
<div class='content-block'>
{%- include "navbar.html" %}

{% if pagename == 'index' %}
{%- include "social.html" %}
{%- endif %}
{% if pagename != 'index' %}
<script type="text/javascript">
$('body').css('background', 'white');
</script>
<div class="container">
<div class="row">
<div class="sphinxsidebar leftsidebar" role="navigation" aria-label="main navigation">
Expand All @@ -183,18 +199,6 @@
{%- include "footer.html" %}
{%- endif %} <!-- pagename != index -->
</div>

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script type="text/javascript" src="{{ pathto('_static/js/sidebar.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/js/search.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/js/navbar.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/js/clipboard.min.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/js/copycode.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/js/page.js', 1) }}"></script>
<script type="text/javascript">
$('body').ready(function () {
$('body').css('visibility', 'visible');
});
</script>
{{ script() }}
</body>
</html>
36 changes: 23 additions & 13 deletions docs/_static/mxnet-theme/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ <h1 id="logo-wrap">
<nav id="main-nav" class='nav-bar'>
<a class="main-nav-link" href="{{url_root}}install/index.html">Install</a>

<span id="dropdown-menu-position-anchor">
<span id="dropdown-menu-position-anchor-gluon">
<a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Gluon <span class="caret"></span></a>
<ul id="package-dropdown-menu" class="dropdown-menu navbar-menu">
<li><a class="main-nav-link" href="{{url_root}}gluon/index.html">About</a></li>
<li><a class="main-nav-link" href="http://gluon.mxnet.io">Tutorials</a></li>
</ul>
</span>

<span id="dropdown-menu-position-anchor">
<span id="dropdown-menu-position-anchor-apis">
<a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">API <span class="caret"></span></a>
<ul id="package-dropdown-menu" class="dropdown-menu navbar-menu">
<li><a class="main-nav-link" href="{{url_root}}api/python/index.html">Python</a></li>
Expand Down Expand Up @@ -57,17 +57,6 @@ <h1 id="logo-wrap">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">☰</a>
<ul id="burgerMenu" class="dropdown-menu">
<li><a href="{{url_root}}install/index.html">Install</a></li>
<li><a class="main-nav-link" href="{{url_root}}tutorials/index.html">Tutorials</a></li>
<li class="dropdown-submenu dropdown">
<a href="#" tabindex="-1" aria-haspopup="true" role="button" class="dropdown-toggle burger-link" data-toggle="dropdown">Community</a>
<ul class="dropdown-menu">
<li><a tabindex="-1" href="http://discuss.mxnet.io">Forum</a></li>
<li><a tabindex="-1" href="https://github.com/apache/incubator-mxnet">Github</a></li>
<li><a tabindex="-1" href="{{url_root}}community/contribute.html">Contribute</a></li>
<li><a tabindex="-1" href="{{url_root}}community/ecosystem.html">Ecosystem</a></li>
<li><a tabindex="-1" href="{{url_root}}community/powered_by.html">Powered By</a></li>
</ul>
</li>
{% for name in ['API'] %}
<li class="dropdown-submenu">
<a href="#" tabindex="-1" role="button" aria-haspopup="true" class="dropdown-toggle burger-link" data-toggle="dropdown">{{name}}</a>
Expand All @@ -89,13 +78,34 @@ <h1 id="logo-wrap">
<li><a tabindex="-1" href="{{url_root}}api/python/gluon/model_zoo.html">Gluon Model Zoo</a></li>
</ul>
</li>
<li class="dropdown-submenu dropdown">
<a href="#" tabindex="-1" aria-haspopup="true" role="button" class="dropdown-toggle burger-link" data-toggle="dropdown">Community</a>
<ul class="dropdown-menu">
<li><a tabindex="-1" href="http://discuss.mxnet.io">Forum</a></li>
<li><a tabindex="-1" href="https://github.com/apache/incubator-mxnet">Github</a></li>
<li><a tabindex="-1" href="{{url_root}}community/contribute.html">Contribute</a></li>
<li><a tabindex="-1" href="{{url_root}}community/ecosystem.html">Ecosystem</a></li>
<li><a tabindex="-1" href="{{url_root}}community/powered_by.html">Powered By</a></li>
</ul>
</li>
<li class="dropdown-submenu dropdown">
<a href="#" tabindex="-1" aria-haspopup="true" role="button" class="dropdown-toggle burger-link" data-toggle="dropdown">Social</a>
<ul class="dropdown-menu">
<li><a tabindex="-1" href="http://discuss.mxnet.io">Forum</a></li>
<li><a tabindex="-1" href="https://medium.com/apache-mxnet">Medium</a></li>
<li><a tabindex="-1" href="https://reddit.com/r/mxnet">Reddit</a></li>
<li><a tabindex="-1" href="https://twitter.com/apachemxnet">Twitter</a></li>
<li><a tabindex="-1" href="https://www.youtube.com/apachemxnet">YouTube</a></li>
</ul>
</li>
<li><a class="main-nav-link" href="https://github.com/dmlc/mxnet">Github</a></li>
</ul>
</div>
<div class="plusIcon dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></a>
<ul id="plusMenu" class="dropdown-menu dropdown-menu-right"></ul>
</div>

<div id="search-input-wrap">
{{searchform('', False)}}
<div id="search-preview"></div>
Expand Down
Loading