From b423d31131ccc695de3b3015b91307e9e72ae821 Mon Sep 17 00:00:00 2001 From: eine Date: Fri, 1 Jan 2021 05:59:23 +0100 Subject: logo: add new bit logo --- doc/_static/icon.png | Bin 0 -> 114478 bytes doc/_static/logo.png | Bin 3963 -> 22236 bytes doc/conf.py | 5 +++++ doc/index.rst | 5 ----- logo/banner.png | Bin 0 -> 118910 bytes logo/banner.xcf | Bin 0 -> 884111 bytes logo/gen_logo.py | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++ logo/icon.png | Bin 0 -> 114478 bytes logo/logo.xcf | Bin 0 -> 1253622 bytes 9 files changed, 64 insertions(+), 5 deletions(-) create mode 100644 doc/_static/icon.png create mode 100644 logo/banner.png create mode 100644 logo/banner.xcf create mode 100644 logo/gen_logo.py create mode 100644 logo/icon.png create mode 100644 logo/logo.xcf diff --git a/doc/_static/icon.png b/doc/_static/icon.png new file mode 100644 index 000000000..18a882b75 Binary files /dev/null and b/doc/_static/icon.png differ diff --git a/doc/_static/logo.png b/doc/_static/logo.png index c0f903a7a..f45d510d4 100644 Binary files a/doc/_static/logo.png and b/doc/_static/logo.png differ diff --git a/doc/conf.py b/doc/conf.py index ced332c9a..cf5be89e3 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -99,6 +99,8 @@ except Exception as ex: # -- Options for HTML output ---------------------------------------------- +html_logo = '_static/img/logo.png' + html_theme_options = { 'logo_only': True, 'home_breadcrumbs': False, @@ -116,6 +118,9 @@ html_theme = "_theme" html_static_path = ['_static'] html_extra_path = [str(Path(__file__).resolve().parent.parent / 'public')] +html_logo = str(Path(html_static_path[0]) / 'logo.png') +html_favicon = str(Path(html_static_path[0]) / 'icon.png') + # Output file base name for HTML help builder. htmlhelp_basename = 'GHDLdoc' diff --git a/doc/index.rst b/doc/index.rst index 3fc554d56..690653cbb 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -5,11 +5,6 @@ GHDL #### -.. image:: _static/logo.png - :width: 400 px - :align: center - :target: https://github.com/ghdl/ghdl-cosim - .. raw:: html

diff --git a/logo/banner.png b/logo/banner.png new file mode 100644 index 000000000..e38a5bf6b Binary files /dev/null and b/logo/banner.png differ diff --git a/logo/banner.xcf b/logo/banner.xcf new file mode 100644 index 000000000..8146f058a Binary files /dev/null and b/logo/banner.xcf differ diff --git a/logo/gen_logo.py b/logo/gen_logo.py new file mode 100644 index 000000000..23779eccd --- /dev/null +++ b/logo/gen_logo.py @@ -0,0 +1,59 @@ +import svgwrite + +dwg = svgwrite.Drawing('logo.svg', profile='tiny') + +_size = 20 +_fill = svgwrite.rgb(50, 50, 50, '%') +_stroke_width = 2 + +_GHDL = [ + [ + "01110", + "10001", + "10000", + "10111", + "10001", + "10001", + "01111" + ], + [ + "10001", + "10001", + "10001", + "11111", + "10001", + "10001", + "10001", + ], + [ + "11100", + "10010", + "10001", + "10001", + "10001", + "10010", + "11100" + ], + [ + "10000", + "10000", + "10000", + "10000", + "10000", + "10000", + "11111" + ] +] + +for idl, _letter in enumerate(_GHDL): + for idy, _row in enumerate(_letter): + for idx, val in enumerate(_row): + print(idl, idx, idy) + if val == '1': + dwg.add(dwg.rect( + (idl*_size*6 + idx*_size+_stroke_width, idy*_size+_stroke_width), + (_size-2*_stroke_width, _size-2*_stroke_width), + fill=_fill, + )) + +dwg.save() diff --git a/logo/icon.png b/logo/icon.png new file mode 100644 index 000000000..18a882b75 Binary files /dev/null and b/logo/icon.png differ diff --git a/logo/logo.xcf b/logo/logo.xcf new file mode 100644 index 000000000..eb4263e45 Binary files /dev/null and b/logo/logo.xcf differ -- cgit v1.2.3