lookbook 0.9.6 → 0.9.8
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 +6 -26
- data/app/controllers/lookbook/application_controller.rb +4 -0
- data/lib/lookbook/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1552c783aeb0b0fadbdc347de7927f8e0ce6fca4352986ed36e4cf9989b64640
|
|
4
|
+
data.tar.gz: f46d89c7514ce88bb720fe9dfd4f301bc7b8596356c36428fb48d5373f6eb14a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5cbaa4763a8ac0ad0be4143e18988849aba4453cd972565b4a0e4cb771d645f28b098a443e9129b4328a3a0f20e6aa68d5a4e693aee0c2eaf20602591fffd6cf
|
|
7
|
+
data.tar.gz: 1395ed27344183e973893d1116d467e98ad875e775fb207d8d3dde0cd18de5d67fce600a42151bd352bc9055057e868360ed2f353224e881bdafff77723baf7c
|
data/README.md
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<h1
|
|
2
|
+
<h1>Lookbook</h1>
|
|
3
3
|
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
<div>
|
|
7
|
-
<a href="https://rubygems.org/gems/lookbook"><img src="https://badge.fury.io/rb/lookbook.svg" alt="Gem version">
|
|
8
|
-
<a href="https://github.com/testdouble/standard"><img src="https://img.shields.io/badge/code_style-standard-brightgreen.svg" alt="Ruby Style Guide">
|
|
9
|
-
<a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg" alt="Code style: Prettier">
|
|
10
|
-
</div>
|
|
4
|
+
<h3>🚨 These are legacy docs for Lookbook v0.9.x releases! 🚨</h3>
|
|
5
|
+
<p>For docs on the <strong>latest Lookbook v1.x</strong> releases see the <a href="https://lookbook.build">Lookbook docs site</a> or the <a href="https://github.com/allmarkedup/lookbook">main branch</a> of this repo.</p>
|
|
11
6
|
</div>
|
|
12
7
|
|
|
13
8
|
---
|
|
14
9
|
|
|
15
10
|
<div align="center">
|
|
16
|
-
|
|
11
|
+
|
|
12
|
+
<p><a href="#installing">Installing</a> • <a href="#previews">Previews</a> • <a href="#pages">Pages</a> • <a href="#deployment">Deployment</a> • <a href="#config">Config</a></p>
|
|
17
13
|
</div>
|
|
18
14
|
|
|
19
15
|
---
|
|
@@ -26,24 +22,8 @@ Lookbook uses [RDoc/Yard-style comment tags](#annotating-preview-files) to exten
|
|
|
26
22
|
|
|
27
23
|

|
|
28
24
|
|
|
29
|
-
### Features
|
|
30
|
-
|
|
31
|
-
- Tree-style navigation menu with live search/filter
|
|
32
|
-
- Resizable preview window for responsive testing
|
|
33
|
-
- Highlighted preview source code and HTML output
|
|
34
|
-
- Auto-updating UI when component or preview files are updated _(Rails v6.0+ only)_
|
|
35
|
-
- Use comment tag annotations for granular customisation of the preview experience
|
|
36
|
-
- Fully compatible with standard the ViewComponent preview system
|
|
37
|
-
- In-browser live-editable preview parameters (similar to basic Storybook Controls/Knobs)
|
|
38
|
-
- [**Experimental**] Markdown-powerered documentation pages with embeddable previews
|
|
39
|
-
|
|
40
|
-
## Lookbook demo
|
|
41
|
-
|
|
42
|
-
If you want to have a quick play with Lookbook, the easiest way is to [give the demo app](https://github.com/allmarkedup/lookbook-demo) a spin. It's a basic Rails/ViewComponent app with a few test components included to tinker with.
|
|
43
25
|
|
|
44
|
-
**Online demo: https://lookbook-demo-app.herokuapp.com/lookbook**
|
|
45
26
|
|
|
46
|
-
If you'd rather dig in a bit more and run the demo app locally, the [demo repo](https://github.com/allmarkedup/lookbook-demo) contains instructions on how to get it up and running.
|
|
47
27
|
|
|
48
28
|
## Installing
|
|
49
29
|
|
|
@@ -53,7 +33,7 @@ Add Lookbook to your `Gemfile` somewhere **after** the ViewComponent gem. For ex
|
|
|
53
33
|
|
|
54
34
|
```ruby
|
|
55
35
|
gem "view_component"
|
|
56
|
-
gem "lookbook"
|
|
36
|
+
gem "lookbook", "~> 0.9.7"
|
|
57
37
|
```
|
|
58
38
|
|
|
59
39
|
### 2. Mount the Lookbook engine
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
module Lookbook
|
|
2
2
|
class ApplicationController < ActionController::Base
|
|
3
|
+
if respond_to?(:content_security_policy)
|
|
4
|
+
content_security_policy false, if: -> { Rails.env.development? }
|
|
5
|
+
end
|
|
6
|
+
|
|
3
7
|
protect_from_forgery with: :exception
|
|
4
8
|
|
|
5
9
|
helper Lookbook::ApplicationHelper
|
data/lib/lookbook/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lookbook
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mark Perkins
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-09-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actioncable
|