{ "info": { "author": "Evan Widloski", "author_email": "evan@evanw.org", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3" ], "description": "# legoman\n\n![logo](https://i.imgur.com/VJGdOWe.png)\n\nA tiny static web generator in 60 lines.\n\nSupports TOC, image captions, LaTeX, code highlighting and tables.\n\n[Demo](http://evanw.org/projects/legoman_demo)\n\n# Usage\n\n``` bash\npip install legoman\n\n# in an empty directory\nlegoman init\nmake html\n\n# run devserver (requires inotify-tools)\nmake devserver\n```\n\n# How it works\n\n- `.md` files are rendered using the template specified in their frontmatter\n- `.j2` files are rendered with Jinja2. They can loop over `.md` files and access their metadata\n- all other files are symlinked to `output/`\n\nFor example, the demo `content/`:\n```\ncontent\n\u251c\u2500\u2500 codehilite.css\n\u251c\u2500\u2500 index.j2\n\u251c\u2500\u2500 projects\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bar_proj\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 index.md\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 foo_proj\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 cheetos_small.png\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 index.md\n\u2514\u2500\u2500 styles.css\n```\n\nyields this `output/`\n```\noutput\n\u251c\u2500\u2500 codehilite.css\n\u251c\u2500\u2500 index.html\n\u251c\u2500\u2500 projects\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bar_proj\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 index.html\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 foo_proj\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 cheetos_small.png\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 index.html\n\u2514\u2500\u2500 styles.css\n```\n\n# See also\n- [Hugo](https://github.com/gohugoio/hugo) - similar idea, but written in Go and uses Go's templating engine\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/evidlo/legoman", "keywords": "static web generator jinja2 markdown", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "legoman", "package_url": "https://pypi.org/project/legoman/", "platform": "", "project_url": "https://pypi.org/project/legoman/", "project_urls": { "Homepage": "https://github.com/evidlo/legoman" }, "release_url": "https://pypi.org/project/legoman/1.post1/", "requires_dist": [ "jinja2", "markdown", "python-markdown-math", "httpwatcher", "mdx-include", "markdown-captions", "ghp-import", "click" ], "requires_python": "", "summary": "a tiny static website generator", "version": "1.post1" }, "last_serial": 5166810, "releases": { "1": [ { "comment_text": "", "digests": { "md5": "5fd2642cc69bad5d1b82f33960a754e4", "sha256": "ea786ead2e3c0068ab03359a6ac5b681470b7a80c21731fbf8bc0031b9c5b823" }, "downloads": -1, "filename": "legoman-1-py3-none-any.whl", "has_sig": false, "md5_digest": "5fd2642cc69bad5d1b82f33960a754e4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 54334, "upload_time": "2019-04-20T02:50:06", "url": "https://files.pythonhosted.org/packages/ef/7e/a9954116b75965717efecf6b6542bab76ea9e70845778a51326b7c495784/legoman-1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a3889fc236f7d31dd3be101642809c1e", "sha256": "335b68e0e9ee6153e54388273fb4a739e480cfec0d2aa58e035832fe36fd1307" }, "downloads": -1, "filename": "legoman-1.tar.gz", "has_sig": false, "md5_digest": "a3889fc236f7d31dd3be101642809c1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51039, "upload_time": "2019-04-20T02:50:08", "url": "https://files.pythonhosted.org/packages/5d/67/ae6e98db981a82f001f21f62fbf7323a61d64a3b2b521b071f7a83111a6c/legoman-1.tar.gz" } ], "1.post1": [ { "comment_text": "", "digests": { "md5": "bb865e717b85b29e395f9eeb7deb246a", "sha256": "b3562490180971abff026fab6ffae47ce2a21eef50baf07734b464c6ff67fefd" }, "downloads": -1, "filename": "legoman-1.post1-py3-none-any.whl", "has_sig": false, "md5_digest": "bb865e717b85b29e395f9eeb7deb246a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 93633, "upload_time": "2019-04-20T03:09:36", "url": "https://files.pythonhosted.org/packages/33/1c/f872bc87cd26802de195d5dc9031ccabb433ca23c1c9ef6705ff76e9aa49/legoman-1.post1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bb865e717b85b29e395f9eeb7deb246a", "sha256": "b3562490180971abff026fab6ffae47ce2a21eef50baf07734b464c6ff67fefd" }, "downloads": -1, "filename": "legoman-1.post1-py3-none-any.whl", "has_sig": false, "md5_digest": "bb865e717b85b29e395f9eeb7deb246a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 93633, "upload_time": "2019-04-20T03:09:36", "url": "https://files.pythonhosted.org/packages/33/1c/f872bc87cd26802de195d5dc9031ccabb433ca23c1c9ef6705ff76e9aa49/legoman-1.post1-py3-none-any.whl" } ] }