Skip to content

sreachtools/sreachtools-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docs for SReachTools-website

We use Github pages and Jekyll to power the documentation website for SReachTools.

Regenerate website

  1. When cloning the repository, make sure to do git submodule update --init to download the website at sreachtools.github.io into the _site folder.
  2. Run docs2md to update the documentation folder.
    • By default, the website is assumed to be a child (titled SReachTools-website) of the parent folder of srtinit --rootpath.
    • For example, if srtinit --rootpath returns /myworkspace/SReachTools/, then the website folder must be at /myworkspace/SReachTools-website/.
    • Specify the path to the website folder as an argument, if this not the case.
  3. Change directory into the _site folder, which now has the updated website.
  4. Push the changes to the repository.

Installation for Ubuntu

  1. Install jekyll
    sudo apt-get install ruby ruby-dev build-essential
    
  2. Update paths
    echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
    echo 'export GEM_HOME=$HOME/gems' >> ~/.bashrc
    echo 'export PATH=$HOME/gems/bin:$PATH' >> ~/.bashrc
    source ~/.bashrc
    
  3. Install Jekyll and bundler
    gem install jekyll bundler
    
  4. Getting Updates
    bundle update
    bundle init
    bundle install
    
    In case, you receive a cryptic error of the form:
Traceback (most recent call last):
	2: from /home/abyvinod/gems/bin/bundler:23:in `<main>'
	1: from /usr/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'
/usr/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundler (Gem::GemNotFoundException)
it is because of Gemfile.lock. See https://stackoverflow.com/a/54038218 for
details. The resolution is by doing the following command:
gem install bundler -v 1.16.2
  1. Pushing the changes on to github will deploy the website.

Use git tag -a <tag name> -f to update a tag

About

Jekyll contents for the SReachTools documentation

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published