7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/glossarist/gcr_package_definition.rb', line 7
def self.definition(concept_document_class: V3::ConceptDocument)
Lutaml::Store::PackageDefinition.new(
name: :gcr,
metadata_model: GcrMetadata,
metadata_file: "metadata.yaml",
) do |pkg|
pkg.model(
model: concept_document_class,
dir: "concepts",
layout: :grouped,
key: :id,
default_format: :yamls,
serializer: ConceptStore::ConceptDocumentSerializer.new,
)
pkg.model(
model: RegisterData,
file: "register.yaml",
key: :key,
default_format: :yaml,
)
pkg.model(
model: BibliographyData,
file: "bibliography.yaml",
key: :shortname,
default_format: :yaml,
)
pkg.asset("images", type: :directory)
end
end
|