Skip to content

Commit 7fc2a85

Browse files
committed
fix formatter to not raise on empty header, update build image
1 parent 0fb10a7 commit 7fc2a85

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: circleci/ruby:2.5.1-node
5+
- image: cimg/ruby2.6-node
66
steps:
77
- run:
88
name: Checkout

_devel/formatter.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
else:
1818
markdown += [line]
1919

20-
header = yaml.load(''.join(header))
20+
header = yaml.load(''.join(header), Loader=yaml.BaseLoader)
21+
if header is None:
22+
# This assumes the markdown document has a yaml header
23+
# but some documents, like the README.md do not
24+
# Don't bother rendering them
25+
exit()
2126

2227
images = []
2328
try:

0 commit comments

Comments
 (0)