{ "info": { "author": "Veit Schiele", "author_email": "kontakt@veit-schiele.de", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Framework :: Zope3", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "=================\nvs.zopeskel.diazo\n=================\n\n.. contents ::\n\nIntroduction\n============\n\n`ZopeSkel `_ template which allows\nindividual adaptations of the Bootstrap theme. Therefore it uses `z3c.jbot\n`_ to overwrite existing templates\nwith `z3c.jbot `_. \n\nAlso, you should use Less variables, mixins, etc. Therefore, the\n`Buildout `_ configuration file will also install\n`Bower `_ and `Grunt `_ to recompile the\nbootstrap Less files.\n\nRequirements\n============\n\n* This package is only compatible with ZopeSkel<3.0.\n\nInstallation\n============\n\nAdd these lines to your development buildout::\n\n [buildout]\n parts =\n zopeskel\n\n [zopeskel]\n recipe = zc.recipe.egg\n unzip = true\n eggs =\n PasteScript\n ZopeSkel\n vs.zopeskel.diazo\n\nRe-run buildout, e.g. with::\n\n $ ./bin/buildout -c devel.cfg\n\nCreate add on\n=============\n\nAdd ons under development are typically created in your buildout\u2019s ``src``\ndirectory. To add a package named ``my.theme`` you can enter the following\nin the terminal::\n\n $ cd src/\n $ ../bin/zopeskel bootstrap my.theme\n\nThis will create a Python package with a directory structure like this::\n\n my.theme\n \u251c\u2500\u2500 bootstrap.py\n \u251c\u2500\u2500 buildout.cfg\n \u251c\u2500\u2500 docs\n \u2502\u00a0\u00a0 \u251c\u2500\u2500 INSTALL.txt\n \u2502\u00a0\u00a0 \u251c\u2500\u2500 LICENSE.GPL\n \u2502\u00a0\u00a0 \u2514\u2500\u2500 LICENSE.txt\n \u251c\u2500\u2500 my\n \u2502\u00a0\u00a0 \u2514\u2500\u2500 theme\n \u2502\u00a0\u00a0 \u251c\u2500\u2500 configure.zcml\n \u2502\u00a0\u00a0 \u251c\u2500\u2500 diazo_resources\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 favicon.ico\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 img\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 apple-touch-icon-144x144-precomposed.png\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 apple-touch-icon-57x57-precomposed.png\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 apple-touch-icon-72x72-precomposed.png\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 apple-touch-icon.png\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 apple-touch-icon-precomposed.png\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 index.html\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 manifest.cfg\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 preview.png\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 rules.xml\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 static\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 css\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 main.css\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 fonts\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 img\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 js\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 main.js\n \u2502\u00a0\u00a0 \u251c\u2500\u2500 Gruntfile.js\n \u2502\u00a0\u00a0 \u251c\u2500\u2500 interfaces.py\n \u2502\u00a0\u00a0 \u251c\u2500\u2500 locales\n \u2502\u00a0\u00a0 \u251c\u2500\u2500 overrides\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 plone.app.layout.viewlets.footer.pt\n \u2502\u00a0\u00a0 \u251c\u2500\u2500 profiles\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 default\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 browserlayer.xml\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 cssregistry.xml\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 jsregistry.xml\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 metadata.xml\n \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 theme.xml\n \u2502\u00a0\u00a0 \u2514\u2500\u2500 version.txt\n \u251c\u2500\u2500 setup.cfg\n \u2514\u2500\u2500 setup.py\n\nGenerate the theme\n==================\n\nTo genereate the theme you can switch to your newly created product annd run\nbuildout, e.g.::\n\n $ cd src/my.theme\n $ python bootstrap.py\n $ ./bin/buildout\n\nNow you can start the instance and activate ``my.theme`` in *control panel* \u2192\n*Extensions*.\n\nCustomize the theme\n===================\n\n#. Change the bootstrap css instructions and fonts:\n\n #. You can customize the bootstrap less variables e.g. in\n ``src/my.theme/my/theme/bower_components/bootstrap/less/variables.less``.\n #. In addition, you can write your own less instructions in\n ``src/my.theme/my/theme/less/custom.less``.\n #. Special fonts can be added in ``/bower_components/bootstrap/dist/fonts/``.\n #. Finally the less files can be recompiled e.g. with::\n\n $ cd src/my.theme/my/theme\n $ ./node_modules/bower/bin/bower install\n $ ./node_modules/grunt-cli/bin/grunt less\n $ ./node_modules/grunt-cli/bin/grunt copy\n\n#. Change the bootstrap grid:\n\n The initial grid is defined in ``my/theme/theme/index.html``::\n\n
\n
\n \n
\n \u2026\n
\n \n
\n
\n\n If you want to define another grid, bootstrap provide many more\n opportunities, see `Bootstrap grid system `_.\n\n#. Overriding templates\n\n You can easily change templates by copy them into the ``overrides`` folder,\n e.g. from ``eggs/plone.app.layout-2.5.1-py2.7.egg/plone/app/layout/viewlets/footer.pt``\n to ``src/my.theme/my/theme/overrides/plone.app.layout.viewlets.footer.pt``.\n\nOther resources\n---------------\n\n``diazo_resources``\n^^^^^^^^^^^^^^^^^^^\n\n``diazo_resources/static``\n^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n``locales``\n^^^^^^^^^^^\n\n``profiles/default``\n^^^^^^^^^^^^^^^^^^^^\n\nUsally the files ``public.css``, ``columns.css`` and ``portlets.css`` are not\ndelivered with yout theme because of the TAL expression\n``not: request/HTTP_X_THEME_ENABLED``. \n \n``overrides``\n^^^^^^^^^^^^^\n\n\n\nChangelog\n=========\n\n1.0 (2014-06-09)\n----------------\n\n* Initial release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/veit/vs.zopeskel.diazo", "keywords": "plone zope diazo bootstrap", "license": "GPL 2", "maintainer": null, "maintainer_email": null, "name": "vs.zopeskel.diazo", "package_url": "https://pypi.org/project/vs.zopeskel.diazo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/vs.zopeskel.diazo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/veit/vs.zopeskel.diazo" }, "release_url": "https://pypi.org/project/vs.zopeskel.diazo/1.0/", "requires_dist": null, "requires_python": null, "summary": "Paster templates for Plone Diazo theme package", "version": "1.0" }, "last_serial": 1119202, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "fa6540c6f7184c7ca9b0ff8d1666c8e2", "sha256": "0e81acac56748ce1ba400238408e203d8e94888878fa65d4aff52de5bab92a65" }, "downloads": -1, "filename": "vs.zopeskel.diazo-1.0.zip", "has_sig": false, "md5_digest": "fa6540c6f7184c7ca9b0ff8d1666c8e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 48824, "upload_time": "2014-06-09T13:33:54", "url": "https://files.pythonhosted.org/packages/14/29/3ddda5a4e83bf5d1c2205dd6717b5d82d875f376b0931e18a5d53640547e/vs.zopeskel.diazo-1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fa6540c6f7184c7ca9b0ff8d1666c8e2", "sha256": "0e81acac56748ce1ba400238408e203d8e94888878fa65d4aff52de5bab92a65" }, "downloads": -1, "filename": "vs.zopeskel.diazo-1.0.zip", "has_sig": false, "md5_digest": "fa6540c6f7184c7ca9b0ff8d1666c8e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 48824, "upload_time": "2014-06-09T13:33:54", "url": "https://files.pythonhosted.org/packages/14/29/3ddda5a4e83bf5d1c2205dd6717b5d82d875f376b0931e18a5d53640547e/vs.zopeskel.diazo-1.0.zip" } ] }