Skip to content

Commit

Permalink
Add local Jekyll environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
infovore committed Sep 11, 2024
1 parent 6f26659 commit bf59b0b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode
tmp
_site
Gemfile.lock
25 changes: 25 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
source "https://rubygems.org"
# gem "jekyll", "~> 4.3.3"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
# gem "minima", "~> 2.5"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
gem "github-pages", "~> 232", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", ">= 1", "< 3"
gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]

# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
# do not have a Java counterpart.
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
# 16n website

We need a website, fast, if only to answer the question _what is this thing
I have seen on the internet?_ Ta-da!
I have seen on the internet?_ Ta-da!

## Working on the website locally

It's a Github Pages / Jekyll site, so you'll need a Ruby toolchain with `bundler` installed. Then, from this directory:

bundle install

And then, to run a local server with the site on:

bundle exec jekyll serve

This will spin up a server at port 4000 on `localhost`. Note that it's not hot-reloading; if you update a markdown file, you'll need to reload your browser.

## Updating the editor

Expand Down
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ exclude:
include:
- _*.js
- _*.css
github:
is_project_page: false

0 comments on commit bf59b0b

Please sign in to comment.