Before creating such a post in Octopress, I need to add something into Octopress to make it support such posts.
The latest offical “KityMinder” files did not work properly. Please download the two files from the URLs above.
The two files do the magic to render the “markdown” format content in an Octopress post into a visual mind map.
Note that this code snippet has the following two enhancements comparing to the original source:
Use “wildcard element match”(from here and here) to select all the “mind map” parts in the current HTML document to avoid literal one-by-one handling. You only need to name the “mind map” parts starting with “km-container” then they are good to go.
Put the “var km = window.km = new kityminder.Minder();“ line inside the loop to fix the issue that only the last “mind map” part is rendered.
Create a post in Octopress as usual. Add the following “mind map” content.
<pre class="km-container" minder-data-type="markdown" style="width: 1000px; height: 500px">
It looks like below:
- Scrum ceremonies - 1. Sprint starting: requirement discussion and the poker game - Confirm all the requirement details - The product manager prioritize all the requirement items - Play the poker game to give score to each task - 2. Daily scrum meeting - Each scrum member selects task - Answer the following 3 questions: - What did I do yesterday? - What will I do today? - Any problems I have? - 3. Sprint ending: retrospection - What do you think we did not do well in the last sprint? - What do you think we did well in the last sprint? - How can we improve?
- 把大象放进冰箱需要几个步骤? - 1. 打开冰箱门 - 2. 放入大象 - 3. 关上冰箱门
After finishing editing the post, generate the static HTML content as usual. You should see the mind map content as expection.
The original idea came from Oliver Yang’s blog site.