diff --git a/kibot/out_kiri.py b/kibot/out_kiri.py index d74e8ede..0bb0c7fc 100644 --- a/kibot/out_kiri.py +++ b/kibot/out_kiri.py @@ -22,7 +22,7 @@ Dependencies: import datetime import pwd import os -from shutil import copy2, rmtree +from shutil import copy2, rmtree, copytree from subprocess import CalledProcessError from tempfile import mkdtemp, NamedTemporaryFile from .error import KiPlotConfigurationError @@ -41,11 +41,6 @@ UNDEF_COLOR = '#DBDBDB' LAYER_COLORS_HEAD = """/* ============================== Layer colors ** ============================*/ - -.layer_color_margin { - margin-left:0.5em; - margin-right:0.1em; -} """ @@ -190,11 +185,11 @@ class KiRiOptions(VariantOptions): copy2(os.path.join(src_dir, 'kiri-server'), os.path.join(self.cache_dir, 'kiri-server')) web_dir = os.path.join(self.cache_dir, 'web') os.makedirs(web_dir, exist_ok=True) - copy2(os.path.join(src_dir, 'blank.svg'), os.path.join(web_dir, 'blank.svg')) copy2(os.path.join(src_dir, 'favicon.ico'), os.path.join(web_dir, 'favicon.ico')) copy2(os.path.join(src_dir, 'kiri.css'), os.path.join(web_dir, 'kiri.css')) copy2(os.path.join(src_dir, 'kiri.js'), os.path.join(web_dir, 'kiri.js')) copy2(os.path.join(src_dir, 'index.html'), os.path.join(web_dir, 'index.html')) + copytree(os.path.join(src_dir, 'images'), os.path.join(web_dir, 'images'), dirs_exist_ok=True) # Colors for the layers with open(os.path.join(web_dir, 'layer_colors.css'), 'wt') as f: f.write(LAYER_COLORS_HEAD) diff --git a/kibot/resources/kiri/blank.svg b/kibot/resources/kiri/images/blank.svg similarity index 100% rename from kibot/resources/kiri/blank.svg rename to kibot/resources/kiri/images/blank.svg diff --git a/kibot/resources/kiri/images/center-to-fit.svg b/kibot/resources/kiri/images/center-to-fit.svg new file mode 100644 index 00000000..d61f3a45 --- /dev/null +++ b/kibot/resources/kiri/images/center-to-fit.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kibot/resources/kiri/images/circuit-board.svg b/kibot/resources/kiri/images/circuit-board.svg new file mode 100644 index 00000000..bbabde68 --- /dev/null +++ b/kibot/resources/kiri/images/circuit-board.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kibot/resources/kiri/images/code-branch-solid.svg b/kibot/resources/kiri/images/code-branch-solid.svg new file mode 100644 index 00000000..f0f1deac --- /dev/null +++ b/kibot/resources/kiri/images/code-branch-solid.svg @@ -0,0 +1 @@ + diff --git a/kibot/resources/kiri/images/info.svg b/kibot/resources/kiri/images/info.svg new file mode 100644 index 00000000..5d6d3c10 --- /dev/null +++ b/kibot/resources/kiri/images/info.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kibot/resources/kiri/images/layers-solid.svg b/kibot/resources/kiri/images/layers-solid.svg new file mode 100644 index 00000000..0b7dc71e --- /dev/null +++ b/kibot/resources/kiri/images/layers-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kibot/resources/kiri/images/next-page.svg b/kibot/resources/kiri/images/next-page.svg new file mode 100644 index 00000000..91cba9ce --- /dev/null +++ b/kibot/resources/kiri/images/next-page.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kibot/resources/kiri/images/pages.svg b/kibot/resources/kiri/images/pages.svg new file mode 100644 index 00000000..c77f1515 --- /dev/null +++ b/kibot/resources/kiri/images/pages.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kibot/resources/kiri/images/schematics.svg b/kibot/resources/kiri/images/schematics.svg new file mode 100644 index 00000000..979fd60f --- /dev/null +++ b/kibot/resources/kiri/images/schematics.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kibot/resources/kiri/images/square-solid.svg b/kibot/resources/kiri/images/square-solid.svg new file mode 100644 index 00000000..f5b48ea9 --- /dev/null +++ b/kibot/resources/kiri/images/square-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kibot/resources/kiri/images/zoom-in.svg b/kibot/resources/kiri/images/zoom-in.svg new file mode 100644 index 00000000..db658bda --- /dev/null +++ b/kibot/resources/kiri/images/zoom-in.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kibot/resources/kiri/images/zoom-out.svg b/kibot/resources/kiri/images/zoom-out.svg new file mode 100644 index 00000000..dff1e76d --- /dev/null +++ b/kibot/resources/kiri/images/zoom-out.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kibot/resources/kiri/index.html b/kibot/resources/kiri/index.html index 7c7b6d37..10446455 100644 --- a/kibot/resources/kiri/index.html +++ b/kibot/resources/kiri/index.html @@ -3,8 +3,11 @@
- + + + + @@ -35,8 +38,7 @@- - Commits + Commits