Skip to content

Commit

Permalink
Merge pull request #188 from arXiv/develop
Browse files Browse the repository at this point in the history
Pre-release merge for base v0.16.8
  • Loading branch information
mhl10 authored Jun 24, 2020
2 parents 80c25ae + f1f7c70 commit 5c07fc3
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 59 deletions.
2 changes: 2 additions & 0 deletions arxiv/base/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
("about", "/about", BASE_SERVER),
("team", "/about/people/leadership_team", BASE_SERVER),
("privacy_policy", "/help/policies/privacy_policy", BASE_SERVER),
("copyright", "/help/license", BASE_SERVER),
("a11y", "/help/web_accessibility", BASE_SERVER),
("abs", "/abs/<arxiv:paper_id>v<string:version>", BASE_SERVER),
("abs_by_id", "/abs/<arxiv:paper_id>", BASE_SERVER),
("clickthrough", "/ct", BASE_SERVER),
Expand Down
30 changes: 22 additions & 8 deletions arxiv/base/static/css/arxivstyle.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion arxiv/base/static/css/arxivstyle.css.map

Large diffs are not rendered by default.

27 changes: 19 additions & 8 deletions arxiv/base/static/sass/_custom.sass
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,37 @@ header
padding-bottom: 0

footer
background-color: $grey
color: #fff
background-color: $grey-lightest
color: #000
padding: 1em 2em
h2
margin-bottom: .5em
text-transform: uppercase
a
color: #fff
color: #000
font-size: .9rem
border-bottom: 1px solid transparent
&:hover,
&:active
border-bottom: 1px dotted #fff
background-color: $grey-light
border-bottom: 1px dotted #005e9d
color: #005e9d
svg.icon
height: .9rem
width: .9rem
height: .85rem
width: .85rem
margin-right: .45em
top: 0
.nav-spaced
line-height: 1.75
.nav-spaced li
display: flex
align-items: center
.sorry-app-links
.a11y-main-link
font-size: 120%
line-height: 0px
.is-link
&:not(.button)
border-bottom: 1px dotted #fff
border-bottom: 1px dotted #000
.button.is-link.is-outlined
background-color: transparent
border-color: #c3c3c3
Expand All @@ -48,8 +54,13 @@ footer
margin-right: 2px
margin-left: 2px
top: 0.09em
height: .85em !important
width: .85em !important
.help
font-size: .75rem
line-height: 1.75em
a:hover .filter-black
fill: #005e9d

/**** Primary content default styling ****/
main
Expand Down
1 change: 1 addition & 0 deletions arxiv/base/static/sass/arxivstyle.sass
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ $grey-dark: #333
$grey: #757575
$grey-light: hsl(0, 0%, 60%)
$grey-lighter: hsl(0, 0%, 80%)
$grey-lightest: hsl(0, 0%, 95%)

// $orange: #d47500
// $green: #3cb521
Expand Down
53 changes: 18 additions & 35 deletions arxiv/base/templates/base/footer.html
Original file line number Diff line number Diff line change
@@ -1,66 +1,49 @@
<div class="columns is-desktop" role="navigation" aria-label="Secondary">
<!-- MetaColumn 1 -->
<div class="column">
<div class="columns is-mobile">
<div class="columns">
<div class="column">
<ul class="nav-spaced">
<li><a href="{{ url_for('about')}}">About arXiv</a></li>
<li><a href="{{ url_for('team')}}">Leadership Team</a></li>
<li><a href="{{ url_for('about')}}">About</a></li>
<li><a href="{{ url_for('help') }}">Help</a></li>
</ul>
</div>
<div class="column">
<ul class="nav-spaced">
<li>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon filter-white" role="presentation"><title>contact arXiv</title><desc>Click here to contact arXiv</desc><path d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon filter-black" role="presentation"><title>contact arXiv</title><desc>Click here to contact arXiv</desc><path d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"/></svg>
<a href="{{ url_for('contact') }}"> Contact</a>
</li>
<li>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon filter-white" role="presentation"><title>arXiv Twitter</title><desc>arXiv Twitter</desc><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/></svg>
<a href="{{ url_for('twitter') }}"> <span class="is-hidden-mobile">Follow us on</span> Twitter</a>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon filter-black" role="presentation"><title>subscribe to arXiv mailings</title><desc>Click here to subscribe</desc><path d="M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"/></svg>
<a href="{{ url_for('subscribe') }}"> Subscribe</a>
</li>
</ul>
</div>
</div>
</div> <!-- end MetaColumn 1 -->
<!-- MetaColumn 2 -->
<div class="column">
<div class="columns is-mobile">
<div class="columns">
<div class="column">
<ul class="nav-spaced">
<li><a href="{{ url_for('help') }}">Help</a></li>
<li><a href="{{ url_for('copyright') }}">Copyright</a></li>
<li><a href="{{ url_for('privacy_policy') }}">Privacy Policy</a></li>
</ul>
</div>
<div class="column">
<div class="column sorry-app-links">
<ul class="nav-spaced">
<li><a href="{{ url_for('blog') }}">Blog</a></li>
<li><a href="{{ url_for('subscribe') }}"> Subscribe</a></li>
<li><a href="{{ url_for('a11y') }}">Web Accessibility Assistance</a></li>
<li>
<p class="help">
<a class="a11y-main-link" href="https://status.arxiv.org" target="_blank">arXiv Operational Status <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512" class="icon filter-dark_grey" role="presentation"><path d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"/></svg></a><br>
Get status notifications via
<a class="is-link" href="https://subscribe.sorryapp.com/24846f03/email/new" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon filter-black" role="presentation"><path d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"/></svg>email</a>
or <a class="is-link" href="https://subscribe.sorryapp.com/24846f03/slack/new" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="icon filter-black" role="presentation"><path d="M94.12 315.1c0 25.9-21.16 47.06-47.06 47.06S0 341 0 315.1c0-25.9 21.16-47.06 47.06-47.06h47.06v47.06zm23.72 0c0-25.9 21.16-47.06 47.06-47.06s47.06 21.16 47.06 47.06v117.84c0 25.9-21.16 47.06-47.06 47.06s-47.06-21.16-47.06-47.06V315.1zm47.06-188.98c-25.9 0-47.06-21.16-47.06-47.06S139 32 164.9 32s47.06 21.16 47.06 47.06v47.06H164.9zm0 23.72c25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06H47.06C21.16 243.96 0 222.8 0 196.9s21.16-47.06 47.06-47.06H164.9zm188.98 47.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06h-47.06V196.9zm-23.72 0c0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06V79.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06V196.9zM283.1 385.88c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06v-47.06h47.06zm0-23.72c-25.9 0-47.06-21.16-47.06-47.06 0-25.9 21.16-47.06 47.06-47.06h117.84c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06H283.1z"/></svg>slack</a>
</p>
</li>
</ul>
</div>
</div>
</div> <!-- end MetaColumn 2 -->
</div>

