Development

Configuration

Geekbookapp

Page

Make Index

Make Table of Contents

geekbook - table of content

Get markdown output and make a table of content!

h1 How my lifebook should look? id_of_div How-my-lifebook-should-look?

changelog:

2012
  • 0831 fix of the previous point
  • 0829 make h1 clickable
engine.make_tableofcontent.tag_heading(heading)[source]

Find all tags in a heading and replace it with “my” tags

Get: - heading

Return: - heading with “my” tags

Preprocessing

Postprocessing

Plugins

Insert Image

Flask-based actions

Run the server:

[mm] geekbook git:(master) ✗ python engine/webserverflask.py
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

and open in your browser http://127.0.0.1:5000/edit/test.md (you can add this to your notes <a href="http://127.0.0.1:5000/edit/test.md">edit</a>.

To add new function, build on this simple example:

@app.route('/edit/<note_title>')
def edit(note_title):
        """Open a note with your edit"""
        os.system('open ../notes/' + note_title)
        return 'edit note: %s' % note_title

DataTables

Html code to be inserted dataTables [1] for index can be found in engine/make_index.py.

[1] https://datatables.net/