-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
306 lines (237 loc) · 11.5 KB
/
settings.py
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
#!/usr/bin/env python
# coding: utf-8
## settings.example.py
## You must configure the authentication settings and one collection key.
verbosity = 0
# Print more or less output during execution
# -2: print errors
# -1: print warnings and errors
# 0: print progress information, warnings and errors
# 1: print log information and everything else.
#### AUTHENTICATION AND COLLECTIONS ######################################
group_collection(id='4138285')
# user_collection(id='7365954', collection='', api_key='')
# group_collection(id, api_key=None, collection=None, top_level=False)
# user_collection(id, api_key=None, collection=None, top_level=False)
#
# Use group_collection for a group library, user_collection for a
# (private) user library.
# ID specifies the group or user ID.
#
# You may find your user ID for the library_id setting under
# "Settings -> Feeds/API":
# https://www.zotero.org/settings/keys
#
# You may find your library ID by selecting the group on the Zotero
# website, and then choose "Group Settings". The URL in your browser
# window will then show you a six-digit number,
# e.g., .../groups/110233/settings
#
# api_key
# The secret key provided by Zotero.
# If you want to retrieve non-public data from Zotero, you'll need a
# Zotero account (or group) at zotero.org. Log into your account,
# access the Settings page on the Zotero site and create an private
# API key (under "Settings -> Feeds/API"). For the key, check
# "Allow library access". This key is used in the api_key setting.
#
# collection
# ID of the top-level collection to be included.
# All sub-collections under this collection will be imported.
# If not given (None), all available collections will be included.
#
# top_level
# If true, then the collection given be included as a level.
# Otherwise (default, False), sub-collections and items will be
# included directly.
#### COLLECTIONS TO BE RENDERED ##########################################
# In your library, you may create a collection, for example, "website".
# Within it, create titled sub-collections, like so:
# toRead
# thesis
# website
# 10 Selected Works
# 20 Journal Articles
# 30 Conference Proceedings
# 40 Theses
# Now, find the IDs of the top-level collection called "website".
# When you click on it on the Zotero website, your browser will show you
# an alphanumeric key in the URL, e.g., items/collectionKey/FCQM2AY6.
# The portion 'FCQM2AY6' is what you would use in 'collection' for
# the user_collection or group_collection directives.
# To cause zot_bib_web to format a sub-collection in special ways, you
# may add some statements here. For these statements, supply either
# the name (title) or the key associated with a collection.
# exclude_collection (C)
# Remove sub-collection C.
# rename_collection (C, N)
# Rename collection C to N.
# This may be used to merge collections by giving them the same name.
rename_collection('2JZLUPN3', 'Empirical Study/Survey (Top-Pub)')
rename_collection('LIVPLX9I', 'Technical Paper (Top-Pub)')
rename_collection('N2ECMK3U', 'Empirical Study/Survey (Publication)')
rename_collection('S5Q9QJ76', 'Technical Paper (Publication)')
rename_collection('BFR7CRAH', 'Empirical Study/Survey (Preprint)')
rename_collection('TCA7RMU6', 'Technical Paper (Preprint)')
hidden_collection('websites')
# hidden_collection (C)
# Hide sub-collection C. We still add a shortcut at the top
# to unhide its contents if they are available elsewhere.
# You may also use a '-' before the name of the collection in the library.
# short_collection (C)
# Short mode. This sub-collection will be shown using titles,
# journal and years only, which can then be expanded. Journal or
# conference titles can be kept short. Specify the "journal abbr or
# "conference title" fields, or a short "note" if necessary. You may
# want to copy bibliographic items from other parts of the bibliography
# into this sub-collection.
# You may also use a '*' before the name of the collection in the library.
# short_collection("Selected Works")
# featured_collection (C)
# Feature this: Extract this sub-collection and show at the beginning of
# the bibliography, regardless of whether the rest of the bibliography is
# sorted by, e.g., year, and ignores the collections otherwise. In the
# collection shown below, it prevents "in review" articles to show up as
# regular journal articles (which might give the impression you're
# taking credit for not-yet-reviewed/published material!)
# You may also use a '!' before the name of the collection in the library.
# featured_collection("Selected Works")
# misc_collection (C)
# Show the items in this collection, but exclude those items that
# are already included in another regular collection. A regular
# collection is one that is not hidden, not short, and not featured.
# This is useful to add a "Miscellaneous" category at the end for
# additional items without duplicating anything.
# You may also use a '&' before the name of the collection in the library.
# misc_collection("Miscellaneous")
#### SPECIAL OPTIONS: STYLE ##############################################
# Special settings - configure only if needed.
# The sort_criteria determine the structure of the bibliography.
# Allowable values: 'type' (category of pub., e.g., journal article),
# 'date' (full date)
# 'year' (year of publication)
# 'collection' (the subcollection the article is placed in).
# Collection works best at the beginning of the list.
# add - in front of the field name to sort in descending order
# (e.g., -date will show the newest entries first).
# sort_criteria = ['collection','-date'] # collection, then by date.
sort_criteria = ['-date','collection','type'] # by type, then by date ("issued").
#sort_criteria = ['-year','type'] # Ordered by year, then type.
titlestring = 'Awesome BOSE Research' # This website collects research artifacts, preprints and publications useful for Blockchain-oriented software engineering research (BOSE).
""" bibliography title """
show_top_section_headings = True
""" show section headings for the primary search criterion"""
bib_style = 'apa'
""" bibliography style format (e.g., 'apa' or 'mla') - Any valid CSL style
in the Zotero style repository"""
#### SPECIAL OPTIONS: HTML AND FILE CONFIGURATION ########################
# Special settings - configure only if needed.
write_full_html_header = True
# False to not output HTML headers.
# In this case, expect a file in UTF-8 encoding.
stylesheet_url = "site/style.css"
# If set and write_full_html_header is True,
# link to this style sheet (a URL)
outputfile = 'index.html'
# relative or absolute path name of output file
show_search_box = True
# show a Javascript/JQuery based search box to filter pubs by keyword.
# Must define jquery_path.
jquery_path = "site/jquery.min.js"
# path to jquery file on the server
# jquery_path = "../wp-includes/js/jquery/jquery.js" # wordpress location
# Show categories at the top of the bibliography for quick filtering
# 'collection', 'type', 'year', 'venue', 'venue_short', or 'tags'
show_shortcuts = ['collection']
show_shortcuts += [shortcut('tags', ["Smart Contract", "Vulnerability"])]
# To add specific rather than all available values for a field, use the
# shortcut function as follows.
# Note that for year, we support ranges.
# In the following, we tell the program
# to display despific entries for "year":
# show_shortcuts += [shortcut('year', [2017,2016,2015,2014,2013,
# "2008-2012","2005-2008","-2004"])]
# Show the venues (conferences, journals) where we've published.
# the "shortcut" function offers some options:
# sortDir="asc" or "desc" instructs the program to sort the entries.
# (Default is automatic.)
# sortBy indicates that we'd like to sort by how many items there are
# in each category
# (Default is to sort by name. 'count' is the only other value possible
# at this time.)
# topN says to display only the 5 biggest categories.
# If there are several categories ranked 5, we're showing all of them.
# E.g. topN=3 shows: WIFN(8) FJJ(8) CLAM(5) CLEE(5)
# (Default is to show all for which bibliographic entries exist in the data.)
# show_shortcuts += [shortcut('venue_short', sortDir='desc',
# sortBy='count', topN=5)]
# To add arbitrary search terms:
# show_shortcuts += [shortcut('keyword',
# values=["Smart Contract"])]
# define some search terms
number_bib_items = False
# show bibliographic items as numbered, ordered list
show_copy_button = True
# show clipbaord copy button. Must define jquery_path.
clipboard_js_path = "site/clipboard.min.js"
# path to file on server
copy_button_path = "site/clippy.svg"
# path to file on server
# Attachments
file_outputdir = 'files/'
# Location to save attached files.
file_output_path = "files/"
# relative URL on server, corresponding to file_outputdir
# unconditionally show these items if they are available for the item
# (don't set to obtain defaults)
# show_links = ['abstract', 'url', 'bib', 'wikipedia',
# 'ris', 'cite.apa', 'file']
#
# URL - the URL field for the item; button is displayed as
# PDF/DOC/PS/LINK as detected.
# file - each file associated with the item in the library.
# Files are saved to file_outputdir and expected to appear
# on the web server in file_output_path (which see)
# Button is displayed as PDF/DOC/PS/LINK as detected.
# RIS or EndNote - download of the file containing the bibliographic data
# BIB - bibliographic data for LaTeX
# Wikipedia - bibliographic data in Wikipedia format
# Abstract - the abstract
# cite.APA - Citation in APA format
# cite.MLA - Citation in MLA format
# cite.<XXX> - Citation in <XXX> format (as supported by Zotero)
# omit_COinS = False
# True to omit COINS metadata; useful to save space, but not recommended.
# no_cache = True
# True means do not use cache;
# retrieve items from Zotero database every time (slow)
# smart_selections = True
# Prevent viewers from selecting "bib", "pdf" etc
# for easier copy/paste of bibliography
# (don't set to obtain default, which is True)
# Output in this language
language_code = 'en'
# Define labels for article types and their ordering
# types may occur in libraryCatalog or itemType
# use libraryCatalog to override it in special cases
# (e.g., archival Conference papers)
# sortkeyname_order['en']['type'] = [('journalArticle', 'Journal Articles'),
# ('archivalConferencePaper', 'Archival Conference Papers'),
# ('conferencePaper', 'Conference and Workshop Papers'),
# ('book','Books'),
# ('bookSection', 'Book Chapters'),
# ('edited-volume', "Edited Volumes"),
# ('thesis', 'Theses'),
# ('report', 'Tech Reports'),
# ('attachment', 'Document'),
# ('webpage', 'Web Site'),
# ('presentation', 'Talks')]
# Translations for links
# Provide additional languages like so:
# link_translations['de'] = {'abstract':'Abstrakt', 'pdf':'Volltext'}
#### SPECIAL OPTIONS: WORDPRESS ##############################
# Special settings - configure only if needed.
# These settings are used by push.py
push_wordpress(url='https://example.com/wp/xmlrpc.php', blogID=0,
user='pubpushername', password='pass', postID=200)
infile = "zotero-bib.html"