Supplemental UI should not depend on environment variables
The supplemental UI should not rely on environment variables set by the user to enable. If the user has configured the supplemental UI and registered the extension, those features of the UI should activate automatically.
If we do want to give the user a single switch that will turn off the search elements in the UI when the extension is activated, then it's the extension that should set / manage these environment variables. And I think we can limit it to a single variable (ANTORA_LUNR_EXTENSION_ENABLED
).
In the future, Antora may have other ways to pass data to the UI. For now, it needs to be environment variables. Though these are not real environment variables, but rather playbook.env
vars, which can isolated from the user's system.
Edited by Dan Allen