EDDI
EDDI copied to clipboard
Auto-Generate Variables.md
What happens now
- Variables.md is manually written.
What I'd like to happen
- Auto-generate variables.md
- Document variable types (string, object, integer, decimal, boolean, etc.)
- Document various objects that allow users to obtain invariant names
- Document the possible values of localized and invariant names
- Syntax highlighting should include and distinguish object properties
How it can happen
- Rewrite code to generate Variables.md dynamically. Either it will need to be generated via GeneratorTests.cs and will need to include all possible localizations of all possible values or it will need to be generated at point of use (in ScriptResolver.cs?) to report values for a specific culture (in which case Variables.md on the wiki would be limited to including just the English names?)
- This part is easily done if generated dynamically via MetaVariables.cs
- This part is easily done if generated dynamically via MetaVariables.cs
- Probably best done by modifying MetaVariables.cs to iterate through objects inheriting from
ResourceBasedLocalizedEDName<T>
, obtain eachbasename
property, and obtaining localized values from thosebasename
properties. - Could perhaps be done using MetaVariables.cs
EDDI Version
4.0.1