{ "info": { "author": "Daniil Minukhin", "author_email": "ddddsa@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Documentation", "Topic :: Utilities" ], "description": "![](https://img.shields.io/pypi/v/foliantcontrib.project_graph.svg)\n\n# ProjectGraph\n\nFoliant Meta Command which draws a scheme of project sections. This extension uses meta-information, collected by folinatcontrib.meta extension.\n\n[Graphviz](http://graphviz.org) is used to build a scheme.\n\n`libgraphviz-dev` is required to be installed on your machine.\n\n## Installation\n\n```bash\n$ pip install foliantcontrib.project_graph\n```\n\n## Usage\n\nFirst you need to specify all relations between the documents in your project. To do this add the `relates` section to your document's meta-data:\n\n```yaml\n---\nrelates:\n - tests/test1.md\n - specs/spec.md\n---\n```\n\nin `relates` section you need to specify a list of documents to which current document relates. You can specify either a relative path to connected document or its ID (if the corresponding document has an ID assigned in its meta section):\n\n\n```yaml\n# index.md\n---\nid: index\n---\n```\n\n```yaml\n# glossary.md\n---\nrelates:\n - index\n---\n```\n\nAfter you specified all relations, run the draw command:\n\n```bash\n$ foliant draw\n```\n\nScheme will appear in the file `project_graph.png`\n\n## Config\n\nProjectGraph has a number of options:\n\n```yaml\nproject_graph:\n directed: false\n filename: project_graph.png\n gv_attributes:\n node:\n shape: rect\n color: green\n edge:\n arrowhead: open\n graph:\n ranksep: 1\n main_relation:\n penwidth: 2\n```\n\n`directed`\n: Specifies graph to be directed or not. Default: `false`\n\n`filename`\n: Graph output filename. Default: `project_graph.png`\n\n`gv_attributes`\n: A dictionary with global attributes of the graph. Each dictionary should be stored under the Graphviz Entity key (`node`, `edge`, or `graph`), or under type key. All sections or relations which have this type will get these attributes.\n\nIf you want to adjust the look of just one node, add a `gv_attributes` option into the meta of the document:\n\n```yaml\n---\nid: index\nrelates:\n - glossary\ngv_attributes:\n color: green\n shape: circle\n---\n```\n\nYou can also change the look of the edges, which connect nodes. To do this you can use a detailed syntax of relations.\n\n## Relations detailed syntax\n\nAs stated in the beginning, to specify relations you need to add a `relates` param and include a list of related documents IDs\\\\file paths:\n\n```yaml\n---\nrelates:\n - doc1.md\n - MAIN_SPEC\n---\n```\n\nBut there's also a detailed syntax for specifying relations, it looks like this:\n\n```yaml\n---\nrelates:\n - rel_path: doc1.md\n type: details\n - rel_id: MAIN_SPEC\n gv_attributes:\n color: #CCCCCC\n arrowhead: none\n---\n```\n\nIn the detailed syntax each relation is not a string, but a mapping. This time you have to explicitly use either `rel_path` key, if you are pointing to a document by path, or `rel_id` if you do it by ID.\n\nAlso you can specify relation type by adding a `type` key. Right now the value of this key just goes to the edge label, but soon you'll be able to change the appearance of all edges with one type.\n\nFinally you can override this specific edge's appearance by adjusting Graphviz attributes in the `gv_attributes` key.\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/foliant-docs/foliantcontrib.project_graph", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "foliantcontrib.project-graph", "package_url": "https://pypi.org/project/foliantcontrib.project-graph/", "platform": "any", "project_url": "https://pypi.org/project/foliantcontrib.project-graph/", "project_urls": { "Homepage": "https://github.com/foliant-docs/foliantcontrib.project_graph" }, "release_url": "https://pypi.org/project/foliantcontrib.project-graph/1.0.1/", "requires_dist": [ "foliant (>=1.0.4)", "pygraphviz", "foliantcontrib.meta" ], "requires_python": "", "summary": "Foliant Meta Command which draws a scheme of project sections.", "version": "1.0.1" }, "last_serial": 5790250, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "c3e41d836562bd19e3b9300eafcfc363", "sha256": "cd262a58ecce70824e076e0551090303c3e4c882f7aaa8d0c4697db9f2006724" }, "downloads": -1, "filename": "foliantcontrib.project_graph-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c3e41d836562bd19e3b9300eafcfc363", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6859, "upload_time": "2019-06-28T14:45:37", "url": "https://files.pythonhosted.org/packages/ad/68/4f8eb2f0f00b51387fea2dd6b2b1b2a878a22e4b3718430339199ccab8b8/foliantcontrib.project_graph-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "539396e2c55bc7229f909057a1e928f5", "sha256": "c1be5fe0a8fdcabdeba0052ae7268c94afd188ad6bbe8bc003f26bdc5b665c5b" }, "downloads": -1, "filename": "foliantcontrib.project_graph-1.0.0.tar.gz", "has_sig": false, "md5_digest": "539396e2c55bc7229f909057a1e928f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5496, "upload_time": "2019-06-28T14:45:39", "url": "https://files.pythonhosted.org/packages/8e/3b/31e0fbea1e7d280fb7ff70dff8eca567ca566647140f4fd385358ba6ecd0/foliantcontrib.project_graph-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "3b76969b6bec731da7967a51cf32e53e", "sha256": "89cf6cadf9f9d2ac69e3db0ff61adae53b3bd489005919cc14082969a45281e3" }, "downloads": -1, "filename": "foliantcontrib.project_graph-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3b76969b6bec731da7967a51cf32e53e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6856, "upload_time": "2019-07-01T15:55:56", "url": "https://files.pythonhosted.org/packages/13/ae/03f8a29c2512ed4e24ab50f70636e15f67fa36fb38fdd092a7344ea06fb0/foliantcontrib.project_graph-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "05949c38639e615e1f0953802e00afd1", "sha256": "c7892ab8df5216a4410941493150181510ff9514e76c89b00ce8c9deecf78ef5" }, "downloads": -1, "filename": "foliantcontrib.project_graph-1.0.1.tar.gz", "has_sig": false, "md5_digest": "05949c38639e615e1f0953802e00afd1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5492, "upload_time": "2019-07-01T15:55:58", "url": "https://files.pythonhosted.org/packages/3f/31/5083cd37dde376f296dfb2ef58aa17ad4c908994a5d2504f19108db01450/foliantcontrib.project_graph-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3b76969b6bec731da7967a51cf32e53e", "sha256": "89cf6cadf9f9d2ac69e3db0ff61adae53b3bd489005919cc14082969a45281e3" }, "downloads": -1, "filename": "foliantcontrib.project_graph-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3b76969b6bec731da7967a51cf32e53e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6856, "upload_time": "2019-07-01T15:55:56", "url": "https://files.pythonhosted.org/packages/13/ae/03f8a29c2512ed4e24ab50f70636e15f67fa36fb38fdd092a7344ea06fb0/foliantcontrib.project_graph-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "05949c38639e615e1f0953802e00afd1", "sha256": "c7892ab8df5216a4410941493150181510ff9514e76c89b00ce8c9deecf78ef5" }, "downloads": -1, "filename": "foliantcontrib.project_graph-1.0.1.tar.gz", "has_sig": false, "md5_digest": "05949c38639e615e1f0953802e00afd1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5492, "upload_time": "2019-07-01T15:55:58", "url": "https://files.pythonhosted.org/packages/3f/31/5083cd37dde376f296dfb2ef58aa17ad4c908994a5d2504f19108db01450/foliantcontrib.project_graph-1.0.1.tar.gz" } ] }