开源软件名称(OpenSource Name): cheeaun/life开源软件地址(OpenSource Url): https://github.com/cheeaun/life开源编程语言(OpenSource Language):
HTML
100.0%
开源软件介绍(OpenSource Introduction): Life
This is something that I've wanted to build for a long time. It's a timeline of important events in my life, visualized in a way my mind always imagine it. There was something called Lifepath.me but now it's gone. How about Facebook timeline? Meh.
So, this is it. Have a look at cheeaun.life .
Features
Super simple
No fancy formatting
No fancy setup
No fancy effects
Flexible datetimes because sometimes you don't remember the exact date of an event
How to contribute
Fork this project.
Write code.
Make pull requests.
How to setup your own Life
Fork this project.
git checkout -b gh-pages
(or any branch name you like)
Make a copy of life.example.md
, rename it to life.md
.
Add your life events into life.md
.
Preview it on a local server. Use python -m http.server
or http-server
.
Commit life.md
(not in master
branch).
git push origin gh-pages -f
and publish to GitHub Pages .
Update the website link in your GitHub repo description.
Tell the world about your Life.
Add your Life to the Lives page.
How to upgrade your Life
git checkout master
git remote add cheeaun https://github.com/cheeaun/life.git
git fetch cheeaun
and git merge cheeaun/master
to upgrade to latest Life.
git checkout gh-pages
and git merge master
to sync changes back to GitHub Pages.
Learn more .
For those who forked the earlier version of Life, these are the steps that I would recommend (requires some Git-fu):
Backup your life.md
.
Reset (hard) your fork to this repo's master
branch.
Clean up your gh-pages
.
Re-commit your life.md
there.
Make sure your master
branch is untouched so that future updates work.
How to configure your Life
Make a copy of config.example.json
, rename it to config.json
.
Only commit it in gh-pages
branch.
The configuration:
customStylesheetURL
- (string , default to null
) Path to a custom stylesheet file, for those who doesn't like the default theme .
yearLength
- (number , default to 120
) The width of the year grids, in pixels.
hideAge
- (boolean , default to false
) Option to hide age from year axis.
Datetime "syntax"
2000
- event that happen in that year
01/2000
- event that happen in that month/year
01/01/2000
- event that happen exactly in that day/month/year
2001-2005
, 10/2001-02/03/2005
- event that happen within the two dates
~2005
- event that happen around the time in that year
2005-~
- event that happen from that year and beyond (now).
Other people's Lives
Here's a compilation of Lives from the people who have forked Life .
License
MIT
请发表评论