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

Commit

Permalink
Deploy to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
qmk-bot committed May 30, 2020
0 parents commit 67b6a43
Show file tree
Hide file tree
Showing 22 changed files with 2,013 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
@@ -0,0 +1,11 @@
before_script: npm install -g harp
script: bash ./deploy.sh
language: node_js
node_js:
- 5.7.1
env:
global:
- GH_REF: github.com/qmk/github-project-public.git
branches:
only:
- master
1 change: 1 addition & 0 deletions 404.html
@@ -0,0 +1 @@
<!DOCTYPE html><html><head><title>QMK Project Board</title><link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700" rel="stylesheet" type="text/css"><link href="normalize.css" media="all" rel="stylesheet" type="text/css"><link href="style.css" media="all" rel="stylesheet" type="text/css"><link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.2/styles/default.min.css"><meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"></head><body><h1>404</h1><h3>Whoops. Looks like what you're looking for can't be found.</h3></body></html>
1 change: 1 addition & 0 deletions CNAME
@@ -0,0 +1 @@
project.qmk.fm
51 changes: 51 additions & 0 deletions CODE_OF_CONDUCT.html
@@ -0,0 +1,51 @@
<!DOCTYPE html><html><head><title>QMK Project Board</title><link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700" rel="stylesheet" type="text/css"><link href="normalize.css" media="all" rel="stylesheet" type="text/css"><link href="style.css" media="all" rel="stylesheet" type="text/css"><link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.2/styles/default.min.css"><meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"></head><body><h1>Contributor Covenant Code of Conduct</h1><h2>Our Pledge</h2><p>In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.</p>
<h2>Our Standards</h2><p>Examples of behavior that contributes to creating a positive environment
include:</p>
<ul>
<li>Using welcoming and inclusive language</li>
<li>Being respectful of differing viewpoints and experiences</li>
<li>Gracefully accepting constructive criticism</li>
<li>Focusing on what is best for the community</li>
<li>Showing empathy towards other community members</li>
</ul>
<p>Examples of unacceptable behavior by participants include:</p>
<ul>
<li>The use of sexualized language or imagery and unwelcome sexual attention or
advances</li>
<li>Trolling, insulting/derogatory comments, and personal or political attacks</li>
<li>Public or private harassment</li>
<li>Publishing others&#39; private information, such as a physical or electronic
address, without explicit permission</li>
<li>Other conduct which could reasonably be considered inappropriate in a
professional setting</li>
</ul>
<h2>Our Responsibilities</h2><p>Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.</p>
<p>Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.</p>
<h2>Scope</h2><p>This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.</p>
<h2>Enforcement</h2><p>Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at <a href="mailto:mail@bionode.io">mail@bionode.io</a>. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.</p>
<p>Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project&#39;s leadership.</p>
<h2>Attribution</h2><p>This Code of Conduct is adapted from the <a href="http://contributor-covenant.org">Contributor Covenant</a>, version 1.4,
available at <a href="http://contributor-covenant.org/version/1/4/">http://contributor-covenant.org/version/1/4</a></p></body></html>
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 Bruno Vieira <mail@bmpvieira.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
9 changes: 9 additions & 0 deletions README.html
@@ -0,0 +1,9 @@
<!DOCTYPE html><html><head><title>QMK Project Board</title><link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700" rel="stylesheet" type="text/css"><link href="normalize.css" media="all" rel="stylesheet" type="text/css"><link href="style.css" media="all" rel="stylesheet" type="text/css"><link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.2/styles/default.min.css"><meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"></head><body><h1>Bionode website</h1><p>Please improve it with pull requests.</p>
<h1>Instructions</h1><pre><code class="language-bash">git clone git@github.com:bionode/github-project-public
npm install -g harp
harp server
(edit files and watch changes on http://localhost:9000/)
harp compile
git commit -am &quot;Commit message&quot;
git push origin
# gh-pages will be auto-compiled by Travis CI</code></pre></body></html>
Binary file added bin/jq-linux64
Binary file not shown.
51 changes: 51 additions & 0 deletions deploy.sh
@@ -0,0 +1,51 @@
#!/bin/bash
set -e # exit with nonzero exit code if anything fails

# clear and re-create the out directory
rm -rf www;
rm -f _data.json

mkdir www;

# Install dependencies for projects.js
npm install;

# run projects.js to pull the latest data from github Project
node $PWD/projects.js qmk | \
"$PWD/bin/jq-linux64" -s 'group_by(.column_name) |
map( { (.[0].column_name|tostring) : . }) |
add |
{
"Backend TODO": ."Backend TODO",
"Frontend TODO": ."Frontend TODO",
"In Progress": ."In Progress",
Completed: .Completed
}' \
> _data.json

# Need to remove node_modules to avoid a conflict that causes `harp compile` to fail
rm -r node_modules;

# Install Harp globally
npm install -g harp;

# run our compile script, discussed above
harp compile
# go to the out directory and create a *new* Git repo
cd www
git init

# inside this git repo we'll pretend to be a new user
git config user.name "QMK Bot"
git config user.email "hello@qmk.fm"

# The first and only commit to this new Git repo contains all the
# files present with the commit message "Deploy to GitHub Pages".
git add .
git commit -m "Deploy to GitHub Pages"

# Force push from the current repo's dev branch to the remote github.io
# repo's gh-pages branch. (All previous history on the gh-pages branch
# will be lost, since we are overwriting it.) We redirect any output to
# /dev/null to hide any sensitive credential data that might otherwise be exposed.
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
Binary file added images/bionode-hex-small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bitcoin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/header-abstract.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 67b6a43

Please sign in to comment.