configuration static method
wayfinder.json with one entry, keyed profile, that applies the
package at path of git at ref to bundle, declaring
vocabulary.
Implementation
static String configuration({
required String profile,
required String git,
required String ref,
required String path,
String bundle = KnowledgeSeeds.bundle,
ProjectVocabulary vocabulary = ProjectVocabulary.none,
}) => const WayfinderConfigEncoder().convert({
'version': 1,
'profiles': {
profile: {
'source': WayfinderProfileSource(
git: git,
ref: ref,
path: path,
).toJson(),
'applies_to': [WayfinderProfileBinding.explicitBundlePath(bundle)],
...vocabulary.toJson(),
},
},
});