{ "info": { "author": "Dave Snider", "author_email": "dave.snider@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Documentation", "Topic :: Software Development :: Documentation" ], "description": ".. _readthedocs.org: http://www.readthedocs.org\n.. _bower: http://www.bower.io\n.. _sphinx: http://www.sphinx-doc.org\n.. _compass: http://www.compass-style.org\n.. _sass: http://www.sass-lang.com\n.. _wyrm: http://www.github.com/snide/wyrm/\n.. _grunt: http://www.gruntjs.com\n.. _node: http://www.nodejs.com\n.. _demo: http://docs.readthedocs.org\n.. _hidden: http://sphinx-doc.org/markup/toctree.html\n\n**************************\nRead the Docs Sphinx HAND Theme\n**************************\n\n.. contents:: \n\nView a working demo_ over on readthedocs.org_.\n\nThis is a mobile-friendly sphinx_ theme I made for readthedocs.org_.\n\nIf you'd like to update the theme,\nplease make your edits to the SASS files here,\nrather than the .css files on checked into the repo.\n\n.. image:: screen_mobile.png\n :width: 100%\n\nInstallation\n============\n\nVia package\n-----------\n\nDownload the package or add it to your ``requirements.txt`` file:\n\n.. code:: bash\n\n $ pip install sphinx_hand_theme\n\nIn your ``conf.py`` file:\n\n.. code:: python\n\n import sphinx_hand_theme\n\n html_theme = \"sphinx_hand_theme\"\n\n html_theme_path = [sphinx_hand_theme.get_html_theme_path()]\n\nVia git or download\n-------------------\n\nSymlink or subtree the ``sphinx_hand_theme/sphinx_hand_theme`` repository into your documentation at\n``docs/_themes/sphinx_hand_theme`` then add the following two settings to your Sphinx\nconf.py file:\n\n.. code:: python\n\n html_theme = \"sphinx_hand_theme\"\n html_theme_path = [\"_themes\", ]\n\nConfiguration\n=============\n\nYou can configure different parts of the theme.\n\nProject-wide configuration\n--------------------------\n\nThe theme's project-wide options are defined in the ``sphinx_hand_theme/theme.conf``\nfile of this repository, and can be defined in your project's ``conf.py`` via\n``html_theme_options``. For example:\n\n.. code:: python\n\n html_theme_options = {\n 'collapse_navigation': False,\n 'display_version': False,\n 'navigation_depth': 3,\n }\n\nThe following options are available:\n\n* ``canonical_url`` This will specify a `canonical url `__\n to let search engines know they should give higher ranking to latest version of the docs.\n The url points to the root of the documentation and requires a trailing slash.\n\nPage-level configuration\n------------------------\n\nPages support metadata that changes how the theme renders.\nYou can currently add the following:\n\n* ``:github_url:`` This will force the \"Edit on GitHub\" to the configured URL\n* ``:bitbucket_url:`` This will force the \"Edit on Bitbucket\" to the configured URL\n* ``:gitlab_url:`` This will force the \"Edit on GitLab\" to the configured URL\n\nHow the Table of Contents builds\n================================\n\nCurrently the left menu will build based upon any ``toctree(s)`` defined in your index.rst file.\nIt outputs 2 levels of depth, which should give your visitors a high level of access to your\ndocs. If no toctrees are set the theme reverts to sphinx's usual local toctree.\n\nIt's important to note that if you don't follow the same styling for your rST headers across\nyour documents, the toctree will misbuild, and the resulting menu might not show the correct\ndepth when it renders.\n\nAlso note that the table of contents is set with ``includehidden=true``. This allows you\nto set a hidden toc in your index file with the hidden_ property that will allow you\nto build a toc without it rendering in your index.\n\nBy default, the navigation will \"stick\" to the screen as you scroll. However if your toc\nis vertically too large, it will revert to static positioning. To disable the sticky nav\naltogether change the setting in ``conf.py``.\n\nContributing or modifying the theme\n===================================\n\nThe sphinx_hand_theme is primarily a sass_ project that requires a few other sass libraries. I'm\nusing bower_ to manage these dependencies and sass_ to build the css. The good news is\nI have a very nice set of grunt_ operations that will not only load these dependencies, but watch\nfor changes, rebuild the sphinx demo docs and build a distributable version of the theme.\nThe bad news is this means you'll need to set up your environment similar to that\nof a front-end developer (vs. that of a python developer). That means installing node and ruby.\n\nSet up your environment\n-----------------------\n\n1. Install sphinx_ into a virtual environment.\n\n.. code::\n\n pip install sphinx\n\n2. Install sass\n\n.. code::\n\n gem install sass\n\n2. Install node, bower and grunt.\n\n.. code::\n\n // Install node\n brew install node\n\n // Install bower and grunt\n npm install -g bower grunt-cli\n\n // Now that everything is installed, let's install the theme dependecies.\n npm install\n\nNow that our environment is set up, make sure you're in your virtual environment, go to\nthis repository in your terminal and run grunt:\n\n.. code::\n\n grunt\n\nThis default task will do the following **very cool things that make it worth the trouble**.\n\n1. It'll install and update any bower dependencies.\n2. It'll run sphinx and build new docs.\n3. It'll watch for changes to the sass files and build css from the changes.\n4. It'll rebuild the sphinx docs anytime it notices a change to .rst, .html, .js\n or .css files.\n\nBefore you create an issue\n--------------------------\n\nI don't have a lot of time to maintain this project due to other responsibilities.\nI know there are a lot of Python engineers out there that can't code sass / css and\nare unable to submit pull requests. That said, submitting random style bugs without\nat least providing sample documentation that replicates your problem is a good\nway for me to ignore your request. RST unfortunately can spit out a lot of things\nin a lot of ways. I don't have time to research your problem for you, but I do\nhave time to fix the actual styling issue if you can replicate the problem for me.\n\nTODO\n====\n\n* Separate some sass variables at the theme level so you can overwrite some basic colors.", "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/tddv/sphinx_hand_theme/", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "sphinx_hand_theme", "package_url": "https://pypi.org/project/sphinx_hand_theme/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/sphinx_hand_theme/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/tddv/sphinx_hand_theme/" }, "release_url": "https://pypi.org/project/sphinx_hand_theme/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Read the Docs theme for hand", "version": "1.0.0" }, "last_serial": 2757273, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "d0d39a1d2a901208c5793628a64009d5", "sha256": "a5fa801f574a794f5774edf4c45f3a9f36c123989df5edef87f5fddc6129e6ba" }, "downloads": -1, "filename": "sphinx_hand_theme-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d0d39a1d2a901208c5793628a64009d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1465155, "upload_time": "2017-04-06T10:28:09", "url": "https://files.pythonhosted.org/packages/5d/5c/519a956961be56a200d740be51db437dc9d9062c5d767a3733f1c884852e/sphinx_hand_theme-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d0d39a1d2a901208c5793628a64009d5", "sha256": "a5fa801f574a794f5774edf4c45f3a9f36c123989df5edef87f5fddc6129e6ba" }, "downloads": -1, "filename": "sphinx_hand_theme-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d0d39a1d2a901208c5793628a64009d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1465155, "upload_time": "2017-04-06T10:28:09", "url": "https://files.pythonhosted.org/packages/5d/5c/519a956961be56a200d740be51db437dc9d9062c5d767a3733f1c884852e/sphinx_hand_theme-1.0.0.tar.gz" } ] }