-
Notifications
You must be signed in to change notification settings - Fork 4
Description
The new addons project will give users a lot of flexibility: we will eventually allow them to use the JSON response to build anything they want on the frontend (see readthedocs/addons#13) and also because they could also inject the web-components by hand.
However, for the most common use case (no "development configuration") we still want to provide a way to customize some of the addons like "Default filter" on search, the root_selector
for docdiff and others. I'm thinking all these things could be a page (or Addons subpages -- like one per addon: Addons -> Search
) with a simple form on the project Admin for now.
Things we want to expose to configure currently (there will be more, sure):
- Docdiff:
- enabled/disabled
root_selector
: tells Docdiff the selector to perform the diff against the two versions- additions and/or deletions (see Docdiff: configure deletions/additions addons#101)
- External version warning:
- enabled/disabled
- Non latest version warning:
- enabled/disabled
- Javascript logic to make the comparison (see Notifications: logic behind non-latest version addons#71)
- Search
- enabled/disabled
- Default filter (e.g.
project: test-builds
) - Filters (e.g. "Search only on this project", "Include subprojects", etc)
- Fuzzy (see Search: fuzzy checkbox UI element addons#84)
It may be too soon to start working on this development, but I want to start the conversation to understand if we all are in the same page.
I'd like to start collecting opinions here because there are different ideas around how to do this and I'd like to think more deeply on them. We can always say: "These are the defaults and there is no way to change them unless you inject the web-components by yourself and pass attributes", like: <readthedocs-search default-filter="project: test-builds"></readthedocs-search>
, which is totally valid as well (in particular at this stage)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status