{ "info": { "author": "Marcelo Canina", "author_email": "me@marcanuy.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 2.1", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "MdPages - Markdown Pages\n========================\n\nMdpages is a simple Django app to generate pages from Markdown files.\n\nPages also can have a Table of Content automatically generated based\non headings.\n\nQuick start\n-----------\n\nSupposing you want to create an **About** page, having the markdown\nfile at `/pages/content/about.md`.\n\n1. Add \"mdpages\" to your INSTALLED_APPS setting like this:\n\n.. code:: python\n\n INSTALLED_APPS = [\n\t ...\n\t 'mdpages',\n ]\n\n2. Set the location of the directory that will contain the Markdown\n files in settings with `MDPAGES_CONTENT_DIR`:\n\n.. code:: python\n\n MDPAGES_CONTENT_DIR = '{}/pages/content/'.format(BASE_DIR)\n\n3. Add the template that will contain the Markdown generated content,\n you will have two variables available: `body` and `toc` (for the\n table of contents), for example create a template\n `/templates/mdpages/page.html` with contents like:\n\n.. code:: python\n\n {% extends \"base.html\" %}\n\n {% block title %}{{title}}{%endblock%}\n {% block description %}{{description}}{%endblock%}\n\n {% block content %}\n