Skip to content

Commit

Permalink
Deploy ebiwd/EBI-Icon-fonts to github.com/ebiwd/EBI-Icon-fonts.git:v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
traviscibot committed Sep 18, 2018
0 parents commit 633758e
Show file tree
Hide file tree
Showing 577 changed files with 20,971 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.DS_Store
*.log
node_modules
build
*.node
components
_site/
79 changes: 79 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
image: netroby/alpine-rsync

#project specific variables can be defines here, or overridden project settings
variables:
SERVER_DEV: ebi-cli.ebi.ac.uk
S3_BUCKET_DEV: origin.dev.ebi.emblstatic.net
SCRIPT_DEV: ~/bin/update-ebi-icon-fonts
DEV_URL: http://wwwdev.ebi.ac.uk/web_guidelines/EBI-Icon-fonts
SERVER_PROD: ebi-cli.ebi.ac.uk
S3_BUCKET_PROD: origin.ebi.emblstatic.net
SCRIPT_PROD: ~/bin/update-ebi-icon-fonts-prod
PROD_URL: http://www.ebi.ac.uk/web_guidelines/EBI-Icon-fonts
# do not define here, put in project variables
SSH_USER: username
SSH_KEY: secret-key
AWS_KEY: key
AWS_SECRET: secret-key

#setup ssh keys
.deploy_setup: &deploy_setup
tags:
- docker
before_script:
- mkdir ~/.ssh
- echo -e "${SSH_KEY}" >> ~/.ssh/${SSH_USER} && chmod 400 ~/.ssh/${SSH_USER}
- echo -e "Host *\n\tIdentityFile ~/.ssh/%r\n\tStrictHostKeyChecking no" >> ~/.ssh/config

stages:
- deploy

deploy_dev:
<<: *deploy_setup
stage: deploy
script:
- ssh -t ${SSH_USER}@${SERVER_DEV} ${SCRIPT_DEV}
only:
- branches
except:
- /-code$/
environment:
name: dev
url: ${DEV_URL}

deploy_live:
<<: *deploy_setup
stage: deploy
script:
- ssh -t ${SSH_USER}@${SERVER_PROD} ${SCRIPT_PROD}
only:
- tags
environment:
name: live
url: ${LIVE_URL}

deploy_aws_dev:
image: ebiwd/alpine-ssh
stage: deploy
tags:
- docker
before_script:
- add-aws-key ${AWS_KEY} ${AWS_SECRET}
script:
- bin/deploy-aws
only:
- branches
except:
- /-code$/

deploy_aws_live:
image: ebiwd/alpine-ssh
stage: deploy
tags:
- docker
before_script:
- add-aws-key ${AWS_KEY} ${AWS_SECRET}
script:
- bin/deploy-aws prod
only:
- tags
16 changes: 16 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<FilesMatch "\.(ttf|ttc|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
SetOutputFilter DEFLATE
</FilesMatch>

AddType font/ttf .ttf
AddType font/eot .eot
AddType font/otf .otf
AddType font/woff .woff
AddType image/svg+xml .svg

# AddOutputFilterByType DEFLATE application/vnd.ms-fontobject application/x-font-ttf image/svg+xml

DirectoryIndex index.html demo.html
1 change: 1 addition & 0 deletions .max-age
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
86400
13 changes: 13 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.*.swp
._*
.DS_Store
.git
.hg
.npmrc
.lock-wscript
.svn
.wafpickle-*
config.gypi
CVS
npm-debug.log

21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: node_js

node_js:
- stable

install:
- npm install

before_script:
- sudo apt-get install fontforge
- npm install grunt-cli -g

script: grunt

deploy:
provider: pages
skip_cleanup: true
target_branch: v1.2
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch: v1.2-code
54 changes: 54 additions & 0 deletions EBI-Chemistry/fonts/EBI-Chemistry.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/* Generated by grunt-webfont */



