-
Notifications
You must be signed in to change notification settings - Fork 101
/
defaults.rb
108 lines (91 loc) · 4.14 KB
/
defaults.rb
1
2
3
4
5
6
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
module Jekyll
class Scholar
@defaults = {
# Style used for citations and bibliographies
'style' => 'apa',
# Sets languages used in bibliography
'locale' => 'en',
# Keys used to sort bibliography
'sort_by' => 'none',
# Order used to sort biobliography
'order' => 'ascending',
'group_by' => 'none',
'group_order' => 'ascending',
# HTML tags used for bibliography group names
'bibliography_group_tag' => 'h2,h3,h4,h5',
# HTML tag used for list of bibliography entries
'bibliography_list_tag' => 'ol',
# HTML tag used for individual bibliography entries
'bibliography_item_tag' => 'li',
# Attributes applied to HTML tag for list of bibliography entries
'bibliography_list_attributes' => {},
# Attributes applied to HTML tag for bibliography entries
'bibliography_item_attributes' => {},
# Name of folder references files are stored in
'source' => './_bibliography',
# Name of default references file
'bibliography' => 'references.bib',
# The repository folder with your entries' attachemnts, slides, etc.
'repository' => nil,
# Delimiter for files in repositories;
# this character may not be part of your entry keys!
'repository_file_delimiter' => '.',
'bibtex_options' => { :strip => false, :parse_months => true },
'bibtex_filters' => [ :smallcaps, :superscript, :italics, :textit, :lowercase, :textregistered, :tiny, :latex ],
'raw_bibtex_filters' => [ ],
'bibtex_skip_fields' => [ :abstract, :month_numeric ],
'bibtex_quotes' => ['{', '}'],
'replace_strings' => true,
'join_strings' => true,
# Remove duplicate entries from bibliography
'remove_duplicates' => false,
'details_dir' => 'bibliography',
'details_layout' => 'bibtex.html',
'details_link' => 'Details',
# 'details_permalink': URL template for generating the filenames of the details pages.
#
# Example: if we had a citation key 'ruby':
# '/:details_dir/:year/:key:extension' would produce:
# '/bibliography/2008/ruby.html' if global permalinks end in .html
# '/bibliography/2008/ruby/index.html' if global permalinks end in "/" or are set to "pretty"
#
# Valid template parameters:
# ":details_dir" The value of the details_dir field in the scholar config
# ":key" The bibtex citation key.
# ":doi" The DOI. If the DOI is missing or blank, this returns the citation key.
# ":extension" Either of ".html" or "/index.html" depending upon the global permalink setting.
# Template parameters can also include any key defined in the bibtex file, e.g. ":year", ":title", etc.
# Bibtex keys such as 'title' are slugified in the same way as Jekyll treats blog post titles.
'details_permalink' => '/:details_dir/:key:extension',
'bibliography_class' => 'bibliography',
'bibliography_template' => '{{reference}}',
'reference_tagname' => 'span',
'missing_reference' => '(missing reference)',
'details_link_class' => 'details',
'query' => '@*',
'cite_class' => 'citation',
'type_names' => {
'article' => 'Journal Articles',
'book' => 'Books',
'incollection' => 'Book Chapters',
'inproceedings' => 'Conference Articles',
'thesis' => 'Theses',
'mastersthesis' => 'Master\'s Theses',
'phdthesis' => 'PhD Theses',
'manual' => 'Manuals',
'techreport' => 'Technical Reports',
'misc' => 'Miscellaneous',
'unpublished' => 'Unpublished',
},
'type_aliases' => {
'phdthesis' => 'thesis',
'mastersthesis' => 'thesis',
},
'type_order' => [],
'month_names' => nil
}.freeze
class << self
attr_reader :defaults
end
end
end