Skip to content

Commit

Permalink
Converting arguments.yml to arguments.json (#1392)
Browse files Browse the repository at this point in the history
* Converting arguments.yml to arguments.json

Co-authored-by: Katie Langerman <langermank@github.com>

* Update nav.yml

* Create tricky-plants-argue.md

Co-authored-by: Katie Langerman <langermank@github.com>
  • Loading branch information
jonrohan and langermank authored Sep 21, 2022
1 parent 94c3164 commit 1f424aa
Show file tree
Hide file tree
Showing 5 changed files with 2,044 additions and 1,360 deletions.
5 changes: 5 additions & 0 deletions .changeset/tricky-plants-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/view-components": patch
---

Removing `static/arguments.yml` and replacing with `static/arguments.json`. The data output doesn't change.
4 changes: 2 additions & 2 deletions lib/tasks/docs.rake
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ namespace :docs do
raise
end

File.open("static/arguments.yml", "w") do |f|
f.puts YAML.dump(args_for_components)
File.open("static/arguments.json", "w") do |f|
f.puts JSON.pretty_generate(args_for_components)
end

# Build system arguments docs from BaseComponent
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"url": "https://github.com/primer/view_components/issues"
},
"files": [
"static/**/*",
"app/assets/**/*",
"app/components/primer/**/*.js",
"app/components/primer/**/*.css",
Expand Down
Loading

0 comments on commit 1f424aa

Please sign in to comment.