-
Install
node.jsandnpm, the node package manager.-
I suggest you use
nvm(the node version manager) or installnode.jsfrom source. Theapt-getpackages are fairly old.
-
-
Join the
blue-systems-groupgroup on GitHub and add an SSH key. -
git clone git@github.com:blue-systems-group/www.git. If this doesn’t work, you probably don’t have a key installed. Return to Step 2. -
cd www; make install-
The first time this will take some time since
npm installis running and performing some local compilation. Note that you also need ImageMagick installed locally to build the node packages.sudo apt-get install libmagick++-devdoes the trick on Ubuntu 14.04.
-
-
make run, then openlocalhost:8080in your browser. -
When you edit, rerun
makeand the site will be rebuilt.make checkwill build and check the site. -
I suggest a three terminal environment using
tmux:-
An editing window.
-
A window to run
makeormake check. -
A window to run
make runto serve the sources.
-
---
name: Geoffrey Challen
role: Assistant Professor
slug: gwa
joined: 2011-08-29
scholar: http://scholar.google.com/citations?user=VS9wzBsAAAAJ&hl=en
linkedin: https://www.linkedin.com/pub/geoffrey-challen/1a/b77/572
spelling_exceptions:
- Chuchu
- Xyz
- Ziz
---
[.lead]
I'm an Assistant Professor at the http://www.buffalo.edu[University at
Buffalo], where I lead the link:/[blue Systems Research Group] and also
direct the http://www.phone-lab.org[PhoneLab].-
The first part of the file (between the "---"s) is YAML front matter which is used to declare attributes. The rest is AsciiDoc text which defines the page content.
-
The first graph of your bio is used as the snippet on the people page and should be marked
[.lead]; the rest appears on your full bio. -
Please add a square-ish headshot photo in your directory as photo.jpg. Don’t worry too much about the file size or dimensions—the build script automatically creates files that are the right size for the large bootstrap layout. (But don’t add something huge.)
-
Other things to add (see mine for examples):
-
You can add a CV as
CV.pdfin your profile directory and it will be automatically linked -
LinkedIn (
linkedinin YAML front matter) -
Google Scholar (
scholarin YAML front matter) -
GitHub (
githubin YAML front matter)
-
-
make checkruns several sets of build-time checks:-
Broken links by
metalsmith-linkcheck. Broken external links will not fail the build but will generate a warning Broken internal links will. -
Formatting checks by
metalsmith-formatcheck. Format failures will fail the build, but I doubt you’ll be changing the format much. -
Spelling checks by
metalsmith-spellcheck. Spelling failures will halt the build. -
I maintain all three of these Metalsmith plugins, so if you find bugs let me know.
-
-
If the build doesn’t complete, fix the problems and rerun make. Don’t push until the build completes.
-
Please check the
links_failed.jsonfile if it complains. Sometimes external broken links are a transient problem, but at least check to make sure that you understand what is failing. -
To add spelling exceptions see the documentation for
metalsmith-spellcheck. There are a bunch of ways to do this depending on the word that is being marked as misspelled. -
Commit your changes to
master. -
Push to
master. This triggers remote testing on Travis CI. It runsnpm test, which in our case runsmake check. If that does not fail, the sources onwww.bluegroup.systemswill be updated. This sometimes takes a few minutes. -
If the build fails you should receive an email. The main site will not update. Please fix the problem and push again.