Project webpage for http://www.scenarioo.org
based on Single Page template https://github.com/t413/SinglePaged
Simply change the html and markdown files in the repository 'scenarioo.github.io'.
Simple push your changes to the master branch - rest is done by github pages for you and the page will be available for browsing here: http://scenarioo.org
Attention: If you work for documentation of a future release, then do not work on the main branch but change the web page on an appropriate release branch!
You can use local tooling for browsing the page as well, but beware that these instructions here might not be up to date with latest and greatest setup of github pages ...
You need to install Jekyll and all prerequisites on your development environment machine, as explained here under https://help.github.com/articles/using-jekyll-with-pages/.
This was what I did once long time ago on the scenarioo dev VM to get it installed (beware that this instructions might be long time outdated and not in synch with what github pages use today):
- Install Ruby 2.x:
See also http://rvm.io/ for how to install ruby version manager (RVM) to get newest ruby version, I did the following steps on the VM:
sudo apt-get updategpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3sudo apt-get install curl\curl -sSL https://get.rvm.io | bash -s stablesource /home/scenarioo/.rvm/scripts/rvmrvm get stablervm install ruby2.2.1
- Install Jekyll:
gem install bundler- call the following command inside the 'scenarioo.github.io' directory (where Gemfile is checked in):
bundle install
you can browse the webpage locally, by calling the following commands inside directory 'scenarioo.github.io':
jekyll serve- browse to localhost:4000
To be sure that the compilation is similar and uptodate with github pages, you should maybe use the following instead:
- ??? outdated here - sorry!
Follow the usual release process, and merge the changes you made to the master branch
If you checkin on master branch your change is directly released.
-
The Sources for the Docu are located here: https://github.com/scenarioo/scenarioo/tree/develop/docs
-
Further instructions can be found in here: http://scenarioo.org/docs/develop/contribute/Scenarioo-User-Documentation-and-Webpage-with-Jekyll.html
Following docu is from Single Page Template repo ...
- Each vertical section is a markdown file in _posts/ directory.
- They're sorted by 'date'. (we don't use date anywhere, it only sorts)
- Each vertical section sets it's own color, header icon (or image), title, and easy-to-write markdown body.
- Only two things to edit:
- Edit
_config.ymlto set the site title, description, etc - Add _posts/*.md to make each vertical section. Copy some examples and add the sections from your README.md for a fast start!
- Edit
- Easy adding of SEO terms, favicon & such, and google analytics token.
- Edit
_config.ymlto change your title, keywords, and description. - Create a new file in
_posts/called2014-01-01-intro.mdEdit it, and add:
---
title: "home"
bg: white #defined in _config.yml, can use html color like '#010101'
color: black #text color
style: center
---
# Example headline!
and so on..
- Create a second post called
2014-01-02-art.mdwith an divider image this time:
---
title: "Art"
bg: turquoise #defined in _config.yml, can use html color like '#0fbfcf'
color: white #text color
fa-icon: paint-brush
---
#### A new section- oh the humanity!
Note: That part fa-icon: paint-brush will use a font-awesome icon of paint-brush. You can use any icon from this font-awesome icon directory.
- install Jekyll with
sudo gem install github-pages - run
jekyll serve -w- visit localhost:4000 to see a live locally served preview.
- Push changes and see them live!
- In each post file you can define
bg: mycolorandcolor: myothercolorto change the background and text colors for that section. - mycolor can be a quoted html color like
'#0fbfcf'or a key to a special color defined in _config.yml under 'colors'.- Note: Changes to _config.yml require a manual restart to your local server with
^Candjekyll serve -w.
- Note: Changes to _config.yml require a manual restart to your local server with
Nifty, right!
So you've got a copy running and there's some new update? Let's update!
- Checkout your github-pages branch
git checkout gh-pagesfor a standalone or existing pagegit checkout masterfor a username.github.io page
- run
git remote | grep -q "singlepage" || git remote add -t publish singlepage https://github.com/t413/SinglePaged.gitto be sure you have access to this repository (you can run this command at any time). git fetch singlepageto fetch-in-place new changes.- Update to the new base (using merge)
git merge singlepage/publish
- You can alternatively update using rebase. This rewrites history (bad), but it is cleaner.
git rebase singlepage/publish