Coder Social home page Coder Social logo

blakevanniel / web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from merenlab/merenlab.org

0.0 0.0 0.0 314.7 MB

Web content for Meren Lab

Home Page: http://merenlab.org

License: MIT License

Ruby 0.45% JavaScript 12.10% HTML 70.12% CSS 14.78% Python 2.56% Shell 0.01%

web's Introduction

How to run a copy of this website locally

You can run a local version of this website to see how your changes will look like when they are pushed. For this, you need to install jekyll, which can be doen the following way on a Mac OSX:

sudo gem install jekyll

If the command gem is not found, or your Ruby version is outdated, try to install it the following way first:

brew install ruby

Once the installation is complete, you can get a copy of the web site from GitHub:

git clone https://github.com/merenlab/web.git
cd web

To make sure you have the necesary gems, run:

bundle install

And run the following command in this directory:

bundle exec jekyll serve --incremental

You should see a similar output in your terminal:

Configuration file: /Users/evan/Software/web/_config.yml
Configuration file: /Users/evan/Software/web/_config.yml
            Source: /Users/evan/Software/web
       Destination: /Users/evan/Software/web/_site
 Incremental build: enabled
      Generating...
                    done in 6.585 seconds.
 Auto-regeneration: enabled for '/Users/evan/Software/web'
Configuration file: /Users/evan/Software/web/_config.yml
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.

This basically runs a local server for you to see the changes you've made locally. You can access to this server by visiting the URL http://127.0.0.1:4000/ with your browser.

With the --incremental flag every change you will make in any of the files will be reflected to your local website automatically.

If you are not seeing some of the changes you expect to see, press ctrl-c to stop the server on your termianl, clean out the static web directory by running the command rm -rf _site/, and re-run the server using the command above.

How to get yourself fired from the lab

It is simple.

You can make the following changes in the web site:

find ./_posts/ -type f | xargs sed -i '' -e  "s/An anvi'o/A microbial dark matter \(MDM\)/g"
find ./_posts/ -type f | xargs sed -i '' -e  "s/an anvi'o/a microbial dark matter \(MDM\)/g"
find ./_posts/ -type f | xargs sed -i '' -e  "s/Anvi'o/Microbial dark matter \(MDM\)/g"
find ./_posts/ -type f | xargs sed -i '' -e  "s/anvi'o/microbial dark matter \(MDM\)/g"
find ./_posts/ -type f | xargs sed -i '' -e  "s/anvi'o/microbial dark matter \(MDM\)/g"
find ./_posts/ -type f | xargs sed -i '' -e  "s/anvi'server/MDM'server/g"

And commit them to the main repository after making sure they look alright in your local copy:

git add .
git commit -m "name upgrade"
git push origin master

Congratulations!

web's People

Contributors

blakevanniel avatar bremsen avatar brymerr921 avatar edgraham avatar efogarty11 avatar ekiefl avatar hmorrison avatar igungor avatar jackmen avatar jreveillaud avatar meren avatar ntromas avatar ozcan avatar ppflrs avatar rec3141 avatar shaiberalon avatar tdelmont avatar watsonar avatar ycanerol 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.