Skip to content

A python tool to make a beautiful timeline by writing a txt file like diary.

Notifications You must be signed in to change notification settings

YangRui2015/Txt_to_timeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text to Timeline

The goal of this project is to make a timeline web page by writing a text file such as diary.

You can revise the .css file for your own preferences.

The project have the following characters:

  • Using text files to generate a timeline web page;

  • Supporting different text style;

  • Supporting local images and url of web images;

  • Showing heart when click on the page;

Result of this project is like this:

The origin text file is:

-2019
test_images/test.png
# Title1

-1.1
## Title2
### Title3

-1.2
text text text text

-1.3 
text text
text text
text text

Usage

  1. Using -time and line break to start a point at time and the content just behind the line;
-3.17 
A nice day!
  1. Adding a relative image path ( my suggestion is move the images to ./image dir) or a web image link in the content;
-3.17 
A nice day!
image/WechatIMG99.jpeg
  1. Using different font styles by different numbers of #, which means h1/h2/h3 of font style;
-2019
image/0.png
#200天快乐!
   
-2019
image/1.png
###This is the story of Ray and Amanda
###Let's start! 
  1. Running the python file with the flags we want to use, the default parameters are 'story.txt','index.css',True.
python txt_to_timeline.py --path diary.txt --css index.css --add_heart True

About

A python tool to make a beautiful timeline by writing a txt file like diary.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published