Giter VIP home page Giter VIP logo

caramelize's Issues

Config option for Home-page

Wikis may have home pages that have a distinct name. It should be possible to define this name of the Home-page in the caramel.rb.
On conversion this Home-page gets renamed to "Home" to be used as gollum's default start page.

Grit has encoding problems

Some migrations fail with a grit error pointing to incompatible character encodings. This issues has been reported with grit before and could be addressed by switching to a different git adapter.

.rvm/gems/ruby-2.1.5@caramelize/gems/gitlab-grit-2.7.3/lib/grit/index.rb:176:in `%': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/gitlab-grit-2.7.3/lib/grit/index.rb:176:in `block in write_tree'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/gitlab-grit-2.7.3/lib/grit/index.rb:171:in `each'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/gitlab-grit-2.7.3/lib/grit/index.rb:171:in `write_tree'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/gitlab-grit-2.7.3/lib/grit/index.rb:123:in `commit'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/gollum-grit_adapter-0.1.3/lib/grit_adapter/git_layer_grit.rb:241:in `commit'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/caramelize-0.3.0/lib/caramelize/ext.rb:10:in `commit'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/gollum-lib-4.0.2/lib/gollum-lib/wiki.rb:453:in `update_page'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/caramelize-0.3.0/lib/caramelize/gollum_output.rb:26:in `commit_revision'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/caramelize-0.3.0/lib/caramelize/gollum_output.rb:38:in `block in commit_history'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/caramelize-0.3.0/lib/caramelize/gollum_output.rb:35:in `each'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/caramelize-0.3.0/lib/caramelize/gollum_output.rb:35:in `each_with_index'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/caramelize-0.3.0/lib/caramelize/gollum_output.rb:35:in `commit_history'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/caramelize-0.3.0/lib/caramelize/content_transferer.rb:93:in `commit_history'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/caramelize-0.3.0/lib/caramelize/content_transferer.rb:39:in `execute'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/caramelize-0.3.0/lib/caramelize/cli.rb:69:in `commence_transfer'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/caramelize-0.3.0/lib/caramelize/cli.rb:56:in `transfer_content'
  from /Users/danielsenff/.rvm/gems/ruby-2.1.5@caramelize/gems/caramelize-0.3.0/lib/caramelize/cli/run_command.rb:28:in `execute'

Write DSL for configuration files

Instead of importing the config and running eval, it would be much better to create a simple Domain Specific Language to write config files.

Error extracting pandoc's information

When I run most caramelize functions, including help, I get this error:

$ caramelize new --trace
Error extracting pandoc's information: undefined method `[]' for nil:NilClass

        @scripting_engine = version_string.match(/Scripting engine: (.+)$/)[1]
                                                                           ^^^
Using made up values instead.
/var/lib/gems/3.1.0/gems/commander-5.0.0/lib/commander/user_interaction.rb:362:in `method_missing': undefined local variable or method `target_file' for main:Object (NameError)
        from /var/lib/gems/3.1.0/gems/caramelize-1.3.0/bin/caramelize:25:in `block (2 levels) in <top (required)>'
        from /var/lib/gems/3.1.0/gems/commander-5.0.0/lib/commander/command.rb:187:in `call'
        from /var/lib/gems/3.1.0/gems/commander-5.0.0/lib/commander/command.rb:157:in `run'
        from /var/lib/gems/3.1.0/gems/commander-5.0.0/lib/commander/runner.rb:444:in `run_active_command'
        from /var/lib/gems/3.1.0/gems/commander-5.0.0/lib/commander/runner.rb:58:in `run!'
        from /var/lib/gems/3.1.0/gems/commander-5.0.0/lib/commander/delegates.rb:18:in `run!'
        from /var/lib/gems/3.1.0/gems/commander-5.0.0/lib/commander/import.rb:7:in `block in <top (required)>'

I have pandoc 2.17.1.1:

pandoc 2.17.1.1
Compiled with pandoc-types 1.22.2.1, texmath 0.12.4, skylighting 0.12.3.1,
citeproc 0.6.0.1, ipynb 0.2
User data directory: /home/cswingley/.local/share/pandoc
Copyright (C) 2006-2022 John MacFarlane. Web:  https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.

This is Debian bookworm, Linux x86_64.

Metrics for measuring migration quality

As a user
When I migrate a wiki
Then I'd like to know how successful it was

  • needs definition of KPIs
  • possible KPI: number of pages not linked in pages, number of links without corresponding page, each before and after conversion

Image support

As a wikka or redmine user
Given I have wiki pages with images
And I want to migrate the pages to Gollum
Then I want the images to be migrated correctly (syntax and files)

  • correctly migrate wikka image syntax
  • fetch images from remote sources and place them into gollum export

Possible to resume migration from certain point?

I tried to migrate a WikkaWiki database (the .sql file has a size of ~ 965 MB).

caramelize ran for 26 hours (in this time, it used all of my available RAM ~ 13 GB, and my complete swap ~ 14 GB), and it managed to migrate "(49637/63226)" before the process got killed.

Is there a way to resume the migration from this point?

I fear that the process will again get killed before completion if Iโ€™d have to start from the beginning.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.