Module: Jekyll::Geolexica::Configuration

Included in:
ConceptSerializer, ConceptsGenerator, Glossary, ImagesGenerator, MetaPagesGenerator
Defined in:
lib/jekyll/geolexica/configuration.rb

Instance Method Summary collapse

Instance Method Details

#bibliography_pathObject



42
43
44
45
46
47
# File 'lib/jekyll/geolexica/configuration.rb', line 42

def bibliography_path
  glossary_path = glossary_config["glossary_path"]
  return nil if glossary_path.nil? || glossary_path.empty?

  File.expand_path("#{glossary_path}/bibliography.yaml", site.source)
end

#concepts_globObject



7
8
9
10
# File 'lib/jekyll/geolexica/configuration.rb', line 7

def concepts_glob
  glob_string = glossary_config["concepts_glob"]
  File.expand_path(glob_string, site.source)
end

#glossary_formatObject



24
25
26
# File 'lib/jekyll/geolexica/configuration.rb', line 24

def glossary_format
  glossary_config["format"]
end

#glossary_pathObject



19
20
21
22
# File 'lib/jekyll/geolexica/configuration.rb', line 19

def glossary_path
  glob_string = glossary_config["glossary_path"]
  File.expand_path(glob_string, site.source)
end

#images_metadata_pathObject



35
36
37
38
39
40
# File 'lib/jekyll/geolexica/configuration.rb', line 35

def 
  glossary_path = glossary_config["glossary_path"]
  return {} if glossary_path.nil? || glossary_path.empty?

  File.expand_path("#{glossary_path}/images_metadata.yaml", site.source)
end

#images_pathObject



28
29
30
31
32
33
# File 'lib/jekyll/geolexica/configuration.rb', line 28

def images_path
  glossary_path = glossary_config["glossary_path"]
  return nil if glossary_path.nil? || glossary_path.empty?

  File.expand_path("#{glossary_path}/images", site.source)
end

#localized_concepts_pathObject



12
13
14
15
16
17
# File 'lib/jekyll/geolexica/configuration.rb', line 12

def localized_concepts_path
  path = glossary_config["localized_concepts_path"]
  return nil if path.nil? || path.empty?

  File.expand_path(path, site.source)
end

#output_html?Boolean

Returns:

  • (Boolean)


61
62
63
# File 'lib/jekyll/geolexica/configuration.rb', line 61

def output_html?
  glossary_config["formats"].include?("html")
end

#output_json?Boolean

Returns:

  • (Boolean)


65
66
67
# File 'lib/jekyll/geolexica/configuration.rb', line 65

def output_json?
  glossary_config["formats"].include?("json")
end

#output_jsonld?Boolean

Returns:

  • (Boolean)


69
70
71
# File 'lib/jekyll/geolexica/configuration.rb', line 69

def output_jsonld?
  glossary_config["formats"].include?("json-ld")
end

#output_tbx?Boolean

Returns:

  • (Boolean)


73
74
75
# File 'lib/jekyll/geolexica/configuration.rb', line 73

def output_tbx?
  glossary_config["formats"].include?("tbx-iso-tml")
end

#output_turtle?Boolean

Returns:

  • (Boolean)


77
78
79
# File 'lib/jekyll/geolexica/configuration.rb', line 77

def output_turtle?
  glossary_config["formats"].include?("turtle")
end

#output_yaml?Boolean

Returns:

  • (Boolean)


81
82
83
# File 'lib/jekyll/geolexica/configuration.rb', line 81

def output_yaml?
  glossary_config["formats"].include?("yaml")
end

#report_issue_urlObject



53
54
55
# File 'lib/jekyll/geolexica/configuration.rb', line 53

def report_issue_url
  glossary_config["report_issue_url"]
end

#suggest_translation_urlObject



49
50
51
# File 'lib/jekyll/geolexica/configuration.rb', line 49

def suggest_translation_url
  glossary_config["suggest_translation_url"]
end

#term_languagesObject



57
58
59
# File 'lib/jekyll/geolexica/configuration.rb', line 57

def term_languages
  glossary_config["term_languages"]
end