Skip to content

Commit 4d92d19

Browse files
committed
Bump to version 2.1
1 parent 4c370da commit 4d92d19

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

python/flottplot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from .ipython import load_ipython_extension
22
from .convert import convert
33

4-
__version__ = "2.0.0"
4+
__version__ = "2.1.0"
55

src/docs/template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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">

src/module.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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

tools/docbuilder.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
import sys
66
import warnings
77

8+
from flottplot import __version__
89

910
regex_h1 = re.compile(r"\<h1[^\>]*id=\"(.*)\"[^\>]*\>(.*)\</h1\>") # only h1 with id set
1011
regex_h2 = re.compile(r"\<h2[^\>]*id=\"(.*)\"[^\>]*\>(.*)\</h2\>") # only h2 with id set
1112

1213
regex_content = re.compile(r"^\s*\<!--\s*content\s*--\>\s*$")
1314
regex_navigation = re.compile(r"^\s*\<!--\s*navigation\s*--\>\s*$")
1415
regex_title = re.compile(r"\<!--\s*title\s*--\>")
16+
regex_version = re.compile(r"\<!--\s*version\s*--\>")
1517

1618
def 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

0 commit comments

Comments
 (0)