@font-face {
font-family:"EBI-Chemistry";
src:url("EBI-Chemistry.eot?d76a19833b661311a1015a2daf1f8b12");
src:url("EBI-Chemistry.eot?d76a19833b661311a1015a2daf1f8b12#iefix") format("embedded-opentype"),
url("EBI-Chemistry.woff2?d76a19833b661311a1015a2daf1f8b12") format("woff2"),
url("EBI-Chemistry.woff?d76a19833b661311a1015a2daf1f8b12") format("woff"),
url("EBI-Chemistry.ttf?d76a19833b661311a1015a2daf1f8b12") format("truetype"),
url("EBI-Chemistry.svg?d76a19833b661311a1015a2daf1f8b12#EBI-Chemistry") format("svg");
font-weight:normal;
font-style:normal;
}

.icon-chemistry {

font-family:"EBI-Chemistry";

display:inline-block;
line-height:1;
font-weight:normal;
font-style:normal;
speak:none;
text-decoration:inherit;
text-transform:none;
text-rendering:auto;
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
}


/* Icons */


.icon-direction_left:before {
content:"\6c";
}


.icon-direction_reversible:before {
content:"\52";
}


.icon-direction_right:before {
content:"\72";
}


.icon-direction_unknown:before {
content:"\55";
}
Binary file added EBI-Chemistry/fonts/EBI-Chemistry.eot
Binary file not shown.
56 changes: 56 additions & 0 deletions EBI-Chemistry/fonts/EBI-Chemistry.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!-- This will be embeded into a master preview at http://www.ebi.ac.uk/web_guidelines/EBI-Icon-fonts/ -->
<link rel="stylesheet" href="../../fonts.css" type="text/css" media="all">
<!-- We still relink the fonts css for a basic preview -->
<table class="responsive-table">
<thead>
<tr>
<th class="small-5" id="EBI-Chemistry" data-magellan-target="EBI-Chemistry">EBI-Chemistry <small>version 1.2</small></th>
<th class="small-1"></th>
<th class="small-6 kbd small">HTML</th>
<th class="show-for-large kbd small">Drupal</th>
</tr>
</thead>
<tbody>


<tr>


<td>Direction left</td>
<td><span class="icon-chemistry icon-" data-icon="&#x6c"> </span></td>
<td>&lt;* class="icon icon-chemistry" data-icon="&#x6c"&gt;</td>
<td>[icon-chemistry:&#x6c]</td>
</tr>


<tr>


<td>Direction reversible</td>
<td><span class="icon-chemistry icon-" data-icon="&#x52"> </span></td>
<td>&lt;* class="icon icon-chemistry" data-icon="&#x52"&gt;</td>
<td>[icon-chemistry:&#x52]</td>
</tr>


<tr>


<td>Direction right</td>
<td><span class="icon-chemistry icon-" data-icon="&#x72"> </span></td>
<td>&lt;* class="icon icon-chemistry" data-icon="&#x72"&gt;</td>
<td>[icon-chemistry:&#x72]</td>
</tr>


<tr>


<td>Direction unknown</td>
<td><span class="icon-chemistry icon-" data-icon="&#x55"> </span></td>
<td>&lt;* class="icon icon-chemistry" data-icon="&#x55"&gt;</td>
<td>[icon-chemistry:&#x55]</td>
</tr>

</tbody>
</table>
57 changes: 57 additions & 0 deletions EBI-Chemistry/fonts/EBI-Chemistry.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EBI-Chemistry/fonts/EBI-Chemistry.ttf
Binary file not shown.
Binary file added EBI-Chemistry/fonts/EBI-Chemistry.woff
Binary file not shown.
Binary file added EBI-Chemistry/fonts/EBI-Chemistry.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions EBI-Chemistry/static/svg/direction_left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions EBI-Chemistry/static/svg/direction_reversible.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions EBI-Chemistry/static/svg/direction_right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions EBI-Chemistry/static/svg/direction_unknown.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 633758e

Please sign in to comment.