@@ -49,8 +49,8 @@ def build_website(json_root, md_root, site_url, html_root, title, zulip_url, zul
4949 stream_info = read_zulip_stream_info (json_root )
5050
5151 streams = stream_info ['streams' ]
52- date_footer = last_updated_footer_html (stream_info )
53- write_main_page (md_root , site_url , html_root , title , streams , date_footer , page_head_html , page_footer_html )
52+ date_footer_html = last_updated_footer_html (stream_info )
53+ write_main_page (md_root , site_url , html_root , title , streams , date_footer_html , page_head_html , page_footer_html )
5454 write_css (md_root )
5555
5656 for stream_name in streams :
@@ -65,7 +65,7 @@ def build_website(json_root, md_root, site_url, html_root, title, zulip_url, zul
6565 title ,
6666 stream_name ,
6767 stream_data ,
68- date_footer ,
68+ date_footer_html ,
6969 page_head_html ,
7070 page_footer_html
7171 )
@@ -82,7 +82,7 @@ def build_website(json_root, md_root, site_url, html_root, title, zulip_url, zul
8282 stream_name ,
8383 streams [stream_name ],
8484 topic_name ,
85- date_footer ,
85+ date_footer_html ,
8686 page_head_html ,
8787 page_footer_html
8888 )
@@ -98,7 +98,7 @@ def build_website(json_root, md_root, site_url, html_root, title, zulip_url, zul
9898
9999# writes the index page listing all streams.
100100# `streams`: a dict mapping stream names to stream json objects as described in the header.
101- def write_main_page (md_root , site_url , html_root , title , streams , date_footer , page_head_html , page_footer_html ):
101+ def write_main_page (md_root , site_url , html_root , title , streams , date_footer_html , page_head_html , page_footer_html ):
102102 '''
103103 The main page in our website lists streams:
104104
@@ -109,15 +109,15 @@ def write_main_page(md_root, site_url, html_root, title, streams, date_footer, p
109109 '''
110110 outfile = open_main_page (md_root )
111111
112- content = stream_list_page_html (streams )
112+ content_html = stream_list_page_html (streams )
113113
114114 outfile .write (page_head_html )
115- outfile .write (content )
116- outfile .write (date_footer )
115+ outfile .write (content_html )
116+ outfile .write (date_footer_html )
117117 outfile .write (page_footer_html )
118118 outfile .close ()
119119
120- def write_stream_topics (md_root , site_url , html_root , title , stream_name , stream , date_footer , page_head_html , page_footer_html ):
120+ def write_stream_topics (md_root , site_url , html_root , title , stream_name , stream , date_footer_html , page_head_html , page_footer_html ):
121121 '''
122122 A stream page lists all topics for the stream:
123123
@@ -135,11 +135,11 @@ def write_stream_topics(md_root, site_url, html_root, title, stream_name, stream
135135
136136 topic_data = stream ['topic_data' ]
137137
138- content = topic_list_page_html (stream_name , stream_url , topic_data )
138+ content_html = topic_list_page_html (stream_name , stream_url , topic_data )
139139
140140 outfile .write (page_head_html )
141- outfile .write (content )
142- outfile .write (date_footer )
141+ outfile .write (content_html )
142+ outfile .write (date_footer_html )
143143 outfile .write (page_footer_html )
144144 outfile .close ()
145145
@@ -154,7 +154,7 @@ def write_topic_messages(
154154 stream_name ,
155155 stream ,
156156 topic_name ,
157- date_footer ,
157+ date_footer_html ,
158158 page_head_html ,
159159 page_footer_html ,
160160 ):
@@ -216,7 +216,7 @@ def write_topic_messages(
216216 outfile .write (msg_html )
217217 outfile .write ('\n \n ' )
218218
219- outfile .write (date_footer )
219+ outfile .write (date_footer_html )
220220 outfile .write (page_footer_html )
221221 outfile .close ()
222222
0 commit comments