1
0
mirror of https://github.com/balkian/balkian.github.com.git synced 2025-08-23 04:02:20 +00:00

Minor CSS fixes and markdown2rst.

This commit is contained in:
J. Fernando Sánchez
2015-12-08 01:40:08 +01:00
parent d9e3d07c14
commit e28bd8ac94
7 changed files with 54 additions and 79 deletions

View File

@@ -39,6 +39,9 @@ clone and deploy it easily like this:
https://github.com/balkian/balkian.github.com cd balkian.github.com
jekyll serve -w
I will keep updating this post with information about: \* Some Jekyll
plugins that might be useful \* What CSS tricks I learnt \* The webfonts
I used \* The badge on the left side of the page
I will keep updating this post with information about:
* Some Jekyll plugins that might be useful
* What CSS tricks I learnt
* The webfonts I used
* The badge on the left side of the page

View File

@@ -26,11 +26,12 @@ new technologies and improve it:
- Automatic generation of fake personal data to test the interface
- Obfuscation of personal emails
The result can be `seen here <http://eurolovemap.herokuapp.com/>`_.
Publishing a Python 3 app on Heroku
-----------------------------------
`seen here <http://eurolovemap.herokuapp.com/>`__
.. code-block:: bash
mkvirtualenv -p /usr/bin/python3.3 eurolovemap

View File

@@ -23,7 +23,7 @@ memorability over describing the functionality.
Create a .pypirc configuration file
-----------------------------------
.. code:: cfg
.. code-block:: cfg
[distutils] # this tells distutils what package indexes you can push to
index-servers =
@@ -47,6 +47,7 @@ The usernames and passwords might be different, that is up to you!
Prepare your package
--------------------
This should be the structure:
::
@@ -64,7 +65,7 @@ Prepare your package
setup.cfg
~~~~~~~~~
.. code:: cfg
.. code-block:: cfg
[metadata]
description-file = README.md
@@ -75,21 +76,27 @@ also use rST (reStructuredText), the standard in the python community.
setup.py
~~~~~~~~
{% highlight python %} from distutils.core import setup setup( name =
'mypackage', packages = ['mypackage'], # this must be the same as the
name above version = '{ version }', description = '{ description }',
author = '{ name }', author\_email = '{ email }', url =
'https://github.com/{user}/{package}', # URL to the github repo
download\_url = 'https://github.com/{user}/{repo}/tarball/{version}',
keywords = ['websockets', 'display', 'd3'], # list of keywords that
represent your package classifiers = [], ) {% endhighlight %}
.. code-block:: python
from distutils.core import setup
setup(name = 'mypackage',
packages = ['mypackage'], # this must be the same as the name above
version = '{ version }',
description = '{ description }',
author = '{ name }',
email = '{ email }',
url = 'https://github.com/{user}/{package}', # URL to the github repo
download\_url = 'https://github.com/{user}/{repo}/tarball/{version}',
keywords = ['websockets', 'display', 'd3'], # list of keywords that represent your package
classifiers = [], )
You might notice that the download\_url points to a Github URL. We could
host our package anywhere, but Github is a convenient option. To create
the tarball and the zip packages, you only need to tag a tag in your
repository and push it to github:
::
.. code-block:: bash
git tag {version} -m "{ Description of this tag/version}"
git push --tags origin master