mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 07:41:43 +08:00
FEATURE: Support additional metadata in theme about.json (#6944)
New `about.json` fields (all optional): - `authors`: An arbitrary string describing the theme authors - `theme_version`: An arbitrary string describing the theme version - `minimum_discourse_version`: Theme will be auto-disabled for lower versions. Must be a valid version descriptor. - `maximum_discourse_version`: Theme will be auto-disabled for lower versions. Must be a valid version descriptor. A localized description for a theme can be provided in the language files under the `theme_metadata.description` key The admin UI has been re-arranged to display this new information, and give more prominence to the remote theme options.
This commit is contained in:
@ -10,7 +10,8 @@ const components = [1, 2, 3, 4, 5].map(num =>
|
||||
Theme.create({
|
||||
name: `Child ${num}`,
|
||||
component: true,
|
||||
parentThemes: [themes[num - 1]]
|
||||
parentThemes: [themes[num - 1]],
|
||||
parent_themes: [1, 2, 3, 4, 5]
|
||||
})
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user