{ "info": { "author": "Jean Pimentel", "author_email": "contato@jeanpimentel.com.br", "bugtrack_url": null, "classifiers": [], "description": "# Contents\n\n> Put a table of contents in your files!\n\n\n#### Note:\n![](https://cdn1.iconfinder.com/data/icons/16x16-free-toolbar-icons/16/58.png) **Currently, only css/javascript files are supported. In fact, files of languages with __/* BlockComment */__ syntax. I'm working on it.**\n\n## How it works\n\n### Before:\n```css\n/* > HTML5 display-role reset for older browsers\n============================================================================= */\nbutton, input, select, textarea {\n width:auto;\n overflow:visible;\n margin:0;\n font-size:100%;\n vertical-align:baseline;\n}\n\ntextarea {\n overflow:auto;\n vertical-align:text-top;\n}\n\n/* >> Buttons\n============================================================================= */\nbutton,\na.button,\ninput[type='reset'],\ninput[type='button'],\ninput[type='submit'] {\n background-color:#eaeaea;\n border:1px solid #ccc;\n color:#555;\n}\n\nbutton:hover,\na.button:hover,\ninput[type='reset']:hover,\ninput[type='button']:hover,\ninput[type='submit']:hover {\n background-color:#ececec;\n border:1px solid #bbb;\n color:#555;\n}\n\n/* >>> Buttons (Call to Action)\n============================================================================= */\n.call-to-action {\n text-align:center;\n}\n\n.call-to-action a.button {\n font-size:24px;\n padding:15px 35px;\n}\n\n.call-to-action a.button:hover {\n text-decoration:none;\n}\n\n.ie7 .call-to-action a.button {\n padding:15px 35px 18px 35px;\n}\n\n/* >>> Buttons (Sizes)\n============================================================================= */\n.small a.button {\n font-size:10px;\n padding:3px 6px;\n}\n\n.medium a.button {\n font-size:16px;\n padding:8px 16px;\n}\n\n.large a.button {\n font-size:18px;\n padding:10px 35px;\n}\n\n.xlarge a.button {\n font-size:24px;\n padding:12px 55px;\n}\n```\n\n### After:\n```css\n/* TABLE OF CONTENTS\n\n HTML5 display-role reset for older browsers ......................... 10\n Buttons ......................................................... 25\n Buttons (Call to Action) .................................... 47\n Buttons (Sizes) ............................................. 66\n\n============================================================================= */\n\n/* > HTML5 display-role reset for older browsers\n============================================================================= */\nbutton, input, select, textarea {\n width:auto;\n overflow:visible;\n margin:0;\n font-size:100%;\n vertical-align:baseline;\n}\n\ntextarea {\n overflow:auto;\n vertical-align:text-top;\n}\n\n/* >> Buttons\n============================================================================= */\nbutton,\na.button,\ninput[type='reset'],\ninput[type='button'],\ninput[type='submit'] {\n background-color:#eaeaea;\n border:1px solid #ccc;\n color:#555;\n}\n\nbutton:hover,\na.button:hover,\ninput[type='reset']:hover,\ninput[type='button']:hover,\ninput[type='submit']:hover {\n background-color:#ececec;\n border:1px solid #bbb;\n color:#555;\n}\n\n/* >>> Buttons (Call to Action)\n============================================================================= */\n.call-to-action {\n text-align:center;\n}\n\n.call-to-action a.button {\n font-size:24px;\n padding:15px 35px;\n}\n\n.call-to-action a.button:hover {\n text-decoration:none;\n}\n\n.ie7 .call-to-action a.button {\n padding:15px 35px 18px 35px;\n}\n\n/* >>> Buttons (Sizes)\n============================================================================= */\n.small a.button {\n font-size:10px;\n padding:3px 6px;\n}\n\n.medium a.button {\n font-size:16px;\n padding:8px 16px;\n}\n\n.large a.button {\n font-size:18px;\n padding:10px 35px;\n}\n\n.xlarge a.button {\n font-size:24px;\n padding:12px 55px;\n}\n```\n\n\n## Installation\n\n- Simple, using PyPI:\n\n```\nuser@machine:~$ [sudo] pip install contents\n```\n\n- or download the source and:\n\n```\nuser@machine:~$ [sudo] python setup.py install\n```\n\n\n## Usage\n\n- Command line:\n\n```\nuser@machine:~$ contents my-file.css\n```\n\n\n## License\n\nCopyright (C) 2013 Jean Pimentel \n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see .", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jeanpimentel/contents", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "contents", "package_url": "https://pypi.org/project/contents/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/contents/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jeanpimentel/contents" }, "release_url": "https://pypi.org/project/contents/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Put a table of contents in your files!", "version": "0.1.0" }, "last_serial": 833093, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "44f7ada0b4c462f5385a81f514b1dd66", "sha256": "9b19244334f12157a0b16292d55fad4df9d12dd06531ee846a16b47b2935a021" }, "downloads": -1, "filename": "contents-0.1.0.tar.gz", "has_sig": false, "md5_digest": "44f7ada0b4c462f5385a81f514b1dd66", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16303, "upload_time": "2013-08-06T02:08:36", "url": "https://files.pythonhosted.org/packages/8f/29/1e8d075038831bb690bb0113a9f313fb990a08e158272e913010296d90cf/contents-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "44f7ada0b4c462f5385a81f514b1dd66", "sha256": "9b19244334f12157a0b16292d55fad4df9d12dd06531ee846a16b47b2935a021" }, "downloads": -1, "filename": "contents-0.1.0.tar.gz", "has_sig": false, "md5_digest": "44f7ada0b4c462f5385a81f514b1dd66", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16303, "upload_time": "2013-08-06T02:08:36", "url": "https://files.pythonhosted.org/packages/8f/29/1e8d075038831bb690bb0113a9f313fb990a08e158272e913010296d90cf/contents-0.1.0.tar.gz" } ] }