Skip to content

Commit e8aa45c

Browse files
committed
initial commit
0 parents  commit e8aa45c

10 files changed

Lines changed: 1654 additions & 0 deletions

File tree

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
_site
2+
.sass-cache
3+
.jekyll-cache
4+
.jekyll-metadata
5+
vendor
6+
7+
# https://docs.github.com/ja/pages/setting-up-a-github-pages-site-with-jekyll/creating-a-github-pages-site-with-jekyll
8+
Gemfile.lock

404.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
permalink: /404.html
3+
layout: default
4+
---
5+
<div class="error-page">
6+
<header>
7+
<h1>404</h1>
8+
</header>
9+
<main>
10+
<p><strong>Page not found :(</strong></p>
11+
<p>The requested page could not be found.</p>
12+
</main>
13+
</div>

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem "github-pages", "~> 232", group: :jekyll_plugins

_config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
title: 沖縄Ruby会議03
2+
baseurl: "/okrk03"
3+
url: "https://ruby.okinawa"
4+
exclude:
5+
- flake.nix
6+
- flake.lock
7+
- gemset.nix

_layouts/default.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="ja">
3+
<head>
4+
<title>{{ site.title }}</title>
5+
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
6+
</head>
7+
<body>
8+
{{ content }}
9+
</body>
10+
</html>

assets/css/style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
.error-page {
3+
margin: 10px auto;
4+
max-width: 600px;
5+
text-align: center;
6+
7+
h1 {
8+
margin: 30px 0;
9+
font-size: 4em;
10+
line-height: 1;
11+
letter-spacing: -1px;
12+
}
13+
}

flake.lock

Lines changed: 186 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
description = "沖縄Ruby会議03";
3+
4+
nixConfig = {
5+
extra-substituters = "https://nixpkgs-ruby.cachix.org";
6+
extra-trusted-public-keys = "nixpkgs-ruby.cachix.org-1:vrcdi50fTolOxWCZZkw0jakOnUI1T19oYJ+PRYdK4SM=";
7+
};
8+
9+
inputs = {
10+
nixpkgs.url = "nixpkgs";
11+
ruby-nix.url = "github:inscapist/ruby-nix";
12+
bundix = {
13+
url = "github:inscapist/bundix/main";
14+
inputs.nixpkgs.follows = "nixpkgs";
15+
};
16+
fu.url = "github:numtide/flake-utils";
17+
bob-ruby.url = "github:bobvanderlinden/nixpkgs-ruby";
18+
bob-ruby.inputs.nixpkgs.follows = "nixpkgs";
19+
};
20+
21+
outputs =
22+
{
23+
self,
24+
nixpkgs,
25+
fu,
26+
ruby-nix,
27+
bundix,
28+
bob-ruby,
29+
}:
30+
with fu.lib;
31+
eachDefaultSystem (
32+
system:
33+
let
34+
pkgs = import nixpkgs {
35+
inherit system;
36+
overlays = [ bob-ruby.overlays.default ];
37+
};
38+
rubyNix = ruby-nix.lib pkgs;
39+
40+
gemConfig = { };
41+
42+
ruby = pkgs."ruby-3.4.9";
43+
44+
bundixcli = bundix.packages.${system}.default;
45+
in
46+
rec {
47+
inherit
48+
(rubyNix {
49+
inherit ruby;
50+
name = "okrk03";
51+
gemConfig = pkgs.defaultGemConfig // gemConfig;
52+
})
53+
env
54+
;
55+
56+
devShells = rec {
57+
default = dev;
58+
dev = pkgs.mkShell {
59+
env = {
60+
BUNDLE_PATH = "vendor/bundle";
61+
};
62+
buildInputs =
63+
[
64+
env
65+
bundixcli
66+
];
67+
};
68+
};
69+
}
70+
);
71+
}

0 commit comments

Comments
 (0)