Skip to content

An easy way to transform MD document which is edited by Typora to Gridea for your own blog website!

Notifications You must be signed in to change notification settings

heroamd/EasyTyporaTransformToGridea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

image

EasyTyporaTransformToGridea is an easy way to create and edit MD documents with Typora and deploy them to pages by Gridea.

The most inconvenient part of using Gridea is how to quickly replace the picture file PATHs and copy picture files to adapt to the Gridea environment.

This script help you use Typora as MD document editor and use Gridea as deployor for your own Blog.

Here is the using DEMO:

1、Your configuration for image insert in Tyopra must as:

First, When insert: Copy image to custom folder, and the folder path should be as './pic' image then, when you insert a new image, here is the line in your document: Just like: ![image-1](.\pic\image-1.png) image

2、Then you need to copy one of the ENGLISH version or CHINESE version script in your folder, and modify these path:

image

  • THE directory_path REFER to your <Gridea project was created path>/poster, such as D:/blog/posts.
  • THE dst REFER to <The directory location for storing images in Gridea>/post-images, such as D:/blog/posts/post-images.
  • THE pic_path REFER to <The default location where Typora automatically saves inserted images>/pic. such as C:/Users/xxx/Desktop/master/Notes/pic/.
  • THE new_base_path means the replaced image path in your unmodified MD document. Such as file://D:/blog/posts/post-images/ Tips: must same as dst PATH
  • IMPORTANT: use / but not \ in windows!!!!

  • THIS SCRIPT WILL AUTO COPY IMAGE FILES TO GRIDEA IMAGE_PATH AND REPLACE THE OLD MD DOCUMENTS!

About

An easy way to transform MD document which is edited by Typora to Gridea for your own blog website!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages