-
- Downloads
Replace current Wiki system with Gollum Wikis.
This commit replaces the old database backed Wiki system with the excellent Gollum git based Wiki system. The UI has been updated to allow for utilizing the extra features that Gollum provides. Specifically: * Edit page now allows you to choose the content format. * Edit page allows you to provide a commit message for the change. * History page now shows Format, Commit Message, and Commit Hash. * A new Git Access page has been added with the Wiki Repo URL. * The default page has been changed to Home from Index to match the Gollum standard. The old Wiki model has been left in tact to provide for the development of a migration script that will move all content stored in the old Wiki system into new Gollum Wikis.
parent
8e8372d5
No related branches found
No related tags found
Showing
- Gemfile 7 additions, 0 deletionsGemfile
- Gemfile.lock 28 additions, 1 deletionGemfile.lock
- app/assets/stylesheets/application.scss 1 addition, 0 deletionsapp/assets/stylesheets/application.scss
- app/assets/stylesheets/sections/wiki.scss 6 additions, 0 deletionsapp/assets/stylesheets/sections/wiki.scss
- app/controllers/wikis_controller.rb 65 additions, 29 deletionsapp/controllers/wikis_controller.rb
- app/models/gollum_wiki.rb 125 additions, 0 deletionsapp/models/gollum_wiki.rb
- app/models/wiki_page.rb 181 additions, 0 deletionsapp/models/wiki_page.rb
- app/observers/project_observer.rb 5 additions, 0 deletionsapp/observers/project_observer.rb
- app/views/layouts/project_resource.html.haml 1 addition, 1 deletionapp/views/layouts/project_resource.html.haml
- app/views/wikis/_form.html.haml 9 additions, 3 deletionsapp/views/wikis/_form.html.haml
- app/views/wikis/_main_links.html.haml 16 additions, 0 deletionsapp/views/wikis/_main_links.html.haml
- app/views/wikis/edit.html.haml 5 additions, 3 deletionsapp/views/wikis/edit.html.haml
- app/views/wikis/git_access.html.haml 36 additions, 0 deletionsapp/views/wikis/git_access.html.haml
- app/views/wikis/history.html.haml 17 additions, 11 deletionsapp/views/wikis/history.html.haml
- app/views/wikis/pages.html.haml 9 additions, 5 deletionsapp/views/wikis/pages.html.haml
- app/views/wikis/show.html.haml 6 additions, 13 deletionsapp/views/wikis/show.html.haml
- config/routes.rb 2 additions, 0 deletionsconfig/routes.rb
- lib/api/internal.rb 9 additions, 1 deletionlib/api/internal.rb
- spec/features/gitlab_flavored_markdown_spec.rb 0 additions, 20 deletionsspec/features/gitlab_flavored_markdown_spec.rb
- spec/models/gollum_wiki_spec.rb 196 additions, 0 deletionsspec/models/gollum_wiki_spec.rb
Loading
| Loading
| @@ -99,6 +99,13 @@ gem "colored" |
# GitLab settings | ||
gem 'settingslogic' | ||
# Wiki | ||
# - Use latest master to resolve Gem dependency with Pygemnts | ||
# github-linquist needs pygments 0.4.2 but Gollum 2.4.11 | ||
# requires pygments 0.3.2. The latest master Gollum has been updated | ||
# to use pygments 0.4.2. Change this after next Gollum release. | ||
gem "gollum", "~> 2.4.0", git: "git://github.com/github/gollum.git" | ||
# Misc | ||
gem "foreman" | ||
gem "git" | ||
Loading
| Loading
|
app/assets/stylesheets/sections/wiki.scss
0 → 100644
app/models/gollum_wiki.rb
0 → 100644
app/models/wiki_page.rb
0 → 100644
app/views/wikis/_main_links.html.haml
0 → 100644
app/views/wikis/git_access.html.haml
0 → 100644
spec/models/gollum_wiki_spec.rb
0 → 100644
Please register or sign in to comment