bridgetown-stoa 0.2.0 → 0.3.0

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: 0511ef53344c59a9838fed10c80f00359b0a789d415b621e7607478040ffe7cb
4
- data.tar.gz: 21f47c907b9100fa4f8d869bc72f703fc184dd21e317b3940aa405017df4605e
3
+ metadata.gz: cd608896b8fe6337dd6f18ea4142689a7075fb8b083b2e818f8e7fb2581bef94
4
+ data.tar.gz: c701e091bf21dbcdfc797186baf25a8c091ff39b5396db1ca7a41a3dccecd5cf
5
5
  SHA512:
6
- metadata.gz: 2c2bccceca7a78df90d4fffd4846db7201fb28d1ab661582f71c352a83e9864535e93090d86fa79921cf0e093473306ae0f08e7f7f93c242a194a5416e664f8a
7
- data.tar.gz: 83755738874401da2cf61b08d56f9943517942d84376c328018eaf47c338a6118a3e751c356971e8f6a46994e53d2d88d4c0c9940d10a1f981c0856ceefd3fc2
6
+ metadata.gz: 921ab4bca3b8dc1559db5d8bc3837a875643519925a4eed55a257c4b2c4e10444a7d7b404f1589f1d6c06c761ba83c03a10fdf180b2378a33c4275868400585b
7
+ data.tar.gz: bb4431c809b2eb51eb6c432d15c5a0785a0c25ea2762cba781942c97435139d31f93d60e5e68b76f6f847e685046e7e4719c3dfeb112543da8fc388ddf6b0543
data/CHANGELOG.md CHANGED
@@ -9,6 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  - ...
11
11
 
12
+ ## [0.3.0] - 2026-05-22
13
+
14
+ ### Changed
15
+ - Enabled the `yarn-add` gemspec metadata so Bridgetown sites that install the gem auto-add the `bridgetown-stoa` npm dependency. Matches the idiomatic pattern from `bridgetown-quick-search`. (`yarn-add` and `npm_add` are synonyms inside Bridgetown's plugin manager — the gemspec template's commented `npm_add` is the older name; the ecosystem has standardized on `yarn-add`.)
16
+ - Excluded `frontend/` from the gem's `files` glob. The Tailwind partial belongs in the npm companion only; shipping it in the gem too was duplicate distribution.
17
+ - Test fixture initializer now passes `require_gem: false` to `init :"bridgetown-stoa"` so Bridgetown's plugin manager doesn't run `install_npm_dependencies` during the test suite (which would inject a self-referencing dep into the gem's own `package.json`). The gem is already loaded by `test/helper.rb`, so the re-require was redundant anyway.
18
+
12
19
  ## [0.2.0] - 2026-05-22
13
20
 
14
21
  ### Added
@@ -11,15 +11,12 @@ Gem::Specification.new do |spec|
11
11
  spec.homepage = "https://github.com/Guided-Rails/bridgetown-stoa"
12
12
  spec.license = "MIT"
13
13
 
14
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(test|script|spec|features)/!) }
14
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(test|script|spec|features|frontend)/!) }
15
15
  spec.test_files = spec.files.grep(%r!^test/!)
16
16
  spec.require_paths = ["lib"]
17
- # TODO: enable the `npm_add` metadata below once the npm companion is
18
- # published. While the package is unpublished, Bridgetown's init-time
19
- # registry lookup 404s loudly during every test run.
20
- # spec.metadata = {
21
- # "npm_add" => "bridgetown-stoa@#{BridgetownStoa::VERSION}",
22
- # }
17
+ spec.metadata = {
18
+ "yarn-add" => "bridgetown-stoa@#{BridgetownStoa::VERSION}",
19
+ }
23
20
 
24
21
  spec.required_ruby_version = ">= 3.2"
25
22
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BridgetownStoa
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bridgetown-stoa",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Tailwind v4 source partial and layouts for the Stoa Bridgetown documentation theme.",
5
5
  "license": "MIT",
6
6
  "repository": {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown-stoa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdullah Hashim
@@ -80,7 +80,6 @@ files:
80
80
  - README.md
81
81
  - Rakefile
82
82
  - bridgetown-stoa.gemspec
83
- - frontend/styles/bridgetown-stoa.css
84
83
  - layouts/bridgetown-stoa/layout.serb
85
84
  - lib/bridgetown-stoa.rb
86
85
  - lib/bridgetown-stoa/version.rb
@@ -88,7 +87,8 @@ files:
88
87
  homepage: https://github.com/Guided-Rails/bridgetown-stoa
89
88
  licenses:
90
89
  - MIT
91
- metadata: {}
90
+ metadata:
91
+ yarn-add: bridgetown-stoa@0.3.0
92
92
  rdoc_options: []
93
93
  require_paths:
94
94
  - lib
@@ -1,34 +0,0 @@
1
- /* bridgetown-stoa: Tailwind v4 source partial. Import after `@import "tailwindcss"`. */
2
-
3
- @custom-variant dark (&:where(.dark, .dark *));
4
-
5
- @theme {
6
- --color-stoa-bg: oklch(98% 0.002 264);
7
- --color-stoa-surface: oklch(100% 0 0);
8
- --color-stoa-fg: oklch(20% 0.012 264);
9
- --color-stoa-muted: oklch(50% 0.012 264);
10
- --color-stoa-border: oklch(92% 0.005 264);
11
- --color-stoa-accent: oklch(55% 0.18 264);
12
- --color-stoa-accent-fg: oklch(98% 0.002 264);
13
-
14
- --font-stoa-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
15
- --font-stoa-mono: ui-monospace, "SF Mono", Menlo, "Cascadia Code", monospace;
16
- }
17
-
18
- @layer base {
19
- .dark {
20
- --color-stoa-bg: oklch(17% 0.012 264);
21
- --color-stoa-surface: oklch(22% 0.012 264);
22
- --color-stoa-fg: oklch(94% 0.005 264);
23
- --color-stoa-muted: oklch(65% 0.012 264);
24
- --color-stoa-border: oklch(28% 0.012 264);
25
- --color-stoa-accent: oklch(72% 0.16 264);
26
- --color-stoa-accent-fg: oklch(15% 0.012 264);
27
- }
28
-
29
- html {
30
- background: var(--color-stoa-bg);
31
- color: var(--color-stoa-fg);
32
- font-family: var(--font-stoa-sans);
33
- }
34
- }