Skip to content

Commit bb53396

Browse files
committed
add html suffix
1 parent 1dbdeea commit bb53396

File tree

12 files changed

+247
-599
lines changed

12 files changed

+247
-599
lines changed

nbdev/processors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,5 +236,5 @@ def infer_frontmatter(nb):
236236
"Insert front matter if it doesn't exist automatically from nbdev styled markdown."
237237
if is_frontmatter(nb): return
238238
_exp = _default_exp(nb)
239-
_fmdict = merge(nb_fmdict(nb), {'output-file': _exp} if _exp else {})
239+
_fmdict = merge(nb_fmdict(nb), {'output-file': _exp+'.html'} if _exp else {})
240240
if 'title' in _fmdict: insert_frontmatter(nb, fm_dict=_fmdict)

nbs/01_read.ipynb

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": null,
66
"metadata": {},
77
"outputs": [],
88
"source": [
@@ -20,7 +20,7 @@
2020
},
2121
{
2222
"cell_type": "code",
23-
"execution_count": 2,
23+
"execution_count": null,
2424
"metadata": {},
2525
"outputs": [],
2626
"source": [
@@ -40,7 +40,7 @@
4040
},
4141
{
4242
"cell_type": "code",
43-
"execution_count": 3,
43+
"execution_count": null,
4444
"metadata": {},
4545
"outputs": [],
4646
"source": [
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"cell_type": "code",
54-
"execution_count": 4,
54+
"execution_count": null,
5555
"metadata": {},
5656
"outputs": [],
5757
"source": [
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"cell_type": "code",
67-
"execution_count": 5,
67+
"execution_count": null,
6868
"metadata": {},
6969
"outputs": [],
7070
"source": [
@@ -338,31 +338,6 @@
338338
"display_name": "Python 3 (ipykernel)",
339339
"language": "python",
340340
"name": "python3"
341-
},
342-
"language_info": {
343-
"codemirror_mode": {
344-
"name": "ipython",
345-
"version": 3
346-
},
347-
"file_extension": ".py",
348-
"mimetype": "text/x-python",
349-
"name": "python",
350-
"nbconvert_exporter": "python",
351-
"pygments_lexer": "ipython3",
352-
"version": "3.9.13"
353-
},
354-
"toc": {
355-
"base_numbering": 1,
356-
"nav_menu": {},
357-
"number_sections": false,
358-
"sideBar": true,
359-
"skip_h1_title": false,
360-
"title_cell": "Table of Contents",
361-
"title_sidebar": "Contents",
362-
"toc_cell": false,
363-
"toc_position": {},
364-
"toc_section_display": true,
365-
"toc_window_display": false
366341
}
367342
},
368343
"nbformat": 4,

nbs/03_process.ipynb

Lines changed: 28 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 54,
5+
"execution_count": null,
66
"id": "bce55715",
77
"metadata": {},
88
"outputs": [],
@@ -22,7 +22,7 @@
2222
},
2323
{
2424
"cell_type": "code",
25-
"execution_count": 55,
25+
"execution_count": null,
2626
"id": "59172c3d",
2727
"metadata": {},
2828
"outputs": [],
@@ -46,7 +46,7 @@
4646
},
4747
{
4848
"cell_type": "code",
49-
"execution_count": 56,
49+
"execution_count": null,
5050
"id": "ce00cb74",
5151
"metadata": {},
5252
"outputs": [],
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"cell_type": "code",
71-
"execution_count": 57,
71+
"execution_count": null,
7272
"id": "48fdaa8d",
7373
"metadata": {},
7474
"outputs": [],
@@ -78,7 +78,7 @@
7878
},
7979
{
8080
"cell_type": "code",
81-
"execution_count": 58,
81+
"execution_count": null,
8282
"id": "48e04902-f4a1-4247-ae0c-1e30bc054166",
8383
"metadata": {},
8484
"outputs": [],
@@ -134,7 +134,7 @@
134134
},
135135
{
136136
"cell_type": "code",
137-
"execution_count": 59,
137+
"execution_count": null,
138138
"id": "c54390ab-1cb9-4146-9e88-609f1fc5544a",
139139
"metadata": {},
140140
"outputs": [],
@@ -145,7 +145,7 @@
145145
},
146146
{
147147
"cell_type": "code",
148-
"execution_count": 60,
148+
"execution_count": null,
149149
"id": "92e96f7d-a7b7-4915-a660-d659520081d5",
150150
"metadata": {},
151151
"outputs": [],
@@ -157,7 +157,7 @@
157157
},
158158
{
159159
"cell_type": "code",
160-
"execution_count": 61,
160+
"execution_count": null,
161161
"id": "2974d8cc-870c-4362-b2b1-e35f94c28dd9",
162162
"metadata": {},
163163
"outputs": [],
@@ -170,7 +170,7 @@
170170
},
171171
{
172172
"cell_type": "code",
173-
"execution_count": 62,
173+
"execution_count": null,
174174
"id": "484a1df8",
175175
"metadata": {},
176176
"outputs": [],
@@ -187,7 +187,7 @@
187187
},
188188
{
189189
"cell_type": "code",
190-
"execution_count": 63,
190+
"execution_count": null,
191191
"id": "100a91fb-8b46-4feb-afbf-d1e78c14cfd6",
192192
"metadata": {},
193193
"outputs": [],
@@ -201,7 +201,7 @@
201201
},
202202
{
203203
"cell_type": "code",
204-
"execution_count": 64,
204+
"execution_count": null,
205205
"id": "b496a9b3-b90b-4831-9454-4c4c3b8e89f1",
206206
"metadata": {},
207207
"outputs": [],
@@ -214,7 +214,7 @@
214214
},
215215
{
216216
"cell_type": "code",
217-
"execution_count": 65,
217+
"execution_count": null,
218218
"id": "69befb76-aa77-4923-bfcc-2606613d706f",
219219
"metadata": {},
220220
"outputs": [],
@@ -228,7 +228,7 @@
228228
},
229229
{
230230
"cell_type": "code",
231-
"execution_count": 66,
231+
"execution_count": null,
232232
"id": "86547300-342c-4b8e-917d-f09c7cd1e01f",
233233
"metadata": {},
234234
"outputs": [],
@@ -244,7 +244,7 @@
244244
},
245245
{
246246
"cell_type": "code",
247-
"execution_count": 67,
247+
"execution_count": null,
248248
"id": "3cca78a4",
249249
"metadata": {},
250250
"outputs": [],
@@ -273,7 +273,7 @@
273273
},
274274
{
275275
"cell_type": "code",
276-
"execution_count": 68,
276+
"execution_count": null,
277277
"id": "9ec3d86d",
278278
"metadata": {},
279279
"outputs": [],
@@ -291,7 +291,7 @@
291291
},
292292
{
293293
"cell_type": "code",
294-
"execution_count": 69,
294+
"execution_count": null,
295295
"id": "e03d189c-0629-487c-8cc5-e34268aab5f9",
296296
"metadata": {},
297297
"outputs": [],
@@ -308,7 +308,7 @@
308308
},
309309
{
310310
"cell_type": "code",
311-
"execution_count": 70,
311+
"execution_count": null,
312312
"id": "e6701805",
313313
"metadata": {},
314314
"outputs": [],
@@ -321,7 +321,7 @@
321321
},
322322
{
323323
"cell_type": "code",
324-
"execution_count": 71,
324+
"execution_count": null,
325325
"id": "98c9d556",
326326
"metadata": {},
327327
"outputs": [],
@@ -336,7 +336,7 @@
336336
},
337337
{
338338
"cell_type": "code",
339-
"execution_count": 72,
339+
"execution_count": null,
340340
"id": "ab147efe",
341341
"metadata": {},
342342
"outputs": [],
@@ -347,7 +347,7 @@
347347
},
348348
{
349349
"cell_type": "code",
350-
"execution_count": 78,
350+
"execution_count": null,
351351
"id": "7c81f109",
352352
"metadata": {},
353353
"outputs": [],
@@ -410,7 +410,7 @@
410410
},
411411
{
412412
"cell_type": "code",
413-
"execution_count": 79,
413+
"execution_count": null,
414414
"id": "babdd6d0",
415415
"metadata": {},
416416
"outputs": [
@@ -443,7 +443,7 @@
443443
},
444444
{
445445
"cell_type": "code",
446-
"execution_count": 49,
446+
"execution_count": null,
447447
"id": "6da4a177",
448448
"metadata": {},
449449
"outputs": [
@@ -472,7 +472,7 @@
472472
},
473473
{
474474
"cell_type": "code",
475-
"execution_count": 50,
475+
"execution_count": null,
476476
"id": "060f85c1",
477477
"metadata": {},
478478
"outputs": [
@@ -501,7 +501,7 @@
501501
},
502502
{
503503
"cell_type": "code",
504-
"execution_count": 51,
504+
"execution_count": null,
505505
"id": "a9396951",
506506
"metadata": {},
507507
"outputs": [
@@ -522,20 +522,16 @@
522522
{
523523
"cell_type": "markdown",
524524
"id": "e95db40d",
525-
"metadata": {
526-
"heading_collapsed": true
527-
},
525+
"metadata": {},
528526
"source": [
529527
"## Export -"
530528
]
531529
},
532530
{
533531
"cell_type": "code",
534-
"execution_count": 52,
532+
"execution_count": null,
535533
"id": "4e85652c",
536-
"metadata": {
537-
"hidden": true
538-
},
534+
"metadata": {},
539535
"outputs": [],
540536
"source": [
541537
"#|eval: false\n",
@@ -551,9 +547,7 @@
551547
"cell_type": "code",
552548
"execution_count": null,
553549
"id": "af6db102-2447-49ba-94d9-bfebfb48c0f0",
554-
"metadata": {
555-
"hidden": true
556-
},
550+
"metadata": {},
557551
"outputs": [],
558552
"source": []
559553
}
@@ -563,31 +557,6 @@
563557
"display_name": "Python 3 (ipykernel)",
564558
"language": "python",
565559
"name": "python3"
566-
},
567-
"language_info": {
568-
"codemirror_mode": {
569-
"name": "ipython",
570-
"version": 3
571-
},
572-
"file_extension": ".py",
573-
"mimetype": "text/x-python",
574-
"name": "python",
575-
"nbconvert_exporter": "python",
576-
"pygments_lexer": "ipython3",
577-
"version": "3.9.13"
578-
},
579-
"toc": {
580-
"base_numbering": 1,
581-
"nav_menu": {},
582-
"number_sections": false,
583-
"sideBar": true,
584-
"skip_h1_title": false,
585-
"title_cell": "Table of Contents",
586-
"title_sidebar": "Contents",
587-
"toc_cell": false,
588-
"toc_position": {},
589-
"toc_section_display": true,
590-
"toc_window_display": false
591560
}
592561
},
593562
"nbformat": 4,

0 commit comments

Comments
 (0)