This repository has been archived by the owner on May 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
148 lines (121 loc) · 5.61 KB
/
config.toml
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
[ipfs]
# The multiaddr of the API server for your IPFS node.
api = "/ip4/127.0.0.1/tcp/5001"
# Use a public gateway for IPFS URLs in the generated bibtex file. If this
# is false, ipfs:// URLs will be generated instead.
use-gateway = true
# The public subdomain gateway to use for URLs in the generated bibtex
# file.
gateway = "dweb.link"
# The CAR version to use. Supported values are "1" and "2".
car-version = "1"
[archive]
# A template which determines the file name of the archived source content
# in IPFS. This is a golang `text/template` template which is passed the
# contents of the bibtex entry and returns the file name. Functions
# provided by the sprig library are available in the template. The
# following fields are available in the template:
#
# .Original - The original file name, if there is one
# .CiteName - The bibtex entry cite name (e.g. aspelmeyer_measured_2009)
# .Type - The bibtex entry type (e.g. article)
# .Fields - A map of fields that appear in the bibtex entry
# .Extension - A file extension based on the media type (MIME type), including the leading dot
file-name = "{{ if not (empty .Original) }}{{ .Original }}{{ else }}source{{ .Extension }}{{ end }}"
# A template which determines the directory name of the archived source
# content in IPFS. This is a golang `text/template` template which is
# passed the contents of the bibtex entry and returns the directory name.
# Functions provided by the sprig library are available in the template.
# The following fields are available in the template:
#
# .CiteName - The bibtex entry cite name (e.g. aspelmeyer_measured_2009)
# .Type - The bibtex entry type (e.g. article)
# .Fields - A map of fields that appear in the bibtex entry
# .Ordinal - A unique integer for cases where two directories have the same name. This is 0 for the first occurrence, 1 for the second, etc.
directory-name = "{{ .CiteName }}"
# If the source URL points to a web page, the tool can search for embedded
# documents in the page. This is a list of the media types (MIME types) of
# embedded content to search for. To disable this feature, leave this list
# empty.
embedded-types = [
"application/pdf",
]
# The user agent to use when downloading content from the legacy web.
user-agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36"
# Find open access content on Unpaywall.
[unpaywall]
# Enable searching for open access content on Unpaywall.
enabled = true
# Unpaywall requires an email address be included in API requests. This is
# the email that will be used in requests to the Unpaywall API.
email = "[email protected]"
# Take snapshots of web pages using monolith.
[monolith]
# Enable taking snapshots of web pages using monolith.
enabled = true
# The path to the monolith binary.
path = "monolith"
# Allow invalid x.509 (TLS) certificates.
allow-insecure = false
# Include audio sources.
include-audio = true
# Inlclude CSS.
include-css = true
# Include fonts.
include-fonts = true
# Include frames and iframes.
include-frames = true
# Include images.
include-images = true
# Include JavaScript.
include-js = true
# Include video sources.
include-video = true
# Include timestamp and source information.
include-metadata = true
[snapshot]
# Include web snapshots when pulling attachments from a Zotero library.
zotero-attachment = true
# Include web snapshots when getting local files referenced in a Bibtex
# file.
local-file = true
# IPFS pinning services to archive sources to.
#[[pins]]
# The API endpoint for the pinning service.
#endpoint = "https://api.pinata.cloud/psa"
# The bearer token to authenticate with the pinning service.
#token = ""
# Resolve sources through a link resolver.
#[[resolvers]]
# A list of URL schemes to try in order. Each scheme is a golang
# `text/template` template which returns the proxied URL. If a template
# evaluates to an empty string, it is ignored. Functions provided by the
# sprig library are available in the template. The following fields are
# available in the template:
#
# .Doi - The DOI of the entry, excluding the doi: or https://doi.org/ prefix (e.g. 10.1038/nphys1170)
# .Url.Hostname - The hostname of source URL (e.g. example.com)
# .Url.Path - The path of the source URL, excluding the leading slash (e.g. about/index.html)
# .Url.Directory - The directory path of the source URL, excluding the leading slash (e.g. about/)
# .Url.Filename - The file name of the source URL (e.g. index.html)
#
# If the bibtex entry has a URL but not a DOI, the `.Doi` field will be
# nil. If the bibtex entry has a DOI but not a URL, the `.Url` field will
# be populated by following an https://doi.org/ link.
#schemes = [
# "{{ if not (empty .Doi) }}https://example.com/{{ .Doi }}{{ end }}",
# "https://{{ .Url.Hostname }}.example.com/{{ .Url.Path }}",
#]
# Only use this resolver when the source is located at one of these
# hostnames. If this list is empty, the resolver will be used for all
# hosts not excluded by `exclude-hostnames`.
#include-hostnames = [
# "example.org",
# "research.example.com",
#]
# Don't use this resolver if the source is located at one of these
# hostnames.
#exclude-hostnames = [
# "example.org",
# "research.example.com",
#]