jrherr / web

Web content for Meren Lab

Home Page:http://merenlab.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

Notes

If you want to show/hide content, you can use this notation in your markdown files:

<details markdown="1"><summary>Show/Hide SOME CONTENT</summary>

SOME CONTENT GOES HERE

</details>

If you want to show summary sections with a different background color, you can use this notation:

<div class="extra-info" markdown="1">

<span class="extra-info-header">Smart title for extra info</span>

EXTRA INFO GOES HERE

</div>

You should feel free to use warning and notice statements:

{:.warning}
A warning messages goes here.

{:.notice}
A notice statement goes here.

About

Web content for Meren Lab

http://merenlab.org

License:MIT License


Languages

Language:HTML 53.3%Language:Jupyter Notebook 21.6%Language:SCSS 7.9%Language:JavaScript 7.3%Language:Python 6.4%Language:R 3.5%Language:Ruby 0.0%Language:Shell 0.0%