Skip to content

cs-ucsp/cs-ucsp

Repository files navigation

UCSP School of Computer Science

Website for the School of Computer Science at UCSP.

Setup Instructions

The website is based on http://jekyllrb.com/ Jekyll, based on Ruby.

Environment setup

Important: This guide is oriented for Linux, Unix and Mac OS X systems. For Windows you are encouraged to use a Ruby bundle, such as RubyInstaller for Windows http://rubyinstaller.org/.

If you already have a Ruby environment configured, proceeed to the next step.

There are two main methods to have a Ruby environment in your system. Either using your system packaging tool or rvm. I recomend to use rvm http://rvm.io, since it provides more flexibility when using mutiple Ruby versions.

This guide will use rvm for Ruby environment setup.

Install RVM and Ruby:

\curl -sSL https://get.rvm.io | bash -s stable --ruby

Follow screen instructions. Make sure you do source $HOME/.rvm/scripts/rvm to have the Ruby rvm environment loaded in your session.

Jekyll setup

Install Jekyll gem. gem install jekyll

Getting sources

Clone the git repository git clone https://github.com/cs-ucsp/cs-ucsp.git

Start hacking!

Project organization and contributing

The project uses the Bootstrap http://getbootstrap.com/ front-end framework.

  • _layouts/ - contains website layout (general template)
  • css/ - contains custom and Bootstrap' CSS stylesheets
  • fonts/ - contains webfonts
  • img/ - contains images
  • js/ - contains custom and Bootstrap' Javascript
  • _posts/ - posts for the news section
  • _config.yml - Jekyll configuration

Creating new pages / sections

To create a new page you will need to create a new Jekyll-compatible (Markdown, Textile, Liquid or plain HTML) file. For instance, if you create a file named newfile.html the content of such file will be shown in the URI http://cs.ucsp.edu.pe/newfile.html.

if you want to create a section or area, you will need to create a directory and place at least a file named index.html with content. For instance, if you want to create a section named publications, create a publications directory. It will be shown in the URI http://cs.ucsp.edu.pe/publications/

Testing changes

To test your changes, run jekyll serve. It will launch a webserver on http://localhost:4000. Enter that address in your browser and you are set.

You can also use jekyll serve --watch to make jekyll watch for changes and regenerate the static HTML automatically.

Controlling the project (REDMINE)

We use Redmine to manage the tasks that need to be done for this project.

For contributing you need to:

  1. Go to the Project on Redmine: http://cs.ucsp.edu.pe/projects/projects/cs-www
  2. Go to the Issues tab (http://cs.ucsp.edu.pe/projects/projects/cs-www/issues)
  3. Select the issue you want to solve (only the ones with status New, In Progress and Feedback)
  4. When you think the issue is solved, change its Status to Resolved.
  5. If you think that there should be more issues that are not listed there, go ahead, create and assign them to Raul Gallegos or Rudy Godoy as watchers.

If you don't have an account contact either Raul or Rudy. We'll setup and email it back to you.

How to contribute:

For tasks that involve changing the site's code (including html, script, docs, etc.), you need to use branches. Go to the project root and create a new branch for the specific issue you are solving, for example for the issue #123:

git checkout -b ticket-123

Then make your changes. Once you are done commit your changes and then push them back to origin (github). Then on the github project page, create a new Pull Request with the branch you created. We will make sure that the contribution is correct and merge it with the master branch.

You can learn more about how Pull Requests work here: https://help.github.com/articles/creating-a-pull-request.

About

Website for the Computer Science Program of UCSP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published