Skip to content

Commit fb333da

Browse files
committed
Move implicit primer theme into site for local preview
1 parent d765d82 commit fb333da

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3280
-42
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,12 @@ vendor/
1111
*.swo
1212
*.bkp
1313

14+
_site
15+
node_modules
16+
.sass-cache
17+
*.gem
18+
Gemfile.lock
19+
*.gem
20+
assets/**/*.html
21+
assets/**/*.md
22+

Gemfile

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,5 @@
1-
source "https://rubygems.org"
2-
# Hello! This is where you manage which Jekyll version is used to run.
3-
# When you want to use a different version, change it below, save the
4-
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
5-
#
6-
# bundle exec jekyll serve
7-
#
8-
# This will help ensure the proper Jekyll version is running.
9-
# Happy Jekylling!
10-
gem "jekyll", "~> 4.3.2"
11-
12-
gem "rouge"
13-
# https://stackoverflow.com/questions/62720043/rails-why-is-bundle-install-frozen-up-by-sassc-2-4-0
14-
#gem "ssasc", "~> 2.1.0"
15-
#gem "eventmachine", "~> 1.2.6"
16-
17-
# https://github.com/jekyll/jekyll/issues/8523
18-
#gem "webrick"
19-
20-
# This is the default theme for new Jekyll sites. You may change this to anything you like.
21-
# gem "minima", "~> 2.5"
1+
# frozen_string_literal: true
222

23-
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
24-
# uncomment the line below. To upgrade, run `bundle update github-pages`.
25-
# gem "github-pages", group: :jekyll_plugins
26-
# If you have any plugins, put them here!
27-
group :jekyll_plugins do
28-
gem "jekyll-feed", "~> 0.17.0"
29-
gem "jekyll-seo-tag", "~> 2.8.0"
30-
gem "jekyll-sitemap", "~> 1.4.0"
31-
#gem "jekyll-last-modified-at", "~> 1.3.2"
32-
end
33-
34-
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
35-
# and associated library.
36-
#platforms :mingw, :x64_mingw, :mswin, :jruby do
37-
# gem "tzinfo", "~> 1.2"
38-
# gem "tzinfo-data"
39-
#end
40-
# Performance-booster for watching directories on Windows
41-
# gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
42-
43-
#gem "html-proofer", "~> 4.4.3"
3+
source "https://rubygems.org"
444

5+
gemspec

_config.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
exclude:
2+
- node_modules
3+
- script
4+
5+
sass:
6+
style: :compressed
7+
8+
theme: jekyll-theme-primer
9+
10+
#github:
11+
# private: false
12+
# source:
13+
# branch: "main"
14+
# path: "/"
15+
# repository_url: "https://github.com/keepandroidopen/keepandroidopen.github.io"
16+
17+
#title: Jekyll Theme Primer
18+
#description: Primer is a Jekyll theme for GitHub Pages
19+

_layouts/default.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ page.lang | default: site.lang | default: "en-US" }}">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
8+
{% seo %}
9+
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
10+
{% include head-custom.html %}
11+
</head>
12+
<body>
13+
<div class="container-lg px-3 my-5 markdown-body">
14+
{% if site.title and site.title != page.title %}
15+
<h1><a href="{{ "/" | absolute_url }}">{{ site.title }}</a></h1>
16+
{% endif %}
17+
18+
{{ content }}
19+
20+
{% if site.github.private != true and site.github.license %}
21+
<div class="footer border-top border-gray-light mt-5 pt-3 text-right text-gray">
22+
This site is open source. {% github_edit_link "Improve this page" %}.
23+
</div>
24+
{% endif %}
25+
</div>
26+
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous"></script>
27+
<script>anchors.add();</script>
28+
</body>
29+
</html>

_layouts/home.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
layout: default
3+
---
4+
{{ content }}

_layouts/page.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
layout: default
3+
---
4+
{{ content }}

_layouts/post.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
layout: default
3+
---
4+
{{ content }}

_sass/jekyll-theme-primer.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
@import "primer-support/index.scss";
3+
@import "primer-base/index.scss";
4+
@import "primer-utilities/index.scss";
5+
@import "primer-layout/index.scss";
6+
@import "primer-markdown/index.scss";
7+
@import "rouge";

_sass/primer-base/index.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@import "primer-support/index.scss";
2+
3+
@import "./lib/normalize.scss";
4+
@import "./lib/base.scss";
5+
@import "./lib/typography-base.scss";

_sass/primer-base/lib/base.scss

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
// stylelint-disable selector-max-type
2+
* {
3+
box-sizing: border-box;
4+
}
5+
6+
input,
7+
select,
8+
textarea,
9+
button {
10+
font-family: inherit;
11+
font-size: inherit;
12+
line-height: inherit;
13+
}
14+
15+
body {
16+
font-family: $body-font;
17+
font-size: $body-font-size;
18+
line-height: $body-line-height;
19+
color: $text-gray-dark;
20+
background-color: $bg-white;
21+
}
22+
23+
a {
24+
color: $text-blue;
25+
text-decoration: none;
26+
27+
&:hover {
28+
text-decoration: underline;
29+
}
30+
}
31+
32+
b,
33+
strong {
34+
font-weight: $font-weight-bold;
35+
}
36+
37+
// Horizontal lines
38+
//
39+
// TODO-MDO: Remove `.rule` from everywhere and replace with `<hr>`s
40+
hr,
41+
.rule {
42+
height: 0;
43+
margin: 15px 0;
44+
overflow: hidden;
45+
background: transparent;
46+
border: 0;
47+
border-bottom: 1px solid lighten($gray-300, 5%);
48+
@include clearfix();
49+
}
50+
51+
//
52+
// Remove most spacing between table cells.
53+
//
54+
55+
table {
56+
border-spacing: 0;
57+
border-collapse: collapse;
58+
}
59+
60+
td,
61+
th {
62+
padding: 0;
63+
}
64+
65+
button {
66+
cursor: pointer;
67+
// Remove border radius added by Chroma macOS
68+
border-radius: 0;
69+
}
70+
71+
// increase the selector specificity for [hidden]
72+
// so that it always overrides utility classes (.d-block, etc.)
73+
[hidden][hidden] {
74+
display: none !important;
75+
}
76+
77+
details {
78+
summary { cursor: pointer; }
79+
80+
&:not([open]) {
81+
// Set details content hidden by default for browsers that don't do this
82+
> *:not(summary) { display: none !important; }
83+
}
84+
}

0 commit comments

Comments
 (0)