configuration static method

String configuration({
  1. required String profile,
  2. required String git,
  3. required String ref,
  4. required String path,
  5. String bundle = KnowledgeSeeds.bundle,
  6. ProjectVocabulary vocabulary = ProjectVocabulary.none,
})

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(),
    },
  },
});