From 033cd4f31d91dc0fb32b6ac77f4380a572703f25 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 28 Jan 2019 11:34:11 +0000 Subject: [PATCH] DEV: Include "_learn_more" key in theme `about.json` This does not serve any technical purpose. It is there to provide a signpost for any user/developer that wants to know what to do with a theme archive. --- app/models/theme.rb | 2 ++ spec/components/theme_store/tgz_exporter_spec.rb | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/models/theme.rb b/app/models/theme.rb index 39c2b9a44fc..0abbbc7cc99 100644 --- a/app/models/theme.rb +++ b/app/models/theme.rb @@ -454,6 +454,8 @@ class Theme < ActiveRecord::Base end end + meta[:_learn_more] = "https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966" + end end end diff --git a/spec/components/theme_store/tgz_exporter_spec.rb b/spec/components/theme_store/tgz_exporter_spec.rb index 12dd7634b23..eb3104e3c32 100644 --- a/spec/components/theme_store/tgz_exporter_spec.rb +++ b/spec/components/theme_store/tgz_exporter_spec.rb @@ -88,7 +88,8 @@ describe ThemeStore::TgzExporter do "header_background": "1E1E1E", "tertiary": "858585" } - } + }, + "_learn_more": "https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966" ) expect(File.read("common/body_tag.html")).to eq("testtheme1")