gregseth / memos-app

Sinatra powered backend of the https://memo.gregseth.net website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Sinatra app for memos display

Structure

graph LR
C[memos<br><i>gregseth/memos</i>]
A[app<br><i>gregseth/memo-app</i>]
P(/public)
O[output] 

style O stroke-dasharray:10

A --> O
C --- A
A -.- P
P -.- O

click C "https://github.com/gregseth/bluegrasshopper"
click A "https://github.com/gregseth/bluegrasshopper-conf"
Loading

Usage

Editing a memo

Clone the « memos » repository, edit and push. A GitHub webhook is triggered, which will automatically update the repository on the server, making the edits available to the public.

Adding new file to the ToC

First follow the same steps than for editing a memo. Then clone this repository and edit the public/toc.json file, providing:

  • the category name;
  • the file name;
  • the title of the link displayed on the table of contents;

Example:

[ {
    "name":   "Category",
    "values": [ {
        "link":   "subdir/markdown_file.md",
        "lbl":    "Title 1",
    }, {
        "link":   "text_file.txt",
        "lbl":    "Title 2",
    } ]
} ]

Finally commit and push the changes, and let the GitHub webhook handle the update.

About

Sinatra powered backend of the https://memo.gregseth.net website


Languages

Language:Ruby 44.7%Language:CSS 44.4%Language:HTML 10.9%