Git Product home page Git Product logo

Comments (11)

kinow avatar kinow commented on August 28, 2024

I recently fixed the pages for biouno.org. I believe I can find some time this week to go through the commits to that repo, build the site locally with jekyll and send a pull request to fix it.

from reproducibility-guide.

iamciera avatar iamciera commented on August 28, 2024

Cool! Yeah, please do if you find some time. Thanks @kinow.

from reproducibility-guide.

kinow avatar kinow commented on August 28, 2024

Tried building it locally, here's the error I got:

kinow@ranma:~/Development/java/workspace/reproducibility-guide$ jekyll serve
Configuration file: /home/kinow/Development/java/workspace/reproducibility-guide/_config.yml
       Deprecation: The 'pygments' configuration option has been renamed to 'highlighter'. Please update your config file accordingly. The allowed values are 'rouge', 'pygments' or null.
            Source: /home/kinow/Development/java/workspace/reproducibility-guide
       Destination: /home/kinow/Development/java/workspace/reproducibility-guide/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
  Dependency Error: Yikes! It looks like you don't have redcarpet or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- redcarpet' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! 
  Conversion error: Jekyll::Converters::Markdown encountered an error while converting '_posts/2014-03-02-Useful-Workflows.md':
                    redcarpet
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    redcarpet

Comparing commits in the biouno repository and picking the ones I think will fix it. Pull request coming in a few minutes.

from reproducibility-guide.

kinow avatar kinow commented on August 28, 2024

Fixed the error by sudo gem install redcarpet

from reproducibility-guide.

kinow avatar kinow commented on August 28, 2024

Site built successfully, and running. Now creating pull request with changes, which will include replacing redcarpet by kramdown.

from reproducibility-guide.

kinow avatar kinow commented on August 28, 2024

Here's the reason for using kramdown, from the post https://github.com/blog/2100-github-pages-now-faster-and-simpler-with-jekyll-3-0:

Starting May 1st, 2016, GitHub Pages will only support kramdown, Jekyll's default Markdown engine. If you are currently using Rdiscount or Redcarpet we've enabled kramdown's GitHub-flavored Markdown support by default, meaning kramdown should have all the features of the two deprecated Markdown engines, so the transition should be as simple as updating the Markdown setting to kramdown in your site's configuration (or removing it entirely) over the course of the next three months.

However there are pages that will need to be updated. For example, the check list, where
are used to break line. That does not work with kramdown. See gettalong/kramdown#137 for more, specifically the last comment there from gettalong.

Line breaks in Markdown/kramdown are not treated as hard line breaks but as line continuations. If you need to separate two paragraphs, use a blank line.

If you want to insert a
tag, use two spaces at the end of a line. See http://kramdown.gettalong.org/syntax.html for more information.

from reproducibility-guide.

kinow avatar kinow commented on August 28, 2024

Looks like that page is the only one with
tags. So fixing it with:

grep -r -i --include \*.md -E "(.*)(</br>)\s*$" * | awk -F: '{ print $1 }' | uniq | xargs -I {} sed -i -e 's/\(.*\)\(<\/br>\)\s*$/\1  /' {}

from reproducibility-guide.

kinow avatar kinow commented on August 28, 2024

@jhollist reported an issue against biouno website, and looks like we'd have the same problem here. So re-using the same solution to fix missing space between the last # in the Markdown header and the first char.

grep -r -i --include \*.md --include \*.html -E "^#+[a-zA-Z0-9].*" * | awk -F: '{ print $1 }' | uniq | xargs -I {} sed -i -e 's/^\(#\)\([a-zA-Z0-9]\)/\1 \2/' -e 's/^\(##\)\([a-zA-Z0-9]\)/\1 \2/' -e 's/^\(###\)\([a-zA-Z0-9]\)/\1 \2/' -e 's/^\(####\)\([a-zA-Z0-9]\)/\1 \2/' {}

from reproducibility-guide.

kinow avatar kinow commented on August 28, 2024

Done @iamciera. See pull request #91. @jhollist wonder if you could review it, maybe?

Thanks!

from reproducibility-guide.

jhollist avatar jhollist commented on August 28, 2024

@kinow and @iamciera happy to review it. Will look at it today.

And thanks for sharing the one liner to do the replacements! That would have taken me years to figure out!

from reproducibility-guide.

jhollist avatar jhollist commented on August 28, 2024

@iamciera this should be fixed now. I just accepted PR #91.

If you can confirm that there are no more build errors, then we can close this issue.

from reproducibility-guide.

Related Issues (20)

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.