-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitbook-plugin-blockLabels.patch
194 lines (188 loc) · 11.6 KB
/
gitbook-plugin-blockLabels.patch
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
diff --git a/README.md b/README.md
index c5ec525..447d1da 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,7 @@
# Label Objects in the Document
-Applies a (*label*) around blocks of text, images, or tables.
-
-*jan-31-2020: Also adds the Header and Footer to PDFs
+* Applies a (*label*) around blocks of text, images, or tables.
+* Adds a Header and Footer to PDFs
Theme information copied from https://github.com/GitbookIO/theme-default
@@ -40,14 +39,14 @@ The value of labelPrev currently has no effect, it was added for the future feat
Add the following to *book.json*
-if no *defaultLabel* is an empty string, or the config is not defined, only blocks will be labeled.
+If *defaultLabel* is an empty string, or the config is not defined, only blocks will be labeled.
```json
"pluginsConfig": {
"blocklabels": {
"defaultLabel": "IMPORTANT",
"header": "MY CUSTOM HEADER",
- "footer": "My CUstom Footer"
+ "footer": "My Custom Footer"
}
}
```
diff --git a/npm-debug.log b/npm-debug.log
deleted file mode 100644
index f4c61cd..0000000
--- a/npm-debug.log
+++ /dev/null
@@ -1,156 +0,0 @@
-0 info it worked if it ends with ok
-1 verbose cli [ '/usr/bin/node',
-1 verbose cli '/usr/bin/npm',
-1 verbose cli 'publish',
-1 verbose cli 'gitbook-plugin-blocklabels' ]
-2 info using npm@3.5.2
-3 info using node@v8.10.0
-4 verbose publish [ 'gitbook-plugin-blocklabels' ]
-5 silly cache add args [ 'gitbook-plugin-blocklabels', null ]
-6 verbose cache add spec gitbook-plugin-blocklabels
-7 silly cache add parsed spec Result {
-7 silly cache add raw: 'gitbook-plugin-blocklabels',
-7 silly cache add scope: null,
-7 silly cache add name: 'gitbook-plugin-blocklabels',
-7 silly cache add rawSpec: '',
-7 silly cache add spec: 'latest',
-7 silly cache add type: 'tag' }
-8 silly addNamed gitbook-plugin-blocklabels@latest
-9 verbose addNamed "latest" is being treated as a dist-tag for gitbook-plugin-blocklabels
-10 info addNameTag [ 'gitbook-plugin-blocklabels', 'latest' ]
-11 silly mapToRegistry name gitbook-plugin-blocklabels
-12 silly mapToRegistry using default registry
-13 silly mapToRegistry registry https://registry.npmjs.org/
-14 silly mapToRegistry uri https://registry.npmjs.org/gitbook-plugin-blocklabels
-15 verbose addNameTag registry:https://registry.npmjs.org/gitbook-plugin-blocklabels not in flight; fetching
-16 verbose request uri https://registry.npmjs.org/gitbook-plugin-blocklabels
-17 verbose request no auth needed
-18 info attempt registry request try #1 at 3:06:13 PM
-19 verbose request using bearer token for auth
-20 verbose request id f18db604493ac514
-21 verbose etag W/"6dbeca19e2ae39e46d8d7c60a585bc52"
-22 verbose lastModified Thu, 12 Dec 2019 15:53:09 GMT
-23 http request GET https://registry.npmjs.org/gitbook-plugin-blocklabels
-24 http 304 https://registry.npmjs.org/gitbook-plugin-blocklabels
-25 verbose headers { date: 'Fri, 31 Jan 2020 20:06:13 GMT',
-25 verbose headers connection: 'keep-alive',
-25 verbose headers 'set-cookie':
-25 verbose headers [ '__cfduid=d007361ba07ed513b6f61f7fd83f97e501580501173; expires=Sun, 01-Mar-20 20:06:13 GMT; path=/; domain=.npmjs.org; HttpOnly; SameSite=Lax' ],
-25 verbose headers 'cf-ray': '55de4e0bdcdf3832-ATL',
-25 verbose headers age: '2119',
-25 verbose headers 'cache-control': 'public, max-age=300',
-25 verbose headers etag: '"6dbeca19e2ae39e46d8d7c60a585bc52"',
-25 verbose headers 'last-modified': 'Thu, 12 Dec 2019 15:53:09 GMT',
-25 verbose headers vary: 'Accept-Encoding',
-25 verbose headers 'cf-cache-status': 'HIT',
-25 verbose headers 'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
-25 verbose headers server: 'cloudflare' }
-26 silly get cb [ 304,
-26 silly get { date: 'Fri, 31 Jan 2020 20:06:13 GMT',
-26 silly get connection: 'keep-alive',
-26 silly get 'set-cookie':
-26 silly get [ '__cfduid=d007361ba07ed513b6f61f7fd83f97e501580501173; expires=Sun, 01-Mar-20 20:06:13 GMT; path=/; domain=.npmjs.org; HttpOnly; SameSite=Lax' ],
-26 silly get 'cf-ray': '55de4e0bdcdf3832-ATL',
-26 silly get age: '2119',
-26 silly get 'cache-control': 'public, max-age=300',
-26 silly get etag: '"6dbeca19e2ae39e46d8d7c60a585bc52"',
-26 silly get 'last-modified': 'Thu, 12 Dec 2019 15:53:09 GMT',
-26 silly get vary: 'Accept-Encoding',
-26 silly get 'cf-cache-status': 'HIT',
-26 silly get 'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
-26 silly get server: 'cloudflare' } ]
-27 verbose etag https://registry.npmjs.org/gitbook-plugin-blocklabels from cache
-28 verbose get saving gitbook-plugin-blocklabels to /home/mruge3/.npm/registry.npmjs.org/gitbook-plugin-blocklabels/.cache.json
-29 silly addNameTag next cb for gitbook-plugin-blocklabels with tag latest
-30 silly addNamed gitbook-plugin-blocklabels@0.1.2
-31 verbose addNamed "0.1.2" is a plain semver version for gitbook-plugin-blocklabels
-32 silly cache afterAdd gitbook-plugin-blocklabels@0.1.2
-33 verbose afterAdd /home/mruge3/.npm/gitbook-plugin-blocklabels/0.1.2/package/package.json not in flight; writing
-34 verbose afterAdd /home/mruge3/.npm/gitbook-plugin-blocklabels/0.1.2/package/package.json written
-35 silly publish { name: 'gitbook-plugin-blocklabels',
-35 silly publish description: 'Block/Object Labeling for documents',
-35 silly publish main: 'index.js',
-35 silly publish version: '0.1.2',
-35 silly publish engines: { gitbook: '*' },
-35 silly publish homepage: 'https://github.com/mruge/gitbook-plugin-blockLabels',
-35 silly publish repository:
-35 silly publish { type: 'git',
-35 silly publish url: 'git+https://github.com/mruge/gitbook-plugin-blockLabels.git' },
-35 silly publish dependencies: { cheerio: '>=1.0.0-rc.3' },
-35 silly publish license: 'Apache 2',
-35 silly publish bugs:
-35 silly publish { url: 'https://github.com/mruge/gitbook-plugin-blockLabels/issues' },
-35 silly publish gitHead: '0ac4c254d0969d8c547dc32d50a85168be50ab9b',
-35 silly publish _id: 'gitbook-plugin-blocklabels@0.1.2',
-35 silly publish scripts: {},
-35 silly publish _shasum: 'ac23268e08752b4f23b5ae795df6af5cd3e04b89',
-35 silly publish _from: 'gitbook-plugin-blocklabels@latest',
-35 silly publish _npmVersion: '3.10.10',
-35 silly publish _nodeVersion: '6.17.1',
-35 silly publish _npmUser: { name: 'mruge', email: 'matt.ruge@gtri.gatech.edu' },
-35 silly publish dist:
-35 silly publish { shasum: 'ac23268e08752b4f23b5ae795df6af5cd3e04b89',
-35 silly publish tarball: 'https://registry.npmjs.org/gitbook-plugin-blocklabels/-/gitbook-plugin-blocklabels-0.1.2.tgz',
-35 silly publish integrity: 'sha512-c11itndnddk8+LEuFl3GFz3c+dY3jPr/Pb18sf1Ibd6peawQB07SyiSPBSkSKOHsElW5vdRN72Gb5eo9Ja1WCw==',
-35 silly publish fileCount: 3,
-35 silly publish unpackedSize: 4565,
-35 silly publish 'npm-signature': '-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8mJiCRA9TVsSAnZWagAATn0P/1LuLBJ1JS/Vf37lYtfC\nhKHHbjW+EnrG3xuLnV7HN91NonSzSr2ecLbe3XRIY3BB8T7Jt477wMzWMb57\nBkQrV1IXGwbjUwsG/mRaAkQkYq031F/aK5GfaitICp9tg0du9CYB+GLL1DQt\nsIadVCm7kVqZ2J51kFS9My7WVsVjamZ1RvHV41T7LJcaHAQCXXAEqXupdYNj\nsKtcA1ZomBzAtLjmF3ME9DDp8J2oyMDD2iSKw9x9f/8tsYk15QmZYehgsooC\nnZ1BPRKH02O+W6vAjMlldY6foKCSUeyH/f1o+kS5A2zaCK4E5gi5SHjKdWR9\n+iifHAD0z5bEc22Qnd/qg0g7rc1+mRxv3r1s6csEaiecD4pWbThnAJU0FZFQ\ng6rJ0RfX9aakLf0bXy62mvOfFFL/YhWazEkJy4K8mCRMzT0RXkmT59ngXSO3\nWijQU6qNK4wTiripEN1JwKPI4afysNiUo5v2x95QjLm3dfeJVkWnif09PLMy\nLB5x+V47m1MoTKETnq089LIn1u9haWG0VFTVOiYCcLgO2q+6ph0pkxszDYfD\nB5LlclEJ/SYmnNcm1aNqtR5aDRyo2SHr9wrBYSlTwrGBi/I3E8VbYKk17GB0\n0qOXHG5XcSD3e053gCsW2jNS8t4fZROkNAXM1JF0Drs+UhJh6x/hGyyLx4q6\ns2zN\r\n=6/vj\r\n-----END PGP SIGNATURE-----\r\n' },
-35 silly publish maintainers: [ { name: 'mruge', email: 'matt.ruge@gtri.gatech.edu' } ],
-35 silly publish directories: {},
-35 silly publish _npmOperationalInternal:
-35 silly publish { host: 's3://npm-registry-packages',
-35 silly publish tmp: 'tmp/gitbook-plugin-blocklabels_0.1.2_1576165985906_0.3210681816283327' },
-35 silly publish _hasShrinkwrap: false,
-35 silly publish _resolved: 'https://registry.npmjs.org/gitbook-plugin-blocklabels/-/gitbook-plugin-blocklabels-0.1.2.tgz',
-35 silly publish readme: 'ERROR: No README data found!' }
-36 info lifecycle gitbook-plugin-blocklabels@0.1.2~prepublish: gitbook-plugin-blocklabels@0.1.2
-37 silly lifecycle gitbook-plugin-blocklabels@0.1.2~prepublish: no script for prepublish, continuing
-38 verbose getPublishConfig undefined
-39 silly mapToRegistry name gitbook-plugin-blocklabels
-40 silly mapToRegistry using default registry
-41 silly mapToRegistry registry https://registry.npmjs.org/
-42 silly mapToRegistry uri https://registry.npmjs.org/gitbook-plugin-blocklabels
-43 verbose publish registryBase https://registry.npmjs.org/
-44 silly publish uploading /home/mruge3/.npm/gitbook-plugin-blocklabels/0.1.2/package.tgz
-45 verbose request uri https://registry.npmjs.org/gitbook-plugin-blocklabels
-46 verbose request sending authorization for write operation
-47 info attempt registry request try #1 at 3:06:13 PM
-48 verbose request using bearer token for auth
-49 http request PUT https://registry.npmjs.org/gitbook-plugin-blocklabels
-50 http 403 https://registry.npmjs.org/gitbook-plugin-blocklabels
-51 verbose headers { date: 'Fri, 31 Jan 2020 20:06:13 GMT',
-51 verbose headers 'content-type': 'application/json',
-51 verbose headers 'transfer-encoding': 'chunked',
-51 verbose headers connection: 'keep-alive',
-51 verbose headers 'set-cookie':
-51 verbose headers [ '__cfduid=d007361ba07ed513b6f61f7fd83f97e501580501173; expires=Sun, 01-Mar-20 20:06:13 GMT; path=/; domain=.npmjs.org; HttpOnly; SameSite=Lax' ],
-51 verbose headers 'cf-ray': '55de4e0c0cf43832-ATL',
-51 verbose headers 'cf-cache-status': 'DYNAMIC',
-51 verbose headers 'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
-51 verbose headers vary: 'Accept-Encoding',
-51 verbose headers server: 'cloudflare',
-51 verbose headers 'content-encoding': 'gzip' }
-52 verbose request invalidating /home/mruge3/.npm/registry.npmjs.org/gitbook-plugin-blocklabels on PUT
-53 error publish Failed PUT 403
-54 verbose stack Error: You cannot publish over the previously published versions: 0.1.2. : gitbook-plugin-blocklabels
-54 verbose stack at makeError (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:264:12)
-54 verbose stack at CachingRegistryClient.<anonymous> (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:252:14)
-54 verbose stack at /usr/share/npm/node_modules/npm-registry-client/lib/request.js:178:7
-54 verbose stack at Gunzip.onEnd (zlib.js:131:5)
-54 verbose stack at emitNone (events.js:111:20)
-54 verbose stack at Gunzip.emit (events.js:208:7)
-54 verbose stack at endReadableNT (_stream_readable.js:1064:12)
-54 verbose stack at _combinedTickCallback (internal/process/next_tick.js:138:11)
-54 verbose stack at process._tickCallback (internal/process/next_tick.js:180:9)
-55 verbose statusCode 403
-56 verbose pkgid gitbook-plugin-blocklabels
-57 verbose cwd /home/mruge3/git/gitbook-plugin-blockLabels
-58 error Linux 5.3.0-26-generic
-59 error argv "/usr/bin/node" "/usr/bin/npm" "publish" "gitbook-plugin-blocklabels"
-60 error node v8.10.0
-61 error npm v3.5.2
-62 error code E403
-63 error You cannot publish over the previously published versions: 0.1.2. : gitbook-plugin-blocklabels
-64 error If you need help, you may report this error at:
-64 error <https://github.com/npm/npm/issues>
-65 verbose exit [ 1, true ]