Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rubyworks/shelob
Static site generator extension for Smeagol
https://github.com/rubyworks/shelob
Last synced: about 2 months ago
JSON representation
Static site generator extension for Smeagol
- Host: GitHub
- URL: https://github.com/rubyworks/shelob
- Owner: rubyworks
- License: other
- Created: 2012-07-11T23:07:08.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-26T01:47:40.000Z (about 11 years ago)
- Last Synced: 2024-11-04T09:37:10.851Z (3 months ago)
- Language: Ruby
- Size: 129 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-starred - rubyworks/shelob - Static site generator extension for Smeagol (others)
README
Shelob - Static Web Spinner for Gollum Wiki
===========================================[Website](http://rubyworks.github.com/shelob) /
[Documentation](http://rubydoc.info/rubyworks/shelob) /
[Source Code](http://github.com/rubyworks/shelob) /
[Report Issue](http://github.com/rubyworks/shelob/issues)## DESCRIPTION
Shelob is a static website generator for creating customizable renditions
of [Gollum](http://github.com/github/gollum) wiki. This can be useful when
you want to maintain a standalone website, but you want to update it through
the Gollum wiki interface, e.g. via GitHub.Shelob depends on Smeagol, a read-only web server for Gollum.
## INSTALLATION
You can install Shelob with RubyGems:
$ [sudo] gem install shelob
And then, if you want code highlighting, follow the
[Installation Guide](http://pygments.org/docs/installation) for Pygments.Ta da! You're ready to go.
## CUSTOMIZING
The first thing you need to do is clone your Gollum wiki repo.
$ git clone [email protected]:user/user.github.com.git
Of course, you want to customize your site to suit your style. To do this you
need to add some some support files. Use the `init` command to have Shelob
put the default files in place.$ cd path/to/wiki
$ shelob-initNote, this is practically identical to using `smeagol-init`, so if had already
done that there is no need to do this.In your wiki this will add a few files. One of these is `_settings.yml` which you
use to configure Shelob for your site. See SETTINGS below.There will also be a file called `_layouts/default.html`. Using Mustache
templating use this file to create a custom page layout for your site.
To learn more about the variables available for use in this template see
the [Shelob Wiki](http://github.com/rubyworks/shelob/wiki).Be sure to add these files to commit these files to your repo. You can just
check these files in and push to the server. It will not effect you Gollum
wiki in any way.## SETTINGS
The `_settings.yml` file allows you to configure certain behaviors of Shelob.
An example `_settings.yml` file:---
title: 7R4N5.C0D3
url: http://trans.github.com
author: trans
description:
Trans Programming Blogsource_url: http://github.com/trans
menu:
- title: Homepage
href: "/"
- title: RSS Feed
href: "/rss.xml"
- title: Projects
href: "http://github.com/trans"See the documentation for more details about each field and others that
are available.## PREVIEWING
To preview your site via shelob, simply change directories to your Gollum repository
and run `shelob-preview` from the command line:$ cd /path/to/repo
$ shelob-previewThis will run a web server at `http://localhost:4567`. You can change the port
by setting the `--port` or `-p` option on the command line.## DEPLOYING
If your site can be deployed by pushing to a git repository, Shelob can be
used to do so.$ shelob-deploy
## CONTRIBUTE
Have a great idea for Shelob? Awesome. Fork the repository and add a feature
or fix a bug. There are a couple things I ask:* Create an appropriately named topic branch that contains your change.
* Please try to provide tests for all code you check in.Note that Shelob uses QED, Citron and AE for testing. And admittedly the project
is water-falling too much at present. So if you would like to contribute, but
don't have any specific request, writing a few tests would be a great help.## COPYRIGHTS
Shelob is distributed under the terms of the **BSD-2-Clause** license.
* Copyright 2012 Trans, Rubyworks
* Copyright 2009 Ben JohnsonPlease see LICENSE.txt file for details.