{ "info": { "author": "Ryan Conway", "author_email": "ryan@rjc.cc", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Documentation" ], "description": "# MkDocs Nav Enhancements\n\nThis is a small plugin for the excellent [MkDocs](https://www.mkdocs.org) project which makes some enhancements to the navigation.\n\n## Features\n\n### Enhanced titles\n\nBy default, MkDocs looks for a level 1 atx-style header found at the top of the document and uses that for the page title.\n\nIf you are dealing with documentation from third-party sources you may find that some of them start their titles at level 2 (possibly for aesthetic reasons), or use setext-style headers instead.\n\nThis plugin will try to help by looking through each Markdown document and using the following rules to detect a page title instead:\n\n* Use the first atx-style header found in the document at any level between 1 to 6, which is any line beginning with between 1 to 6 '#' characters.\n\n* Or use the first setext-style header, which is any line where the line immediately after contains only '=' or '-' characters, effectively 'underlining' the line.\n\nIt will also remove any additional markup that is found in the title, such as image or link tags, which would otherwise be rendered as string literals in the generated HTML.\n\n### Reduced folders\n\nIn order to de-clutter the navigation, the plugin looks for any sections containing only one page, and tries to collapse that page up a level into its parent. This helps deal with navigation bars filled with single-page folders to keep things looking tidy.\n\n## Usage\n\nInstall the plugin:\n\n```bash\npip install mkdocs-nav-enhancements\n```\n\nAdd the plugin to your `mkdocs.yml` [MkDocs configuration](https://www.mkdocs.org/user-guide/configuration/) file:\n\n```yaml\nplugins:\n - mkdocs-nav-enhancements\n```\n\n## Known issues\n\nWhen changing the page title, or collapsing single-page folders, this can sometimes result in the effective page title being quite different. Currently this plugin does not re-sort the nav bar alphabetically when this happens.\n\nA second issue is that these options are not independently controllable, at least not in the first version; it's all or nothing for now!\n\n## Contributing\n\nSource code is hosted at [GitHub](https://github.com/Rylon/mkdocs-nav-enhancements).\n\nPlease report issues and feature requests on [GitHub Issues](https://github.com/Rylon/mkdocs-nav-enhancements).\n\nPull Requests are also welcome!\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rylon/mkdocs-nav-enhancements", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "mkdocs-nav-enhancements", "package_url": "https://pypi.org/project/mkdocs-nav-enhancements/", "platform": "", "project_url": "https://pypi.org/project/mkdocs-nav-enhancements/", "project_urls": { "Homepage": "https://github.com/rylon/mkdocs-nav-enhancements" }, "release_url": "https://pypi.org/project/mkdocs-nav-enhancements/0.9.1/", "requires_dist": [ "mkdocs (>=1)" ], "requires_python": "", "summary": "This is a small plugin for the excellent MkDocs project which makes some enhancements to the navigation.", "version": "0.9.1" }, "last_serial": 5568131, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "68090cf70e49beb61b1490a3a2b3ae08", "sha256": "ad209d5ba3097ff2a0625db47279d94b3b85720bc6a961b0abd4ff51974340e1" }, "downloads": -1, "filename": "mkdocs_nav_enhancements-0.9.0-py3-none-any.whl", "has_sig": false, "md5_digest": "68090cf70e49beb61b1490a3a2b3ae08", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5917, "upload_time": "2019-07-22T16:23:39", "url": "https://files.pythonhosted.org/packages/7e/9b/15acb4f6c4f2fcd70c717b8e1886fb32f07adc2eb40e00ebcff1e84d5f5d/mkdocs_nav_enhancements-0.9.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "64b2dc109ef84425fc98ec12adbf42ba", "sha256": "acfa4c7528c7d167d9ab80f455d962a858cc7bb5c3c6b0988b32017ec94b452b" }, "downloads": -1, "filename": "mkdocs-nav-enhancements-0.9.0.tar.gz", "has_sig": false, "md5_digest": "64b2dc109ef84425fc98ec12adbf42ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4402, "upload_time": "2019-07-22T16:23:41", "url": "https://files.pythonhosted.org/packages/96/e7/4918fa69999e708a0dbd842c1647feeb8f000703b17c79463443a65c2227/mkdocs-nav-enhancements-0.9.0.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "b7e1bb6d255257c1a78a4ba5283dad2b", "sha256": "62d9e8a82e6f0dedb883ba64a75302778f71b09a16aee2a98c0c32f6c8ac70c4" }, "downloads": -1, "filename": "mkdocs_nav_enhancements-0.9.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b7e1bb6d255257c1a78a4ba5283dad2b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5916, "upload_time": "2019-07-22T16:27:20", "url": "https://files.pythonhosted.org/packages/8a/c5/b4c74847ad8806182ea6f0995de4b1ef99a53c9b05314da62ecb1cb1c58c/mkdocs_nav_enhancements-0.9.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ecdf8850e5ecaa35248e0706cb00e339", "sha256": "379c8724d06a979c191e0f479981cd7af9ae88affc596dba87976e84deabdb64" }, "downloads": -1, "filename": "mkdocs-nav-enhancements-0.9.1.tar.gz", "has_sig": false, "md5_digest": "ecdf8850e5ecaa35248e0706cb00e339", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4404, "upload_time": "2019-07-22T16:27:21", "url": "https://files.pythonhosted.org/packages/13/1b/07a6df922832bf13df3aaed03b9dfc24b2defe97668fbe3b5c75a8551916/mkdocs-nav-enhancements-0.9.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b7e1bb6d255257c1a78a4ba5283dad2b", "sha256": "62d9e8a82e6f0dedb883ba64a75302778f71b09a16aee2a98c0c32f6c8ac70c4" }, "downloads": -1, "filename": "mkdocs_nav_enhancements-0.9.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b7e1bb6d255257c1a78a4ba5283dad2b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5916, "upload_time": "2019-07-22T16:27:20", "url": "https://files.pythonhosted.org/packages/8a/c5/b4c74847ad8806182ea6f0995de4b1ef99a53c9b05314da62ecb1cb1c58c/mkdocs_nav_enhancements-0.9.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ecdf8850e5ecaa35248e0706cb00e339", "sha256": "379c8724d06a979c191e0f479981cd7af9ae88affc596dba87976e84deabdb64" }, "downloads": -1, "filename": "mkdocs-nav-enhancements-0.9.1.tar.gz", "has_sig": false, "md5_digest": "ecdf8850e5ecaa35248e0706cb00e339", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4404, "upload_time": "2019-07-22T16:27:21", "url": "https://files.pythonhosted.org/packages/13/1b/07a6df922832bf13df3aaed03b9dfc24b2defe97668fbe3b5c75a8551916/mkdocs-nav-enhancements-0.9.1.tar.gz" } ] }