{"id":21509229,"url":"https://github.com/mark24code/mini_mindmap","last_synced_at":"2025-07-18T15:33:40.874Z","repository":{"id":56883874,"uuid":"280051639","full_name":"Mark24Code/mini_mindmap","owner":"Mark24Code","description":"Mini DSL to create mindmap","archived":false,"fork":false,"pushed_at":"2020-07-27T03:47:31.000Z","size":57,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T19:04:38.089Z","etag":null,"topics":["dsl","mindmap","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/mini_mindmap","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mark24Code.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-16T04:20:00.000Z","updated_at":"2023-12-24T03:29:38.000Z","dependencies_parsed_at":"2022-08-20T23:40:27.637Z","dependency_job_id":null,"html_url":"https://github.com/Mark24Code/mini_mindmap","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mark24Code%2Fmini_mindmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mark24Code%2Fmini_mindmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mark24Code%2Fmini_mindmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mark24Code%2Fmini_mindmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mark24Code","download_url":"https://codeload.github.com/Mark24Code/mini_mindmap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248073780,"owners_count":21043474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dsl","mindmap","ruby"],"created_at":"2024-11-23T21:21:40.486Z","updated_at":"2025-04-09T16:53:50.099Z","avatar_url":"https://github.com/Mark24Code.png","language":"Ruby","readme":"# MiniMindmap\n\n## Prepare\n\nYou need install graphviz first.\n\n[graphviz download](http://www.graphviz.org/download/)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'mini_mindmap'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install mini_mindmap\n\n## Syntax\n\nPlantUML Mindmap Syntax\n\nWith Graphviz Config Syntax\n\n```\n\n* Subject\n** Foo\n** Bar [color=red] \n\n```\n\nSuppo Annotation with //\n\n```\n\n// one line annotation\n\n** Foo // you can add annotation here too\n\n```\n\n## Usage\n\nDSL Example\n\n```ruby\nrequire \"mini_mindmap\"\n\nname = 'mindmap' # filename\n\n# support add attrs http://www.graphviz.org/doc/info/attrs.html\nconfig = {\n  rankdir: \"LR\",# \"TB\", \"LR\", \"BT\", \"RL\", 分别对应于从上到下，从左到右，从下到上和从右到左绘制的有向图\n  node: {\n    fontname: \"wqy-microhei\",\n    fontcolor: \"black\"\n  },\n  edge: {\n    fontname: \"wqy-microhei\"\n  }\n}\noutput = {\n  format: 'png',\n  dir: \"#{Dir.home}/mindmap\" # output dir\n}\n\n# online\n\ndsl = %Q{\n  * MiniMindmap\n  ** name\n  ** DSL\n  ** output\n  *** dir\n  *** format\n  ** 汉字测试\n}\n\ndemo = MiniMindmap::Mindmap.new(name,dsl,output=output,config=config)\n\ndemo.export # export files to dir\n\n```\noutput img\n\n![demo.png](https://wx2.sbimg.cn/2020/07/16/CiWr6.png)\n\n## Q\u0026A\n\n### Chinese charset code problem\n\n1. To check fonts. Run `fc-list` or go to `/etc/fonts` to check if you have correct fonts.\n\n2. You may need to install fonts, for example : Chinese font —— 文泉驿。 Run `sudo apt list fonts-wqy-zenhei`\n3. Make config with correct font name\n\n\u003e \n```ruby\nconfig = {\n  rankdir: \"LR\",# \"TB\", \"LR\", \"BT\", \"RL\" direction\n  node: {\n    fontname: \"wqy-microhei\"\n  },\n  edge: {\n    fontname: \"wqy-microhei\"\n  }\n}\n\ndemo = MiniMindmap::Mindmap.new(name,dsl,output=output,config=config)\n\n```\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmark24code%2Fmini_mindmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmark24code%2Fmini_mindmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmark24code%2Fmini_mindmap/lists"}