$ git remote add origin git push -u origin gh-pages If this is Project Page, change the name of the master branch to gh-pages and push to GitHub: $ git branch -m master gh-pages If this is repository is meant to be your User Page, you can use the master branch to publish your website. This is a very basic website, but you can edit the Markdown files to personalize it. $ jekyll serve -watchĬreate and edit the Markdown files for your website, then commit your changes. You can also add the -watch command at the end to force Jekyll to rebuild the site every time you save the file. To view the website locally, go to Afterwards you can press ctrl-c to stop the process in the terminal. Copy all of the files you moved back into the repo and run this command in the myrepo directory: $ jekyll build ![]() A new set of files should appear in the directory. Just move the files to a different places temporarily and rerun the command. If the repo is not empty, it will complain about there being files already in the repo. If the repo is empty there will be no error messages. The basic jekyll command to create a basic jekyll directory called myrepo is jekyll new: $ jekyll new myrepo To install Jekyll, run the command $ gem install jekyll To install Bundler, run the command $ gem install bundler ![]() The installation of Jekyll depends on Ruby and Bundler. To get started, I encourage you to follow the instructions on the GitHub Help: Using Jekyll with Pages website. Both of the following ways use jekyll to create beautiful website written in Markdown (.md) files.Ĭlone a repository which contains all the jekyll files needed to create a website such as the jekyll-bootstrap repository or Karl Broman’s simple_site repository. html files, there are several ways to set up your repository either for a User Page or Project Page with the initial set of files needed to create a website. Outside of using the automatic page generator provided by GitHub or writing your own.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |