gollum-wiki

Can a GitHub wiki embed HTML

不羁岁月 提交于 2020-12-30 06:01:05
问题 I would like to create a wiki page that is a preamble (standard markdown) followed by an HTML/JS code listing followed by (in a frame I suppose) the page that this code would generate. Is this possible? PS The code is: http://pipad.org/MathBox/slides_simple.html 回答1: Github Wikis allow you to embed HTML, but not all HTML tags are supported . To embed supported HTML: Edit a wiki page. Ensure the edit mode is on "Markdown". Type the html directly into the main content area (there's no "code"

How to properly mount github's gollum wiki inside a Rails App?

亡梦爱人 提交于 2020-01-09 19:31:50
问题 I'm trying to provide a gollum based wiki for my app by mounting it as a rack application inside my routes.rb file: require 'gollum/frontend/app' #Gollun config gollum_path = Rails.root Precious::App.set(:gollum_path, gollum_path) Precious::App.set(:wiki_options, {:universal_toc => false}) TestWiki::Application.routes.draw do mount Precious::App, :at => "wiki" end The wiki is supposed to run at '/wiki' but everytime a go to this url it redirects me to /wiki/create/Home , and after a create a

Deploy Gollum wiki with Engine Yard

半城伤御伤魂 提交于 2019-12-13 04:26:00
问题 Gollum is "A simple, Git-powered wiki with a sweet API and local frontend." It's hosted on GitHub: http://github.com/github/gollum Deploying my site to EngineYard is generating this error. Fetching gem metadata from https://rubygems.org/ Installing charlock_holmes (0.6.9.4) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. It seems to be an issue with installing an dependency called 'ICU'. I've installed ICU using the 'install unix package' button on the

How can I add Disqus commenting to my Gollum wiki?

自古美人都是妖i 提交于 2019-12-12 13:26:03
问题 I would like to use my Gollum Wiki (using aws & github) for a book project. I want to give each chapter its own page and let a circle of friends (and anyone) leave comments. I was expecting there to be a dozen how to pages for this already out there. But I can't find anything. I realize this usually means what I'm trying to do is a bad idea or can more easily be accomplished some other way. 回答1: The way I added Disqus comments was to simply add a mustache partial template ( {{>comments}} )

Embedding images inside a GitHub wiki (gollum) repository?

浪尽此生 提交于 2019-12-09 04:02:25
问题 The Github wikis are backed by a separate git repository then the main project repository. This post by the Github team makes it sound like you should be able to link to images stored in the wiki repository inside the wiki markup. Images and Folders You can now reference images hosted inside the Git repository. I've checked out my wiki's repository and pushed a resource folder and an image into it. My question is, how do I go about using this image ? Is this even possible or have I

How can you use subdirectories in a GitHub wiki checkout? [closed]

流过昼夜 提交于 2019-12-06 19:50:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'd like to organize my GitHub wiki pages in subdirectories. How do we refer to the pages in subdirectories? 回答1: github wiki / gollum-wiki doesn't inherently provide anything explicit for organizing pages into sub-directories. Any page can be linked from any other page irrespective of where it logically belongs

How do I generate a static copy of my github project wiki?

一笑奈何 提交于 2019-12-06 11:21:14
问题 I'd like to generate a local static copy of the generated HTML of my github project wiki, from the directory of markdown files. What's the best way of doing that? 回答1: nowadays, it works with : require 'gollum-lib' wiki = Gollum::Wiki.new("/mywikirepo") wiki.pages.each{|p| puts p.formatted_data } 回答2: clone your repository locally and grab the wiki submodule (see here) install the gollum and redcarpet gems ruby: require 'gollum' wiki = Gollum::Wiki.new("proj.wiki") wiki.pages.each{|p| puts p

How can you use subdirectories in a GitHub wiki checkout? [closed]

≯℡__Kan透↙ 提交于 2019-12-05 01:34:00
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'd like to organize my GitHub wiki pages in subdirectories. How do we refer to the pages in subdirectories? github wiki / gollum-wiki doesn't inherently provide anything explicit for organizing pages into sub-directories. Any page can be linked from any other page irrespective of where it logically belongs. This is a powerful feature that makes wikis very flexible. One way to implement a sub-directories

How do I generate a static copy of my github project wiki?

非 Y 不嫁゛ 提交于 2019-12-04 16:25:56
I'd like to generate a local static copy of the generated HTML of my github project wiki, from the directory of markdown files. What's the best way of doing that? nowadays, it works with : require 'gollum-lib' wiki = Gollum::Wiki.new("/mywikirepo") wiki.pages.each{|p| puts p.formatted_data } clone your repository locally and grab the wiki submodule (see here ) install the gollum and redcarpet gems ruby: require 'gollum' wiki = Gollum::Wiki.new("proj.wiki") wiki.pages.each{|p| puts p.formatted_data } 来源: https://stackoverflow.com/questions/13675945/how-do-i-generate-a-static-copy-of-my-github