Giter Site home page Giter Site logo

annajiat / librarycarpentry.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from librarycarpentry/librarycarpentry.github.io

0.0 1.0 0.0 75.37 MB

Library Carpentry website

Home Page: https://librarycarpentry.org/

License: MIT License

Ruby 0.01% Makefile 0.05% CSS 2.23% HTML 38.06% XSLT 0.31% JavaScript 35.40% SCSS 23.94%

librarycarpentry.github.io's Introduction

check, build, deploy site

The Library Carpentry Website

This is the repository for the new Library Carpentry website. Please submit additions and fixes as pull requests to our GitHub repository.

Lessons are not stored in this repository: please see the Library Carpentry lessons page for links to the individual lesson repositories.

Library Carpentry is an open project, and we welcome contributions of all kinds. By contributing, you are agreeing that Library Carpentry may redistribute your work under this license, and to abide by The Carpentries' code of conduct.

Setup

The website uses Jekyll, a static website generator written in Ruby. You need to have Version 2.0.0 or higher of Ruby and the package manager Bundler. (The package manager is used to make sure you use exactly the same versions of software as GitHub Pages.) After checking out the repository, please run:

$ bundle install

to install Jekyll and the software it depends on. You may consult Using Jekyll with Pages for further instructions.

Previewing

Please do not use jekyll build or jekyll serve directly to build or view the website. Instead, you should use the following commands:

  • make or make commands: list available commands.
  • make serve: build files locally and run a server at http://0.0.0.0:4000/ for viewing. This is the best way to preview the site.
  • make site: build files locally, but do not serve them dynamically.
  • make clean removes the _site directory and any Emacs editor backup files littering the source directories.

Development

To write a blog post, create a file called _posts/YYYY/MM/YYYY-MM-DD-some-title.md. YYYY is the 4-digit year of the post, MM the 2-digit month, and DD the 2-digit day; some-title can be any hyphenated string of words that do not include special characters such as quotes. Please do not use underscores or periods in the names. When published, your blog post will appear as http://librarycarpentry.org/blog/YYYY/MM/DD/some-title.

The YAML header of a blog post must look like this:

---
layout: blog-post
authors: ["Your Name"]
title: "A Title-Cased Title for the Post"
category: blog
---

Note also that authors is a list---if the post has more than one author, please format the list like this:

...
authors: ["First Author", "Second Author", "Third Author"]
...

rather than running all the authors' names together in one long string.

Deployment with GitHub Actions

The default branch for this repository is main. All pull requests should be made from there. Pushing to the main branch triggers GitHub Actions. The script:

  • checks that the YAML headers in pages and blog posts are valid;
  • gets the latest version of the data feeds for the list of past and upcoming workshops;
  • builds the website;
  • pushes to the gh-pages branch.

GitHub pages takes care of generating the website from the content of the gh-pages branch. Note that because of current limitations with GitHub, we need to keep the name of the repository librarycarpentry.github.io to ensure that all our lessons are available from https://librarycarpentry.org/<name-of-lesson-repository>.

librarycarpentry.github.io's People

Contributors

phlow avatar weaverbel avatar jduckles avatar fmichonneau avatar tracykteal avatar maneesha avatar serahkiburu avatar erinbecker avatar katrinleinweber avatar rgaiacs avatar nerk avatar carpentries-bot avatar twisterrob avatar jt14den avatar techieeliot avatar libcce avatar ceesu avatar konrad avatar arieldeardorff avatar tobyhodges avatar plutonik-a avatar davidfkane avatar elizabethwilliams8 avatar kcranston avatar kariljordan avatar tillsa avatar jezcope avatar smcclatchy avatar thegands avatar ragamouf avatar

Watchers

James Cloos avatar

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.