Module: Jekyll::Geolexica::Configuration
- Included in:
- ConceptSerializer, ConceptsGenerator, Glossary, ImagesGenerator, MetaPagesGenerator
- Defined in:
- lib/jekyll/geolexica/configuration.rb
Instance Method Summary collapse
- #bibliography_path ⇒ Object
- #concepts_glob ⇒ Object
- #glossary_format ⇒ Object
- #glossary_path ⇒ Object
- #images_metadata_path ⇒ Object
- #images_path ⇒ Object
- #localized_concepts_path ⇒ Object
- #output_html? ⇒ Boolean
- #output_json? ⇒ Boolean
- #output_jsonld? ⇒ Boolean
- #output_tbx? ⇒ Boolean
- #output_turtle? ⇒ Boolean
- #output_yaml? ⇒ Boolean
- #report_issue_url ⇒ Object
- #suggest_translation_url ⇒ Object
- #term_languages ⇒ Object
Instance Method Details
#bibliography_path ⇒ Object
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.("#{glossary_path}/bibliography.yaml", site.source) end |
#concepts_glob ⇒ Object
7 8 9 10 |
# File 'lib/jekyll/geolexica/configuration.rb', line 7 def concepts_glob glob_string = glossary_config["concepts_glob"] File.(glob_string, site.source) end |
#glossary_format ⇒ Object
24 25 26 |
# File 'lib/jekyll/geolexica/configuration.rb', line 24 def glossary_format glossary_config["format"] end |
#glossary_path ⇒ Object
19 20 21 22 |
# File 'lib/jekyll/geolexica/configuration.rb', line 19 def glossary_path glob_string = glossary_config["glossary_path"] File.(glob_string, site.source) end |
#images_metadata_path ⇒ Object
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.("#{glossary_path}/images_metadata.yaml", site.source) end |
#images_path ⇒ Object
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.("#{glossary_path}/images", site.source) end |
#localized_concepts_path ⇒ Object
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.(path, site.source) end |
#output_html? ⇒ Boolean
61 62 63 |
# File 'lib/jekyll/geolexica/configuration.rb', line 61 def output_html? glossary_config["formats"].include?("html") end |
#output_json? ⇒ Boolean
65 66 67 |
# File 'lib/jekyll/geolexica/configuration.rb', line 65 def output_json? glossary_config["formats"].include?("json") end |
#output_jsonld? ⇒ 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
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
77 78 79 |
# File 'lib/jekyll/geolexica/configuration.rb', line 77 def output_turtle? glossary_config["formats"].include?("turtle") end |
#output_yaml? ⇒ Boolean
81 82 83 |
# File 'lib/jekyll/geolexica/configuration.rb', line 81 def output_yaml? glossary_config["formats"].include?("yaml") end |
#report_issue_url ⇒ Object
53 54 55 |
# File 'lib/jekyll/geolexica/configuration.rb', line 53 def report_issue_url glossary_config["report_issue_url"] end |
#suggest_translation_url ⇒ Object
49 50 51 |
# File 'lib/jekyll/geolexica/configuration.rb', line 49 def suggest_translation_url glossary_config["suggest_translation_url"] end |
#term_languages ⇒ Object
57 58 59 |
# File 'lib/jekyll/geolexica/configuration.rb', line 57 def term_languages glossary_config["term_languages"] end |