Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to redirect in Gollum wiki (GitHub wiki) pages?

At RailsConf 2012, our local Ruby group created a crowd-sourced wiki. We're very happy with how well it was received (218 watchers as of today).

Some members are attending Goruco 2012, and we'd like to do something similar for that conference. The current plan is to have one big git-based wiki of Ruby conferences. We have content for the last couple of years (RubyConf 2011, RailsConf 2011, 2012, and now Goruco 2012), so we'd like to combine it into one place. The RailsConf 2012 wiki has gotten the most watchers by far, and we'd like to retain those. The simplest way would seem to be renaming the repository like so:

  • Old: https://github.com/newhavenrb/railsconf2012/wiki
  • New: https://github.com/newhavenrb/conferences/wiki

The "Home" page would then have a listing of conferences by year.

But because it's become a community resource, we don't want to break any links from blogs, Twitter, etc. What's the easiest way of doing this? Does Gollum support any kind of redirect? (Or do we need to come up with a creative solution?)

like image 731
Benjamin Oakes Avatar asked Jun 21 '12 13:06

Benjamin Oakes


People also ask

Does GitHub use Gollum?

Gollum is the Git-based wiki software used as the backend of the GitHub Wiki. Deploying Gollum will allow you to host a GitHub-like Wiki system on your server. In this tutorial we will install Gollum on a Debian 10 Vultr instance.

Can you use HTML in GitHub wiki?

Wherever HTML is rendered on GitHub (gists, README files in repos, comments on issues and pull requests, ...) you can use any of the HTML elements that GitHub Flavored Markdown (GFM) provides syntactic sugar for.

Can you fork a GitHub wiki?

You can't fork it directly on GitHub, but you can get Git access to it by going into the Git access tab of the wiki and you should be able to fork it on your local machine and edit it as much as you want (and even get updates to it!)


1 Answers

Since no one has come out of the woodwork, here's what I'm planning to do:

  • Clone the existing wiki
  • Run script
for f in *.md; do
  cat <<EOF > $f
We've Moved!
------------

The RailsConf 2012 wiki is now [a general Ruby conference wiki](https://github.com/newhavenrb/conferences/wiki).

Please find this page in its new home:  https://github.com/newhavenrb/conferences/wiki/$(basename $f .md)
EOF
done

That would make Markdown like this:

We've Moved!

The RailsConf 2012 wiki is now a general Ruby conference wiki.

Please find this page in its new home: https://github.com/newhavenrb/conferences/wiki/Rich-Hickey-Keynote

  • Commit the changes (except Home.md, README.md, _Footer.md, _Sidebar.md; they would be wrong)
  • Rename the existing wiki to conferences
  • Make new repo named railsconf2012
  • Push "We've Moved!" content to the new railsconf2012 repo
like image 50
Benjamin Oakes Avatar answered Oct 06 '22 01:10

Benjamin Oakes