Using Github to deploy your Static Website.
How to run your static web pages using Github.
Prerequisites:
- HTML
- CSS
- Github
- Javascript
- Jekyll
Ingredients:
- Ruby
- Ruby DevKit
- Jekyll
- Syntax Highlighters (Optional)
For windows:
- Follow to the website below
Click here
-> Click on "Get Started" and follow the given instructions
** Checklist on this pages
- Install ruby for windows
- Install ruby devkit for windows
- Make sure you add ruby to environment system variable path.
- Setting up git
http://www.geeksforgeeks.org/using-github-to-host-a-free-static-website/
- Create a folder with any name on your computer and place all your HTML and CSS
pages and scripts in that folder. Push these HTML and CSS file to your repository.
Open any browser and run "username.github.io". Enjoy your webpage.
- Useful commands for Jekyll.
jekyll build
jekyll build --watch
jekyll build -w
jekyll serve
jekyll serve --watch
jekyll serve -w