Giter Club home page Giter Club logo

o2r-project.github.io's Introduction

o2r

DOI

This is the project website of the DFG-funded research project "Opening Reproducible Research" by Institute for Geoinformatics (ifgi) and University and Regional Library (ULB), University of Münster, Germany

The design is based on Hyde by Mark Otto.

Building the site

You must have ruby (preferably 3.0.1 or latest) installed in your computer. From your terminal, install the following gem packages (required by Poole):

gem install jekyll jekyll-gist jekyll-sitemap jekyll-seo-tag

Navigate to the root directory of the website (the one containing the Gemfile of the project) and run the following command:

bundle install

Run the site locally with

bundle exec jekyll serve

The website should be running at localhost:4000.Use the --draft switch to preview the draft posts.

Publishing site repository and PDF on Zenodo

Deposit new posts on Zenodo

After each new blog post is published, a Zenodo deposit (first deposit https://zenodo.org/record/1485438) with a PDF of all blog posts and relevant pages is updated automatically using a GitHub action, see Makefile and .github/workflows/deposit.yml for details. For the automatic deployment, a Zenodo token with write access to the deposit above must be stored as a Repository secret. NOTE: Make sure to disable the workflow on forks.

The PDF file o2r_project_website_and_blog.pdf is generated from a special page at http://127.0.0.1:4000/all_content/ (file all_content.md) using wkhtmltopdf. An archive of the current repository HEAD is zipped into o2r_project_website_and_blog_git-repository.zip.

Both these files are then published to Zenodo with the Zenodo API by the file zenodo_release.py. The environment variable ZENODO_TOKEN must have a valid API key for Zenodo (or for Zenodo Sandbox for testing).

The process is controlled with the make target update_zenodo_deposit or directly with

ZENODO_TOKEN=... python3 zenodo_release.py
# increase logging output for testing with LOGLEVEL=DEBUG

Useful stuff

Authoring posts & publishing drafts

You can use jekyll-compose to streamline some tasks, e.g.

bundle exec jekyll draft "My new draft"
bundle exec jekyll publish _drafts/my-new-draft.md

Images

We use the kramdown parser engine and subsequently can use some advanced syntax (e.g. for named lists, image resizing, quotes, and more).

To float images, use the CSS classes .img.leftfloat or .img.rightfloat, for example ![geocontainers logo](http://geocontainers.org/img/geocontainers-logo.png "geocontainers logo"){:width="100" .img.rightfloat}

Note: When the rendering engine is changed, these changes are prone to break.

Excerpts

The file index.html contains some logic trying to do a clever handling of the post excerpts, i.e. the texts that are shown in the listing of posts. The procedure is as follows:

  • If the disable_excerpt attribute is set to true, show the full content and do not show the "Read more" link. This is useful for short posts.
  • If the number of paragraphs in the post's excerpt is the same as the number of paragraphs of the post content, then see above. This is so that no "Read more" link is put on pages with no further text.
  • In any other case, show the excerpt and add a "Read more" link. You can set the length of the excerpt manually by using Jekyll's default tag <!--more-->.

Ribbon

A generic "Fork me" ribbon has been added and can be configured (text, link) in the file _config.yml. The color is configured in public/css/o2r.css. The ribbon appears on all pages via _layouts/default.html, and stylesheets are included in _includes/head_default.html if enabled.

Exclude pages from menu

If you do not want a page to appear in the left hand side menu, include the parameter exclude_from_nav: true in the page's frontmatter.

Footnotes

Testing footnotes[^2] for *Opening Reproducible Research*[^1].

[^1]: would be useful!
[^2]: yes, no promises on results...

License

Except where otherwise noted site content created by the o2r project in this repository is licensed under Creative Commons Attribution 4.0 International License.

o2r-project.github.io's People

Contributors

ax42 avatar benmarwick avatar edzer avatar eftyk avatar fmazin avatar jansule avatar lukaslohoff avatar matthiashinz avatar nokome avatar nuest avatar sbastiangarzon avatar tnier01 avatar youqam avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

o2r-project.github.io's Issues

Update Docker vs. R blog post

Original post: http://o2r.info/2016/12/15/investigating-docker-and-R/

This issue will be updated with changes so we can have multiple PRs realizing this.

Sources of these: https://www.rdocumentation.org/search?q=docker&packagePage=1&functionPage=4

Broken links to pdfs

Steps to reproduce:

  1. Go to Pilots page
  2. Click "Open Call for Participation in Virtual Special Issue for Reproducible Research"

Expected result: Redirection to 404 page.

Comments: The documents are there. Something is not performed correctly in the linking.

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.