Skip to content

Investigate reducing config in site.json without repeating in plugins and pluginsContext #930

@crphang

Description

@crphang

Tell us about your environment

  • MarkBind Version:

Master

Current Usage To Add plugins

To add plugins, users have to add two keys to site.json, plugins and pluginsContext as described in the userGuide:

image

Preferred author experience

As an author, I would only want to type a single key, preferably as follows:

"plugins": {
    "algolia": {
    	"input": "Input for Plugin 1"
    },
    "googleAnalytics": {
    	"data": "Data for Plugin 2"
    },
  }
}

The benefit of this are:

  1. Harder to make mistakes
  2. Less things to type to achieve what I want

If necessary, we could always get plugin names from plugins.keys() to read from the plugin directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-AuthorUsabilitys.UnderDiscussionThe team will evaluate this issue to decide whether it is worth adding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions