just-the-hm-docs 1.0.0.rc1 → 1.0.1.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +20 -5
- data/_sass/color_schemes/hm.scss +4 -4
- data/_sass/custom/hm-branding.scss +6 -6
- data/_sass/layout.scss +36 -32
- data/_sass/support/_functions.scss +1 -1
- data/_sass/support/_variables.scss +9 -8
- data/assets/{images → icons}/hm-logo.svg +0 -0
- data/assets/{images → icons}/search.svg +0 -0
- data/changelog.md +7 -2
- metadata +4 -5
- data/favicon.ico +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 21dd2d7cc51e8a027dfb3bca608e880d56c41c007786534813070f3518ec099b
|
|
4
|
+
data.tar.gz: 4155dda7aae0d55a984b2f3c090c2dc09602304947d0161aeab535791c7316d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 960d3e213ca5a45c2bb0942853181fc4e499cf688fe327a0e6289d1c6357af1a2f0dd63a5b4879cb6bbc78817b87ea5d244cfdc650d0ef22c946c5c7a2c8df49
|
|
7
|
+
data.tar.gz: 4280ce1d74be4b59a0c062cb3ac442d1340c10c0fdd412b05bafd0c5d9b1ef7a8128e187bf1353805858b00afae499bd2c986a863012805a5364be32b1012361
|
data/README.md
CHANGED
|
@@ -10,14 +10,29 @@ Just the HM Docs is a GitHub Pages template developed for the purpose of quickly
|
|
|
10
10
|
|
|
11
11
|
Getting started with Just the HM Docs is simple.
|
|
12
12
|
|
|
13
|
-
1.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
1. Download the [starter theme branch](https://github.com/humanmade/just-the-hm-docs/tree/starter-theme) to get the following files:
|
|
14
|
+
- the [`_config.yml`](https://github.com/humanmade/just-the-hm-docs/blob/starter-theme/_config.yml) file and the [`Gemfile`](https://github.com/humanmade/just-the-hm-docs/blob/starter-theme/Gemfile)
|
|
15
|
+
- additional markdown files with sample content to get you started
|
|
16
|
+
- a gitignore file, 404 template, and HM logo
|
|
17
|
+
- a [GitHub Pages / Actions workflow](https://github.blog/changelog/2022-07-27-github-pages-custom-github-actions-workflows-beta/) to build and publish the site on GitHub Pages
|
|
18
|
+
1. Update `_config.yml` and `README.md` with your project information. [Be sure to update the url and baseurl](https://mademistakes.com/mastering-jekyll/site-url-baseurl/) if needed.
|
|
19
|
+
1. Update the starter content in the `.md` [Markdown files](https://guides.github.com/features/mastering-markdown/) and add any additional content you need.
|
|
20
|
+
1. Configure a [publishing source for GitHub Pages](https://help.github.com/en/articles/configuring-a-publishing-source-for-github-pages) and add an environment protection rule to allow only a specific branch to publish to your environment.
|
|
21
|
+
1. Commit your files to your publishing branch. Your project docs website is now live!
|
|
17
22
|
|
|
18
23
|
### Local development environment
|
|
19
24
|
|
|
20
|
-
Just the HM Docs requires no special Jekyll plugins and can run on GitHub Pages' standard Jekyll compiler. To setup a local development environment, clone your
|
|
25
|
+
Just the HM Docs requires no special Jekyll plugins and can run on GitHub Pages' standard Jekyll compiler. To setup a local development environment, clone your repository and follow the GitHub Docs on [Testing your GitHub Pages site locally with Jekyll](https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/testing-your-github-pages-site-locally-with-jekyll).
|
|
26
|
+
|
|
27
|
+
## Publishing a Gem
|
|
28
|
+
|
|
29
|
+
The theme is distributed as a Ruby gem so that it can be easily consumed by any Jekyll site. New versions can be published by anything with access to [the gem](https://rubygems.org/gems/just-the-hm-docs/) manually, but there is also a GitHub Action set up to automate publishing to rubygems.org and the GitHub package repository.
|
|
30
|
+
|
|
31
|
+
The action only runs when triggered manually. To do so, run the ["Publish Ruby Gem"](https://github.com/humanmade/just-the-hm-docs/actions/workflows/publish-gem.yml) action.
|
|
32
|
+
|
|
33
|
+
In order to push to rubygems.org, the action needs access to an auth token. The auth token can be set via [`Security / Secrets and variables / Actions`](https://github.com/humanmade/just-the-hm-docs/settings/secrets/actions). To create a new token, an authorized gem owner will need to create a new one from the [`API Keys`](https://rubygems.org/profile/api_keys) setting area on rubygems.org. Once created, add the token with the name `RUBYGEMS_AUTH_TOKEN`.
|
|
34
|
+
|
|
35
|
+
**NOTE:** The API key used needs to be accessible by machines *without* 2FA—otherwise the automated deployment will fail becuase it will be prompted for an OTP in a non-interactive environment. *If the security tradeoff seems reasonable* the MFA level for a rubygems.org account can be set to "UA and gem signin," which will prompt for 2FA on the website and with the `gem signin` command, but *not* for `gem push`, allowing the automated gem deploy action to work.
|
|
21
36
|
|
|
22
37
|
## License
|
|
23
38
|
|
data/_sass/color_schemes/hm.scss
CHANGED
|
@@ -17,10 +17,10 @@ $search-result-preview-color: $hm-navy-1000;
|
|
|
17
17
|
$sidebar-color: $hm-navy-100;
|
|
18
18
|
|
|
19
19
|
// Override theme variables.
|
|
20
|
-
$border-radius: rem(
|
|
21
|
-
$content-width:
|
|
20
|
+
$border-radius: rem(6);
|
|
21
|
+
$content-width: 915;
|
|
22
22
|
$gutter-spacing: $sp-7;
|
|
23
|
-
$header-height:
|
|
23
|
+
$header-height: 70;
|
|
24
24
|
$nav-list-item-height: $spacing-unit * 3.2;
|
|
25
25
|
$nav-list-item-height-sm: $spacing-unit * 3.2;
|
|
26
|
-
$nav-width:
|
|
26
|
+
$nav-width: 276;
|
|
@@ -164,7 +164,7 @@ h6 {
|
|
|
164
164
|
|
|
165
165
|
.site-title {
|
|
166
166
|
@include mq(md) {
|
|
167
|
-
font-size: rem(
|
|
167
|
+
font-size: rem(21) !important;
|
|
168
168
|
padding-bottom: $gutter-spacing-sm;
|
|
169
169
|
padding-top: $gutter-spacing-sm;
|
|
170
170
|
}
|
|
@@ -177,10 +177,10 @@ h6 {
|
|
|
177
177
|
|
|
178
178
|
&::after {
|
|
179
179
|
content: "Documentation";
|
|
180
|
-
padding-left: rem(
|
|
180
|
+
padding-left: rem(62);
|
|
181
181
|
|
|
182
182
|
@include mq(md) {
|
|
183
|
-
padding-left: rem(
|
|
183
|
+
padding-left: rem(53);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
}
|
|
@@ -205,7 +205,7 @@ h6 {
|
|
|
205
205
|
.nav-list-link {
|
|
206
206
|
outline-offset: -1px;
|
|
207
207
|
text-decoration: underline;
|
|
208
|
-
text-underline-offset: rem(
|
|
208
|
+
text-underline-offset: rem(3);
|
|
209
209
|
|
|
210
210
|
.nav-list .nav-list-item > &:hover,
|
|
211
211
|
&:hover,
|
|
@@ -246,8 +246,8 @@ h6 {
|
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
.search-label .search-icon {
|
|
249
|
-
height: rem(
|
|
250
|
-
width: rem(
|
|
249
|
+
height: rem(22);
|
|
250
|
+
width: rem(22);
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
.search-result {
|
data/_sass/layout.scss
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
// The basic two column layout
|
|
2
2
|
|
|
3
|
+
:root {
|
|
4
|
+
--sidebar-width: #{rem($nav-width-md)};
|
|
5
|
+
|
|
6
|
+
@include mq(lg) {
|
|
7
|
+
--sidebar-width: calc(
|
|
8
|
+
(100% - #{rem($nav-width + $content-width)}) / 2 + #{rem($nav-width)}
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
body {
|
|
14
|
+
position: relative;
|
|
15
|
+
padding-bottom: $sp-10;
|
|
16
|
+
overflow-y: scroll;
|
|
17
|
+
|
|
18
|
+
@include mq(md) {
|
|
19
|
+
display: grid;
|
|
20
|
+
grid-template-columns: rem($nav-width-md) 1fr;
|
|
21
|
+
position: static;
|
|
22
|
+
padding-bottom: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@include mq(lg) {
|
|
26
|
+
grid-template-columns: minmax(rem($nav-width), var(--sidebar-width)) 1fr;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
3
30
|
.side-bar {
|
|
4
31
|
z-index: 0;
|
|
5
32
|
display: flex;
|
|
@@ -9,30 +36,22 @@
|
|
|
9
36
|
@include mq(md) {
|
|
10
37
|
flex-flow: column nowrap;
|
|
11
38
|
position: fixed;
|
|
12
|
-
width:
|
|
39
|
+
width: var(--sidebar-width);
|
|
13
40
|
height: 100%;
|
|
14
41
|
border-right: $border $border-color;
|
|
15
42
|
align-items: flex-end;
|
|
16
43
|
}
|
|
17
44
|
|
|
18
45
|
@include mq(lg) {
|
|
19
|
-
width:
|
|
20
|
-
min-width: $nav-width;
|
|
46
|
+
min-width: rem($nav-width);
|
|
21
47
|
}
|
|
22
48
|
}
|
|
23
49
|
|
|
24
50
|
.main {
|
|
25
51
|
@include mq(md) {
|
|
52
|
+
grid-column-start: 2;
|
|
26
53
|
position: relative;
|
|
27
|
-
max-width: $content-width;
|
|
28
|
-
margin-left: $nav-width-md;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@include mq(lg) {
|
|
32
|
-
margin-left: max(
|
|
33
|
-
$nav-width,
|
|
34
|
-
calc((100% - #{$nav-width + $content-width}) / 2 + #{$nav-width})
|
|
35
|
-
);
|
|
54
|
+
max-width: rem($content-width);
|
|
36
55
|
}
|
|
37
56
|
}
|
|
38
57
|
|
|
@@ -56,7 +75,7 @@
|
|
|
56
75
|
@include mq(md) {
|
|
57
76
|
display: flex;
|
|
58
77
|
justify-content: space-between;
|
|
59
|
-
height: $header-height;
|
|
78
|
+
height: rem($header-height);
|
|
60
79
|
background-color: $body-background-color;
|
|
61
80
|
border-bottom: $border $border-color;
|
|
62
81
|
}
|
|
@@ -76,7 +95,7 @@
|
|
|
76
95
|
width: 100%;
|
|
77
96
|
|
|
78
97
|
@include mq(lg) {
|
|
79
|
-
width: $nav-width;
|
|
98
|
+
width: rem($nav-width);
|
|
80
99
|
}
|
|
81
100
|
}
|
|
82
101
|
|
|
@@ -98,12 +117,12 @@
|
|
|
98
117
|
|
|
99
118
|
.site-header {
|
|
100
119
|
display: flex;
|
|
101
|
-
min-height: $header-height;
|
|
120
|
+
min-height: rem($header-height);
|
|
102
121
|
align-items: center;
|
|
103
122
|
|
|
104
123
|
@include mq(md) {
|
|
105
|
-
height: $header-height;
|
|
106
|
-
max-height: $header-height;
|
|
124
|
+
height: rem($header-height);
|
|
125
|
+
max-height: rem($header-height);
|
|
107
126
|
border-bottom: $border $border-color;
|
|
108
127
|
}
|
|
109
128
|
}
|
|
@@ -167,21 +186,6 @@
|
|
|
167
186
|
);
|
|
168
187
|
}
|
|
169
188
|
|
|
170
|
-
// stylelint-disable selector-max-type
|
|
171
|
-
|
|
172
|
-
body {
|
|
173
|
-
position: relative;
|
|
174
|
-
padding-bottom: $sp-10;
|
|
175
|
-
overflow-y: scroll;
|
|
176
|
-
|
|
177
|
-
@include mq(md) {
|
|
178
|
-
position: static;
|
|
179
|
-
padding-bottom: 0;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
// stylelint-enable selector-max-type
|
|
184
|
-
|
|
185
189
|
.site-footer {
|
|
186
190
|
@include container;
|
|
187
191
|
|
|
@@ -4,6 +4,7 @@ $body-font-family: system-ui, -apple-system, blinkmacsystemfont, "Segoe UI",
|
|
|
4
4
|
roboto, "Helvetica Neue", arial, sans-serif !default;
|
|
5
5
|
$mono-font-family: "SFMono-Regular", menlo, consolas, monospace !default;
|
|
6
6
|
$root-font-size: 16px !default; // Base font-size for rems
|
|
7
|
+
$root-font-size-rem-base: 0.0625 !default; // 1 divided by base font-size for rem function.
|
|
7
8
|
$body-line-height: 1.4 !default;
|
|
8
9
|
$content-line-height: 1.6 !default;
|
|
9
10
|
$body-heading-line-height: 1.25 !default;
|
|
@@ -108,22 +109,22 @@ $border-color: $grey-lt-100 !default;
|
|
|
108
109
|
|
|
109
110
|
$gutter-spacing: $sp-6 !default;
|
|
110
111
|
$gutter-spacing-sm: $sp-4 !default;
|
|
111
|
-
$nav-width:
|
|
112
|
-
$nav-width-md:
|
|
112
|
+
$nav-width: 264 !default;
|
|
113
|
+
$nav-width-md: 248 !default;
|
|
113
114
|
$nav-list-item-height: $sp-6 !default;
|
|
114
115
|
$nav-list-item-height-sm: $sp-8 !default;
|
|
115
116
|
$nav-list-expander-right: true;
|
|
116
|
-
$content-width:
|
|
117
|
-
$header-height:
|
|
118
|
-
$search-results-width: $content-width - $nav-width !default;
|
|
117
|
+
$content-width: 800 !default;
|
|
118
|
+
$header-height: 60 !default;
|
|
119
|
+
$search-results-width: rem($content-width - $nav-width) !default;
|
|
119
120
|
$transition-duration: 400ms;
|
|
120
121
|
|
|
121
122
|
// Media queries in pixels
|
|
122
123
|
|
|
123
124
|
$media-queries: (
|
|
124
|
-
xs:
|
|
125
|
-
sm:
|
|
125
|
+
xs: 320,
|
|
126
|
+
sm: 500,
|
|
126
127
|
md: $content-width,
|
|
127
128
|
lg: $content-width + $nav-width,
|
|
128
|
-
xl:
|
|
129
|
+
xl: 1400,
|
|
129
130
|
) !default;
|
|
File without changes
|
|
File without changes
|
data/changelog.md
CHANGED
|
@@ -7,10 +7,15 @@ nav_order: 99
|
|
|
7
7
|
|
|
8
8
|
# Changelog
|
|
9
9
|
|
|
10
|
+
## v1.0.1
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
- Fix Sass compiling bug
|
|
13
|
+
- Split icons into their own folder
|
|
14
|
+
- Update documentation
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
## v1.0.0
|
|
17
|
+
|
|
18
|
+
- Release [Just the HM docs](https://github.com/humanmade/just-the-hm-docs/pull/1).
|
|
14
19
|
|
|
15
20
|
## v0.0.0
|
|
16
21
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: just-the-hm-docs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1.rc1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Human Made
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-02-
|
|
11
|
+
date: 2023-02-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -176,15 +176,14 @@ files:
|
|
|
176
176
|
- assets/favicon/favicon-32x32.png
|
|
177
177
|
- assets/favicon/favicon.ico
|
|
178
178
|
- assets/favicon/site.webmanifest
|
|
179
|
+
- assets/icons/hm-logo.svg
|
|
180
|
+
- assets/icons/search.svg
|
|
179
181
|
- assets/images/.gitkeep
|
|
180
|
-
- assets/images/hm-logo.svg
|
|
181
|
-
- assets/images/search.svg
|
|
182
182
|
- assets/js/just-the-docs.js
|
|
183
183
|
- assets/js/vendor/lunr.min.js
|
|
184
184
|
- assets/js/zzzz-search-data.json
|
|
185
185
|
- bin/just-the-hm-docs
|
|
186
186
|
- changelog.md
|
|
187
|
-
- favicon.ico
|
|
188
187
|
- lib/tasks/search.rake
|
|
189
188
|
homepage: https://github.com/humanmade/just-the-hm-docs
|
|
190
189
|
licenses:
|
data/favicon.ico
DELETED
|
Binary file
|