Adding Bootstrap to Jekyll

As Jekyll natively supports sass, you can use bootstrap-sass. I personally install it with the bower install bootstrap-sass command. This installs Bootstrap and Jquery in the bower_components folder. Configuration In your _config.yml add : sass: # loading path from site root # default to _sass sass_dir: bower_components/bootstrap-sass/assets/stylesheets # style : nested (default), compact, compressed, expanded … Read more

How can I generate JavaScript API documentation for GitHub Pages [closed]

If you’re familiar with Grunt, you can easily generate .html docs with grunt-jsdoc. Document your code with JSDoc. Use grunt-jsdoc which internally uses jsdoc to generate code documentation. This will also output the source code in HTML and within the documentation it will include links to code lines for each publicly accessible member. You can … Read more

Jekyll Paginator not working

Pagination in Jekyll only works in an index.html file. If you have other pages in the root of your project folder (say, about.html, poems.html) pagination will NOT work in them. To have pagination work in another page other than your index.html, create a new folder for that page (say, poems/) and change what would have … Read more

Use a subdirectory as root with htaccess in Apache 1.3

Finally got it, after a week of trying. RewriteRules really are voodoo… RewriteEngine On # Map http://www.example.com to /jekyll. RewriteRule ^$ /jekyll/ [L] # Map http://www.example.com/x to /jekyll/x unless there is a x in the web root. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/jekyll/ RewriteRule ^(.*)$ /jekyll/$1 # Add trailing slash to directories … Read more

bundler: failed to load command: jekyll

I stumbled upon this question when I ran into the issue of trying to set up github pages. It seems that in the latest version of ruby that is installed with homebrew webrick is not included by default. Here is the github issue: https://github.com/github/pages-gem/issues/752. Recommendations are to either use ruby 2.7 or to manually add … Read more

tech