diff options
author | eine <eine@users.noreply.github.com> | 2021-01-01 05:59:23 +0100 |
---|---|---|
committer | eine <eine@users.noreply.github.com> | 2021-01-01 20:34:15 +0100 |
commit | b423d31131ccc695de3b3015b91307e9e72ae821 (patch) | |
tree | 0498b83e208692be6a4fd493d074dacec66e2aaf | |
parent | 73b75b927177d2d6553e6b86e325537a38f39527 (diff) | |
download | ghdl-b423d31131ccc695de3b3015b91307e9e72ae821.tar.gz ghdl-b423d31131ccc695de3b3015b91307e9e72ae821.tar.bz2 ghdl-b423d31131ccc695de3b3015b91307e9e72ae821.zip |
logo: add new bit logo
-rw-r--r-- | doc/_static/icon.png | bin | 0 -> 114478 bytes | |||
-rw-r--r-- | doc/_static/logo.png | bin | 3963 -> 22236 bytes | |||
-rw-r--r-- | doc/conf.py | 5 | ||||
-rw-r--r-- | doc/index.rst | 5 | ||||
-rw-r--r-- | logo/banner.png | bin | 0 -> 118910 bytes | |||
-rw-r--r-- | logo/banner.xcf | bin | 0 -> 884111 bytes | |||
-rw-r--r-- | logo/gen_logo.py | 59 | ||||
-rw-r--r-- | logo/icon.png | bin | 0 -> 114478 bytes | |||
-rw-r--r-- | logo/logo.xcf | bin | 0 -> 1253622 bytes |
9 files changed, 64 insertions, 5 deletions
diff --git a/doc/_static/icon.png b/doc/_static/icon.png Binary files differnew file mode 100644 index 000000000..18a882b75 --- /dev/null +++ b/doc/_static/icon.png diff --git a/doc/_static/logo.png b/doc/_static/logo.png Binary files differindex c0f903a7a..f45d510d4 100644 --- a/doc/_static/logo.png +++ b/doc/_static/logo.png 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 <p style="text-align: center;"> diff --git a/logo/banner.png b/logo/banner.png Binary files differnew file mode 100644 index 000000000..e38a5bf6b --- /dev/null +++ b/logo/banner.png diff --git a/logo/banner.xcf b/logo/banner.xcf Binary files differnew file mode 100644 index 000000000..8146f058a --- /dev/null +++ b/logo/banner.xcf 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 Binary files differnew file mode 100644 index 000000000..18a882b75 --- /dev/null +++ b/logo/icon.png diff --git a/logo/logo.xcf b/logo/logo.xcf Binary files differnew file mode 100644 index 000000000..eb4263e45 --- /dev/null +++ b/logo/logo.xcf |