<div class="columns" style="border-top: 1px solid #979797">
<div class="column">
<div class="columns">
<div class="column">
<p class="help">arXiv&#174; is a registered trademark of Cornell University.</p>
</div>
<div class="column sorry-app-links">
<p class="help">
<a class="button is-link is-outlined" href="https://status.arxiv.org" target="_blank">arXiv Operational Status <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512" class="icon filter-dark_grey" role="presentation"><path d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"/></svg></a><br>
Get status notifications via
<a class="is-link" href="https://subscribe.sorryapp.com/24846f03/email/new" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon filter-white" role="presentation"><path d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"/></svg>email</a>
or <a class="is-link" href="https://subscribe.sorryapp.com/24846f03/slack/new" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="icon filter-white" role="presentation"><path d="M94.12 315.1c0 25.9-21.16 47.06-47.06 47.06S0 341 0 315.1c0-25.9 21.16-47.06 47.06-47.06h47.06v47.06zm23.72 0c0-25.9 21.16-47.06 47.06-47.06s47.06 21.16 47.06 47.06v117.84c0 25.9-21.16 47.06-47.06 47.06s-47.06-21.16-47.06-47.06V315.1zm47.06-188.98c-25.9 0-47.06-21.16-47.06-47.06S139 32 164.9 32s47.06 21.16 47.06 47.06v47.06H164.9zm0 23.72c25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06H47.06C21.16 243.96 0 222.8 0 196.9s21.16-47.06 47.06-47.06H164.9zm188.98 47.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06h-47.06V196.9zm-23.72 0c0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06V79.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06V196.9zM283.1 385.88c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06v-47.06h47.06zm0-23.72c-25.9 0-47.06-21.16-47.06-47.06 0-25.9 21.16-47.06 47.06-47.06h117.84c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06H283.1z"/></svg>slack</a>
</p>
</div>
</div>
</div>
<div class="column">
<p class="help">If you have a disability and are having trouble accessing information
on this website or need materials in an alternate format, contact
<a href="{{ A11Y_URL }}">[email protected]</a> for
assistance.</p>
</div>
</div>
2 changes: 1 addition & 1 deletion arxiv/base/templates/base/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ <h1 class="title mathjax"><span class="descriptor">Title:</span>{{ title|tex2utf
{%- if journal_ref %}
<tr>
<td class="tablecell label">Journal&nbsp;reference:</td>
<td class="tablecell jref">{{ journal_ref }}</td>
<td class="tablecell jref">{{ journal_ref|tex2utf }}</td>
</tr>
{% endif -%}
{%- if doi %}
Expand Down
13 changes: 7 additions & 6 deletions arxiv/release/docker_build_push.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Runs docker login, build and push commands.
For use in travis ci."""
For use in travis ci.
"""

import os
import sys
Expand All @@ -11,20 +12,20 @@
user = 'arxiv'
context = sys.argv[1]
label = sys.argv[2]
except:
except Exception:
print('Example of use:')
print('TRAVIS_TAG=1.2.3 DOCKERHUB_PASSWORD=1234 DOCKERHUB_USERNAME=frank python -m arxiv.release.docker_build_push ./fourohfour fourohfour')
exit(1)

try:
try:
labeltag = f"{user}/{label}:{tag}"
login = f'docker login -u "$DOCKERHUB_USERNAME" -p "$DOCKERHUB_PASSWORD"'
login = 'docker login -u "$DOCKERHUB_USERNAME" -p "$DOCKERHUB_PASSWORD"'
build = f"""docker build -t {labeltag} {context}"""
push = f"""docker push {labeltag}"""
logout = "docker logout"
logout = "docker logout"
cmds = ' ' + ' && '.join([login, build, push, logout])

#Running all the commands in a single subshell to keep docker login
# Running all the commands in a single subshell to keep docker login
retcode = call(cmds, shell=True)
if retcode < 0:
print("Child was terminated by signal", -retcode, file=sys.stderr)
Expand Down

0 comments on commit 5c07fc3

Please sign in to comment.