Changeset - 39c9bd68d4ef
[Not reviewed]
0 3 7
Branko Majic (branko) - 10 years ago 2013-11-28 23:32:27
branko@majic.rs
PYD-2: Added logo and favicon to documentation. Added two sample identicon images to index page, and two sample identicons to usage page. Added the favicon source file (GIMP XCF).
10 files changed with 12 insertions and 2 deletions:
0 comments (0 inline, 0 general)
assets/favicon.xcf
Show inline comments
 
new file 100644
 
binary diff not shown
docs/algorithm.rst
Show inline comments
 
@@ -123,12 +123,19 @@ the symmetry. This would result in the following ideticon matrix::
 
  10101
 
  10101
 

	
 
Since no inversion was requested, ``1`` would correspond to calculated
 
foreground colour, while ``0`` would correspond to provided background colour.
 

	
 
To spicen the example up a bit, here is what the above identicon would look like
 
in regular and inverted variant (with some sample foreground colours and a bit
 
of padding):
 

	
 
.. image:: images/branko.png
 
.. image:: images/branko_inverted.png
 

	
 
Limitations
 
-----------
 

	
 
There's some practical limitations to the algorithm described above.
 

	
 
The first limitation is the maximum number of different foreground colours that
docs/conf.py
Show inline comments
 
@@ -108,18 +108,18 @@ html_theme = 'default'
 

	
 
# A shorter title for the navigation bar.  Default is the same as html_title.
 
#html_short_title = None
 

	
 
# The name of an image file (relative to this directory) to place at the top
 
# of the sidebar.
 
#html_logo = None
 
html_logo = "images/logo.png"
 

	
 
# The name of an image file (within the static path) to use as favicon of the
 
# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
 
# pixels large.
 
#html_favicon = None
 
html_favicon = "images/favicon.ico"
 

	
 
# Add any paths that contain custom static files (such as style sheets) here,
 
# relative to this directory. They are copied after the builtin static files,
 
# so a file named "default.css" will overwrite the builtin "default.css".
 
html_static_path = ['_static']
 

	
docs/images/branko.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
docs/images/branko_inverted.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
docs/images/favicon.ico
Show inline comments
 
new file 100644
 
binary diff not shown
docs/images/logo.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
docs/images/pydenticon.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
docs/images/pydenticon_inverted.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
docs/index.rst
Show inline comments
 
Pydenticon documentation
 
========================
 

	
 
.. image:: images/pydenticon.png
 
.. image:: images/pydenticon_inverted.png
 

	
 
Pydenticon is a small utility library that can be used for deterministically
 
generating identicons based on the hash of provided data.
 

	
 
The implementation is a port of the Sigil identicon implementation from:
 

	
 
* https://github.com/cupcake/sigil/
0 comments (0 inline, 0 general)