Coder Social home page Coder Social logo

jekyll2s9y's Introduction

jekyll2s9y importer

This is a tool to import my Jekyll-based GitHub Pages blog/wiki into Serendipity.

Preparations

Setup Serendipity with an SQLite database. Download the database file to where you also plan to run jekyll2s9y.

Usage

Copy config.yaml.example to config.yaml and modify according to your needs. Note that jekyll_dir has to point to your Jekyll base directory.

If not done already, update the Python environment:

pipenv install

Then run the script:

pipenv run ./jekyll2s9y.py

Now copy the new database file (s9y_database_output in the config.yaml) back to your server and overwrite the old version. Also copy the uploads directory containing the media files. Then, in the Serendipity admin area, edit your configuration and change the permalink for "Entry URL structure" in any way (e.g. add a letter to the end) to have the permalinks regenerated. Afterwards, you can undo the change again.

Issues

If there are two entries where the permalink generation (i.e. stripping all emojis, etc.) results in the same permalink, only the older one can be accessed.

jekyll2s9y's People

Contributors

mbirth avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.