Changes

Jump to navigation Jump to search
m
no edit summary
Line 21: Line 21:  
2. Install rvm script.
 
2. Install rvm script.
   −
<code>curl -sSL https://get.rvm.io | bash -s stable</code>
+
<pre>curl -sSL https://get.rvm.io | bash -s stable</pre>
    
Use the result of this step in next step. The result in my case is as follows:
 
Use the result of this step in next step. The result in my case is as follows:
 +
 +
[[File:terminal1.png|600px]]
 +
 +
Note down what's written in quotes in the line "To start using RVM you need to run 'source ... '
 +
    
3. Set RVM environment
 
3. Set RVM environment
Line 31: Line 36:  
Hence, I am running below given command, find this line and run this on your system.
 
Hence, I am running below given command, find this line and run this on your system.
   −
<code>source ---- </code>
+
<code>source /home/username/.rvm/scripts/rvm </code>
    
4. Install latest available ruby version
 
4. Install latest available ruby version
Line 39: Line 44:  
<code>rvm requirements</code>
 
<code>rvm requirements</code>
   −
Use the latest available ruby version instead of 2.4.1. (Get information from this link # 3# link )
+
Use the latest available ruby version instead of 2.4.1. (Get information about latest version from [https://www.ruby-lang.org/en/downloads/ here]. )
    
<code>rvm install 2.4.1</code>
 
<code>rvm install 2.4.1</code>
Line 67: Line 72:  
Now we are ready to create the blog and run the server.
 
Now we are ready to create the blog and run the server.
   −
<code>jekyll new myblog></code>
+
<code>jekyll new myblog</code>
 +
 
 +
<li> For Windows </li>
 +
A quick way to install Jekyll on Windows is by using Chocolatey. Steps are as follows:-
 +
 
 +
'''Steps:-'''
 +
 
 +
1. Install a package manager for Windows called [https://chocolatey.org/install/ Chocolatey]
 +
2. Install Ruby via Chocolatey.
 +
<code>choco install ruby -y</code>
 +
3. Reopen a command prompt and install Jekyll.
 +
<code>gem install jekyll</code>
 +
 
 +
Updates in the infrastructure of Ruby may cause SSL errors when attempting to use <code>gem install</code> with versions of the RubyGems package older than 2.6. (The RubyGems package installed via the Chocolatey tool is version 2.3) If you have installed an older version, you can update the RubyGems package using the directions [http://guides.rubygems.org/ssl-certificate-update/#installing-using-update-packages/here].
    +
</ul>
 
== Creating your first Post ==
 
== Creating your first Post ==
 
If you have successfully completed the above steps then you can open and modify your site locally. Execute the following on terminal
 
If you have successfully completed the above steps then you can open and modify your site locally. Execute the following on terminal
Line 88: Line 107:  
Jekyll automatically tracks the changes made in files so you don't have to serve it every time. Just refresh the page and you'll see the change appearing
 
Jekyll automatically tracks the changes made in files so you don't have to serve it every time. Just refresh the page and you'll see the change appearing
 
<br>
 
<br>
 +
<strong>Note:</strong>Changes to <code>_config.yml</code> are not traced during automatic regeneration.<code>_config.yml</code> file holds global configurations and variable which are read only once, when you execute <code>bundle exec jekyll serve _site </code>.<br>
 
'''Steps:-'''
 
'''Steps:-'''
 
<ol>
 
<ol>
Line 153: Line 173:  
<li> <code>_site</code> - This folder is automatically generated by Jekyll by interpreting all other files. You dont have to modify this folder.
 
<li> <code>_site</code> - This folder is automatically generated by Jekyll by interpreting all other files. You dont have to modify this folder.
 
</ol>
 
</ol>
 +
 +
==Useful Links==
 +
* Learn to build a basic blog from [https://www.youtube.com/playlist?list=PLLAZ4kZ9dFpOPV5C5Ay0pHaa0RJFhcmcB this] youtube tutorial.
 +
* Tutorial to build a full-fledged static website [https://www.youtube.com/playlist?list=PLygcmZoi1k1BbL2G0xc0pHJQTT1VtIo4f here].
 +
 +
    
== References ==
 
== References ==
 
[https://jekyllrb.com/ Official Jekyll Website]
 
[https://jekyllrb.com/ Official Jekyll Website]
 +
 +
== See also ==
 +
* [http://ranveeraggarwal.com/blog/get-started-with-jekyll Jekyll 101 - Ranveer Aggarwal]
 +
* [[Web Development]]
 +
* [[Community Resources]]
4

edits

Navigation menu