just-the-hm-docs 1.0.0.rc1 → 1.0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: acf12320344cc3dd2d21238c7157760afb05057a60474dc964715a734523082c
4
- data.tar.gz: 611c56316630b1f26434368160b2d75d0b3bed8801bff553f7400898297c7157
3
+ metadata.gz: 5f1c68d38723c9d118f7806b86e9c9d06e15cb50fd2075b53731c2dd5510c654
4
+ data.tar.gz: 18ca54688ebca8a55563faef43f0354296a82ca296e33013cbd99f2c08432faa
5
5
  SHA512:
6
- metadata.gz: 83ebebe2290075dfd74ee5aaceff92b6fe20ca2d91af848c8c82cb487ed1f591a35d05a44d227001db7e7c88362c6595034eeb927f107abf81cb44f8a8bc9417
7
- data.tar.gz: e34ff674a2752b26bf09cb9f0d691d5a120abbfec152b986f2d751f98fc0fd07c9b37dbfca7a7afa6ec6ad856cb418af405620fed999f3dea8952e982c02cbfd
6
+ metadata.gz: 419e53d9a1afa00735df5ab32d5b23c1c3fb329dbc7961e8cb2d019c81376941c6097f6cc5256a38abaf2e566425b94cfab0333330f53851792f4bbf66708368
7
+ data.tar.gz: 4297cabdd0a557745087afd805c45672d13f959c2e410c8a70a7741efb64756c592743474c0cb641ee46b7d5ec1d4420dfd1e235b48261ffbf6af4f844534e08
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. Create a [new repository based on Just the HM Docs](https://github.com/humanmade/just-the-hm-docs/generate).
14
- 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/).
15
- 1. Configure a [publishing source for GitHub Pages](https://help.github.com/en/articles/configuring-a-publishing-source-for-github-pages). Your project docs website is now live!
16
- 1. Edit and create `.md` [Markdown files](https://guides.github.com/features/mastering-markdown/) to add more content pages.
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 template 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).
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
 
@@ -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(6px);
21
- $content-width: 915px;
20
+ $border-radius: rem(6);
21
+ $content-width: 915;
22
22
  $gutter-spacing: $sp-7;
23
- $header-height: 70px;
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: 276px;
26
+ $nav-width: 276;
@@ -164,7 +164,7 @@ h6 {
164
164
 
165
165
  .site-title {
166
166
  @include mq(md) {
167
- font-size: rem(21px) !important;
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(62px);
180
+ padding-left: rem(62);
181
181
 
182
182
  @include mq(md) {
183
- padding-left: rem(53px);
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(3px);
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(22px);
250
- width: rem(22px);
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: $nav-width-md;
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: calc((100% - #{$nav-width + $content-width}) / 2 + #{$nav-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
 
@@ -1,7 +1,7 @@
1
1
  @use "sass:math";
2
2
 
3
3
  @function rem($size, $unit: "") {
4
- $rem-size: math.div($size, $root-font-size);
4
+ $rem-size: $size * $root-font-size-rem-base;
5
5
 
6
6
  @if $unit == false {
7
7
  @return #{$rem-size};
@@ -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: 264px !default;
112
- $nav-width-md: 248px !default;
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: 800px !default;
117
- $header-height: 60px !default;
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: 320px,
125
- sm: 500px,
125
+ xs: 320,
126
+ sm: 500,
126
127
  md: $content-width,
127
128
  lg: $content-width + $nav-width,
128
- xl: 1400px,
129
+ xl: 1400,
129
130
  ) !default;
File without changes
File without changes
data/changelog.md CHANGED
@@ -7,10 +7,21 @@ nav_order: 99
7
7
 
8
8
  # Changelog
9
9
 
10
+ ## v1.0.2
10
11
 
11
- ## v0.0.1
12
+ - Update Jekyll version to 4.3.2
13
+ - Update Webrick to 1.8
14
+ - Add layout default to config file
12
15
 
13
- - Release [Just the HM docs](https://github.com/humanmade/just-the-hm-docs/pull/1) site.
16
+ ## v1.0.1
17
+
18
+ - Fix Sass compiling bug
19
+ - Split icons into their own folder
20
+ - Update documentation
21
+
22
+ ## v1.0.0
23
+
24
+ - Release [Just the HM docs](https://github.com/humanmade/just-the-hm-docs/pull/1).
14
25
 
15
26
  ## v0.0.0
16
27
 
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.0.rc1
4
+ version: 1.0.2.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-01 00:00:00.000000000 Z
11
+ date: 2023-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 3.8.5
33
+ version: 4.3.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 3.8.5
40
+ version: 4.3.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jekyll-seo-tag
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -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