Skip to content

Commit

Permalink
nanobind now has a logo designed by AndoTwin Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Mar 28, 2023
1 parent 67a1731 commit b65d3b1
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 3 deletions.
13 changes: 13 additions & 0 deletions README.md
Expand Up @@ -7,6 +7,14 @@
[![](https://img.shields.io/badge/Example-Link-brightgreen)](https://github.com/wjakob/nanobind_example)
[![](https://img.shields.io/badge/Changelog-Link-brightgreen)](https://nanobind.readthedocs.io/en/latest/changelog.html)

<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" width="800" srcset="https://rgl.s3.eu-central-1.amazonaws.com/media/uploads/wjakob/2023/03/28/nanobind_logo_dark.png">
<source media="(prefers-color-scheme: light)" width="800" srcset="https://github.com/wjakob/nanobind/raw/master/docs/images/logo.jpg">
<img alt="nanobind logo" width="800" src="https://github.com/wjakob/nanobind/raw/master/docs/images/logo.jpg">
</picture>
</p>

_nanobind_ is a small binding library that exposes C++ types in Python and vice
versa. It is reminiscent of
[Boost.Python](https://www.boost.org/doc/libs/1_64_0/libs/python/doc/html) and
Expand All @@ -25,3 +33,8 @@ lower** runtime overheads compared to pybind11.
Please see the following links for tutorial and reference documentation in
[HTML](https://nanobind.readthedocs.io/en/latest/) and
[PDF](https://nanobind.readthedocs.io/_/downloads/en/latest/pdf/) formats.

The nanobind logo was designed by [AndoTwin
Studio](https://andotwinstudio.com). High-resolution version are available
here: [light](https://rgl.s3.eu-central-1.amazonaws.com/media/uploads/wjakob/2023/03/27/nanobind_logo.jpg),
[dark](https://rgl.s3.eu-central-1.amazonaws.com/media/uploads/wjakob/2023/03/28/nanobind_logo_dark_1.png).
5 changes: 5 additions & 0 deletions docs/changelog.rst
Expand Up @@ -10,6 +10,11 @@ current version is still in the prototype range (*0.x.y*), there are no (formal)
guarantees of API or ABI stability. That said, I will do my best to minimize
inconvenience whenever possible.

Version 1.0.0 (TBA)
-----------------------------

* TBA

Version 0.3.1 (March 8, 2023)
-----------------------------

Expand Down
3 changes: 0 additions & 3 deletions docs/exchanging.rst
Expand Up @@ -37,7 +37,6 @@ converts from/to a Python ``list`` containing ``int`` objects.
.. image:: images/caster-light.svg
:width: 400
:align: center
:class: only-light

**Example**: The following function doubles the entries of an STL vector and
returns the result.
Expand Down Expand Up @@ -232,7 +231,6 @@ to interpret ``std::vector<int>`` as a new Python type called
.. image:: images/binding-light.svg
:width: 400
:align: center
:class: only-light

**Example**: to switch the previous example to bindings, we first replace
the type caster header (`nanobind/stl/vector.h
Expand Down Expand Up @@ -337,7 +335,6 @@ Python list can be accessed through the :cpp:class:`nb::list <list>` type:
.. image:: images/wrapper-light.svg
:width: 400
:align: center
:class: only-light

This is what the example looks like when expressed using
:cpp:class:`nb::list <list>` and :cpp:class:`nb::int_ <int_>`.
Expand Down
Binary file added docs/images/logo.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions docs/index.rst
@@ -1,6 +1,27 @@
Introduction
============

.. only:: not latex

.. image:: https://github.com/wjakob/nanobind/raw/master/docs/images/logo.jpg
:width: 800
:align: center
:alt: nanobind logo
:class: only-light

.. image:: https://rgl.s3.eu-central-1.amazonaws.com/media/uploads/wjakob/2023/03/28/nanobind_logo_dark.png
:width: 800
:align: center
:alt: nanobind logo
:class: only-dark

.. only:: latex

.. image:: https://github.com/wjakob/nanobind/raw/master/docs/images/logo.jpg
:width: 800
:align: center
:alt: nanobind logo

*nanobind* is a small binding library that exposes C++ types in Python and vice
versa. It is reminiscent of `Boost.Python
<https://www.boost.org/doc/libs/1_64_0/libs/python/doc/html>`_ and `pybind11
Expand Down Expand Up @@ -59,6 +80,14 @@ discourse:
title = {nanobind---Seamless operability between C++17 and Python}
}
The nanobind logo was designed by `AndoTwin Studio
<https://andotwinstudio.com>`__. High-resolution version are available `here
<https://rgl.s3.eu-central-1.amazonaws.com/media/uploads/wjakob/2023/03/27/nanobind_logo.jpg>`__
(light) and `here
<https://rgl.s3.eu-central-1.amazonaws.com/media/uploads/wjakob/2023/03/28/nanobind_logo_dark_1.png>`__
(dark).

.. only:: not latex

Table of contents
Expand Down

0 comments on commit b65d3b1

Please sign in to comment.