Simple timelines generated from Markdown.
Repurposed from Lim Chee Aun's cheeaun.life
Run python -m http.server
in directory and navigate to https://localhost:8000/
- Events: List items in the format of
- DATE TEXT
where-
,DATE
, andTEXT
are separated by a single space to render an event - Dates: Dates of arbitrary specificity. See Datetime for range of formats
- Tags: Specified by
#
inlife.md
and#life .event.tag-XXXX .time
and#life .event.tag-XXX .time
in custom style sheet
- Incorrect offsets with negative years
onmouseover
descriptions
customStylesheetURL
- (string, default tonull
) Path to a custom stylesheet file, for those who doesn't like the default theme.yearLength
- (number, default to120
) The width of the year grids, in pixels.hideAge
- (boolean, default tofalse
) Option to hide age from year axis.
Added features
hideTags
- (boolean, default tofalse
) Option to hide tags in event text
Modifications have been made from the original project in rendering dates. We now use moment.js
instead of a custom parser. Years can be arbitrarily many digits and negative years render correctly.
YYYY
with arbitrarily many digitsYYYY/MM
YYYY/MM/DD
YYYY/MM/DD:YYYY/MM/DD
or any combination of the above separated by a colon