Skip to content

Commit

Permalink
auto generate descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
KonnorRogers committed Oct 14, 2023
1 parent 2eca84f commit b53fe8a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ gem "asset_mapper", "~> 1.0"

gem "rack-cors", "~> 2.0"

gem "custom_elements_manifest_parser", "~> 0.2.1"
gem "custom_elements_manifest_parser", "~> 0.2.4"

gem "ruby-lsp", "~> 0.11.1", :group => :development, require: false
gem "yard", "~> 0.9.34", :group => :development
Expand Down
4 changes: 2 additions & 2 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ GEM
bridgetown (>= 1.2.0.beta2, < 2.0)
colorator (1.1.0)
concurrent-ruby (1.2.2)
custom_elements_manifest_parser (0.2.2)
custom_elements_manifest_parser (0.2.4)
dry-struct (~> 1.0)
dry-types (~> 1.0)
dry-validation (~> 1.0)
Expand Down Expand Up @@ -228,7 +228,7 @@ DEPENDENCIES
asset_mapper (~> 1.0)
bridgetown (~> 1.3)
bridgetown-quick-search (~> 2.0)
custom_elements_manifest_parser (~> 0.2.1)
custom_elements_manifest_parser (~> 0.2.4)
debug (~> 1.8)
nokogiri (~> 1.13)
puma (~> 5.6)
Expand Down
4 changes: 4 additions & 0 deletions docs/plugins/builders/component_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ def build
metadata = elements[component_name]
next if metadata.nil?

resource.data.merge!({
"description" => metadata.description
})

slots = metadata.slots
attributes = metadata.members.select { |member| member.attributes[:attribute] }
events = metadata.events
Expand Down
3 changes: 0 additions & 3 deletions docs/src/_documentation/components/light-preview.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
---
title: <light-preview>
permalink: /components/light-preview/
description: |
A lightweight code previewing component designed to show source code side by side with
a demo of your code in the browser.
---

## Typical Usage
Expand Down

0 comments on commit b53fe8a

Please sign in to comment.