Skip to content

Commit

Permalink
Merge pull request #3 from apetro/naive-gh-pages-site
Browse files Browse the repository at this point in the history
Add proof-of-concept documentation website using GitHub Pages.
  • Loading branch information
apetro authored Jan 27, 2017
2 parents a5251ff + 58fc19c commit a7b4e84
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
docs/_site
Gemfile.lock
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# ImageQuiz

See [the documentation website](http://jasig.github.io/ImageQuiz).
7 changes: 7 additions & 0 deletions docs/GEMFILE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source 'https://rubygems.org'

gem 'github-pages', group: :jekyll_plugins
gem 'jekyll-default-layout'
gem 'jekyll-optional-front-matter'
gem 'jekyll-readme-index'
gem 'jekyll-titles-from-headings'
24 changes: 24 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Image Quiz

Image quiz is an application for delivering quizzes where the answers to the questions are images.

## Use cases

+ Architecture
+ Art
+ Plant identification
+ Anything else where images are useful

## Videos

<iframe width="560" height="315" src="https://www.youtube.com/embed/lfoeldV-_94?rel=0" frameborder="0" allowfullscreen></iframe>

[More videos](videos.md)

## License

Image Quiz is distributed under Apache-2.0.

## About this website

See [about this website](about-this-website.md).
8 changes: 8 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
gems:
- github-pages
- jekyll-default-layout
- jekyll-optional-front-matter
- jekyll-readme-index
- jekyll-titles-from-headings

theme: jekyll-theme-dinky
33 changes: 33 additions & 0 deletions docs/about-this-website.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# About this website

This ImageQuiz documentation website is generated from the files in the `docs` directory of the repository, using the open source static site generator tool `Jekyll` as provided by GitHub Pages.

## The latest `master` branch `docs` folder is controlling

GitHub Pages will (try to) build and deploy the very latest version of the website source from the `docs` folder in the `master` branch of the repository. To update the contents of that folder in the tip of `master` is to update the website.

## Editing

The documentation source files are text files in that `docs` directory, in a simple markup language called Markdown. Mostly, you can just edit them, and Jekyll and GitHub Pages will do the right thing.

If you propose your changes as a Pull Request, GitHub Pages will go ahead and try to build the changed website and note on that Pull Request about its success or failure, so you can get a heads up of issues even before someone merges them to `master`.

## Building the documentation locally

You can build the documentation locally, e.g. to support working on it, using the `Jekyll` tool, which has its own documentation.

```shell
bundle exec jekyll serve
```

Building locally would let you preview what your changes will look like before relying upon GitHub Pages to build them.

The Jekyll tool happens to be implemented in Ruby; the included `GEMFILE` declares the Ruby dependencies ("gems") you'd need locally and the included `_config.yml` configures `Jekyll` with the same constraints that GitHub Pages provides in its usage of Jekyll, so that you're less likely to accidentally try to do something in your local Jekyll work that GitHub Pages would disallow, and so that the same shortcuts and assumptions GitHub pages make will be reflected locally.

## Getting fancy

When it comes right down to it you can embed plain old HTML in Markdown files, so you can do anything.

But don't do that. Use the features of Markdown and implement a custom Jekyll theme if you want to get fancy.

Short of using a custom theme, you could use a theme included with GitHub Pages. Currently this uses the theme `jekyll-theme-dinky`; there are several others to choose from.
11 changes: 11 additions & 0 deletions docs/videos.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Videos about ImageQuiz

## 1 hour introduction to the IQ (C++) version of ImageQuiz

<iframe width="560" height="315" src="https://www.youtube.com/embed/qMq0n8q8B8Q?rel=0" frameborder="0" allowfullscreen></iframe>

See also [lecture notes summarizing this video](https://drive.google.com/file/d/0B2rS3XbKQ2pmclk5cXUwVmpRcWc/view).

## More videos

+ [Videos on how to use the VL software, the software for organism identification](https://www.youtube.com/channel/UCE7Sxwwrb7OBgU4uhii8xSw).

0 comments on commit a7b4e84

Please sign in to comment.