Coder Social home page Coder Social logo

centos.org's Introduction

a test conversion of this site to jekyll

test it in a container

Clone this repo, and then, from inside your working copy:

sudo podman run -d --name centos-jekyll -p 4000:4000 -v $(pwd):/srv/jekyll:Z jekyll/jekyll jekyll serve --watch

todo

  • Check out the logical order of the different architectures in the /download section.

The site is built with nanoc and Bootstrap 3.

We use haml for templates where it makes sense and mostly markdown for content.

Required Gems:

  • nanoc
  • cri
  • compass
  • haml
  • nokogiri // available from Fedora (EPEL?) repository
  • kramdown
  • pry
  • rainpress
  • rubypants
  • sass
  • susy
  • systemu
  • asciidoc // also requires the asciidoc package
  • adsf // if using 'nanoc view' command

May be in RPM:

  • ruby
  • asciidoc
  • nokogiri

Installing on CentOS 7 as well as F19/20/21:

sudo yum install ruby asciidoc rubygem-bundler make gcc ruby-devel zlib-devel zlib gcc-c++
bundle install

Using a built container (all platforms):

Assuming that you have this git repository cloned under /opt/data/git/centos.org :

sudo docker pull registry.centos.org/arrfab/nanoc:latest # Download the container
sudo docker run --rm -v /opt/data/git/centos.org/:/nanoc/:Z registry.centos.org/arrfab/nanoc:latest

Please note that it also works with Podman, so no need to install Docker anymore ! :

sudo yum install -y podman
sudo podman run --rm -v /opt/data/git/centos.org/:/nanoc/:Z registry.centos.org/arrfab/nanoc:latest

#Site Layout

  • Template and menu files live in /layouts
  • Markdown, erb and processed text files live in /content
  • Static site content such as images and javascript live in /static
  • The /lib directory contains nanoc helper files used to process the site
  • Compiled site content exists in /output

#Building the site

  • Run 'nanoc' to compile assemble the static site. files from /static, /content, and /layouts will be combined.
  • You may view the site with 'nanoc view' and then pointing your browser at http://127.0.0.1:3000

You may compile and view the site live as you make changes using the guard module. To do this, run 'guard init' at the root of the site. This will create a watch file that will serve as list for what files the guard module will keep an eye on. Changes to these files will trigger an automatic rebuild of the site. Next run 'nanoc view &', followed by 'guard' Now in another terminal, you may make changes to the website content, and it will rebuild as you touch files.

#Deploying the site Simply run 'nanoc deploy --target=' where the target value is either prod1 or prod2. These targets are defined in the nanoc.yaml file.

centos.org's People

Contributors

arrfab avatar bexelbie avatar jasonbrooks avatar jperrin avatar kbsingh avatar leetbit avatar quaid avatar rbowen avatar

Watchers

 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.