-
- Downloads
There was an error fetching the commit references. Please try again later.
Merge branch 'import-gh-wiki' into 'master'
Import GitHub wiki into GitLab Closes #2834 GitHub doesn’t apply any constraints to theirs wiki slug allowing chars like ,, :, *, etc, we need to remove our constraints or some wiki pages will not be available after they are imported. Some wikis use the Gollum's tags to link its internal/external resources like: images, urls, wiki pages, etc. So, to avoid that wiki links/images displays completely broken after they were imported, we added a new `WikiPipeline`, that for now will parse only simple links, and image tags. ##### Before `WikiPipeline`:  ##### After `WikiPipeline`:  See merge request !2324
No related branches found
No related tags found
Showing
- CHANGELOG 1 addition, 0 deletionsCHANGELOG
- app/assets/javascripts/wikis.js.coffee 13 additions, 12 deletionsapp/assets/javascripts/wikis.js.coffee
- app/helpers/gitlab_markdown_helper.rb 1 addition, 1 deletionapp/helpers/gitlab_markdown_helper.rb
- app/models/project_wiki.rb 4 additions, 0 deletionsapp/models/project_wiki.rb
- app/models/wiki_page.rb 1 addition, 1 deletionapp/models/wiki_page.rb
- app/views/projects/wikis/_new.html.haml 4 additions, 7 deletionsapp/views/projects/wikis/_new.html.haml
- config/routes.rb 1 addition, 1 deletionconfig/routes.rb
- features/project/wiki.feature 0 additions, 5 deletionsfeatures/project/wiki.feature
- features/steps/project/wiki.rb 0 additions, 10 deletionsfeatures/steps/project/wiki.rb
- lib/banzai/filter/gollum_tags_filter.rb 151 additions, 0 deletionslib/banzai/filter/gollum_tags_filter.rb
- lib/banzai/pipeline/wiki_pipeline.rb 11 additions, 0 deletionslib/banzai/pipeline/wiki_pipeline.rb
- lib/gitlab/github_import/importer.rb 23 additions, 4 deletionslib/gitlab/github_import/importer.rb
- lib/gitlab/github_import/project_creator.rb 2 additions, 1 deletionlib/gitlab/github_import/project_creator.rb
- lib/gitlab/github_import/wiki_formatter.rb 19 additions, 0 deletionslib/gitlab/github_import/wiki_formatter.rb
- spec/features/markdown_spec.rb 58 additions, 5 deletionsspec/features/markdown_spec.rb
- spec/fixtures/markdown.md.erb 9 additions, 0 deletionsspec/fixtures/markdown.md.erb
- spec/helpers/gitlab_markdown_helper_spec.rb 3 additions, 2 deletionsspec/helpers/gitlab_markdown_helper_spec.rb
- spec/lib/banzai/filter/gollum_tags_filter_spec.rb 89 additions, 0 deletionsspec/lib/banzai/filter/gollum_tags_filter_spec.rb
- spec/lib/gitlab/github_import/wiki_formatter_spec.rb 22 additions, 0 deletionsspec/lib/gitlab/github_import/wiki_formatter_spec.rb
- spec/models/project_wiki_spec.rb 7 additions, 0 deletionsspec/models/project_wiki_spec.rb
lib/banzai/filter/gollum_tags_filter.rb
0 → 100644
lib/banzai/pipeline/wiki_pipeline.rb
0 → 100644
lib/gitlab/github_import/wiki_formatter.rb
0 → 100644
Please register or sign in to comment