File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed
Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 11from .ipython import load_ipython_extension
22from .convert import convert
33
4- __version__ = "2.0 .0"
4+ __version__ = "2.1 .0"
55
Original file line number Diff line number Diff line change 22< html >
33< head >
44 < meta charset ="utf-8 ">
5- < title > <!-- title --> | Flottplot v2.0.0 Documentation</ title >
5+ < title > <!-- title --> | Flottplot <!-- version --> Documentation</ title >
66 < script type ="text/javascript " src ="dist/flottplot-scan-min.js "> </ script >
77 < link rel ="stylesheet " href ="dist/flottplot.css ">
88 < link rel ="stylesheet " href ="docs.css ">
Original file line number Diff line number Diff line change @@ -236,19 +236,14 @@ var flottplot = function () {
236236 Flottplot . registerTag ( "fp-video" , FPVideo , false ) ;
237237
238238 return {
239- // ...
239+ __version__ : "2.1.0" ,
240240 Flottplot : Flottplot ,
241- // ...
242241 FPElement : FPElement ,
243- // ...
244242 Value : Value ,
245- // ...
246243 OptionsItems : OptionsItems ,
247244 RangeItems : RangeItems ,
248- // ...
249245 FlottplotError : FlottplotError ,
250246 ElementError : ElementError ,
251- // ...
252247 dom : dom ,
253248 } ;
254249
Original file line number Diff line number Diff line change 55import sys
66import warnings
77
8+ from flottplot import __version__
89
910regex_h1 = re .compile (r"\<h1[^\>]*id=\"(.*)\"[^\>]*\>(.*)\</h1\>" ) # only h1 with id set
1011regex_h2 = re .compile (r"\<h2[^\>]*id=\"(.*)\"[^\>]*\>(.*)\</h2\>" ) # only h2 with id set
1112
1213regex_content = re .compile (r"^\s*\<!--\s*content\s*--\>\s*$" )
1314regex_navigation = re .compile (r"^\s*\<!--\s*navigation\s*--\>\s*$" )
1415regex_title = re .compile (r"\<!--\s*title\s*--\>" )
16+ regex_version = re .compile (r"\<!--\s*version\s*--\>" )
1517
1618def template_substitute (template , source ):
1719 assert os .path .isfile (template )
@@ -33,6 +35,7 @@ def template_substitute(template, source):
3335 print (navigation )
3436 continue
3537 line_tmp = re .sub (regex_title , title , line_tmp )
38+ line_tmp = re .sub (regex_version , __version__ , line_tmp )
3639 print (line_tmp , end = "" )
3740
3841
You can’t perform that action at this time.
0 commit comments