Coder Social home page Coder Social logo

railroader-site's Introduction

Railroader Site

This is the code for building https://railroader.org, the Railroader website.

This is a project fork of the code for building the Brakeman website at: https://github.com/presidentbeef/brakeman-site It is legal, as the original website was licensed under the Creative Commons Attribution 3.0 Unported License (we are under the same license).

Install instructions to make changes

This version of the site is generated using hugo. On Ubuntu use

snap install hugo

You also need to set up the "_deploy" subdirectory so that it is a clone from https://github.com/david-a-wheeler/railroader using its gh-pages branch:

  git clone https://github.com/david-a-wheeler/railroader.git
  mv railroader '_deploy'
  cd _deploy
  git checkout gh-pages

Making changes

In general edit the information in directory content/.

You can view things by running make which will start up hugo, then use a web browser to view http://localhost:1313/ If you edit something, hugo will automatically rerender, so just refresh the page on your web browser.

There are lots of pages in the repo that are not currently being displayed on the website. Fixes welcome.

Beware: Image files must not contain a dash due to a bug in GitHub. It took me a while to figure out that problem.

Run make generate to generate the static pages.

When you are happy, git commit -asv to commit them all.

Run make push to push the pages to the real site (if you have the rights).

Older version

Older version - install

The older site is built using (a very old version of) Octopress, which is a layer on top of Jekyll. We are seriously considering switching to Hugo, but the goal was to just get started. First you need to install things so that you can make changes.

Changes to the site content should be made in source/. Markdown is preferred.

To install:

  • Use Ruby 3.0.3. If you use rbenv: rbenv install 3.0.3
  • bundle install for dependencies

You also need to set up the "_deploy" subdirectory so that it is a clone from https://github.com/david-a-wheeler/railroader using its gh-pages branch:

  git clone https://github.com/david-a-wheeler/railroader.git
  mv railroader '_deploy'
  cd _deploy
  git checkout gh-pages

Older version - Making changes to the site

Edit pages within /source (except for source/railroader/docs/warning_types).

Before generating a site, you should first copy the relevant files from the main railroader site (master branch) into source/railroader/docs/warning_types

    bundle exec rake copy_docs_from_railroader

To preview: bundle exec rake preview and visit http://localhost:4000

To deploy, generate the pages (to /public), then run bundle exec rake deploy - this will copy the files in /public and the dotfiles to _deploy, then push to the GitHub Pages (gh-pages) branch.

License

Creative Commons License
The text content of the site is licensed under a Creative Commons Attribution 3.0 Unported License.

railroader-site's People

Contributors

imathis avatar jasnow avatar presidentbeef avatar david-a-wheeler avatar gisikw avatar gazayas avatar lukearmstrong avatar rwdaigle avatar tomhoover avatar nigelwinterburn avatar bendoerr avatar pw avatar jtdowney avatar bmaland avatar masukomi avatar marutanm avatar rtgibbons avatar pilif avatar oreoshake avatar strika avatar ballou88 avatar melriffe avatar melwin avatar kosmas avatar kent avatar jlong avatar jpignata avatar jerodsanto avatar jsyeo avatar woodwardjd avatar

Watchers

 avatar James Cloos avatar  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.