Code Monkey home page Code Monkey logo

confluence-to-md-supporter's Introduction

Confluence-to-md supporter tool

The Confluence-to-markdown converter is able to convert most of the HTML to MD. However, some of the macros on material theme, such as warning/tip/note/info etc does not get directly translated. This tool helps fill such gaps.

What the tool does

The script consists of two sub scripts. Pre-processing and post-processing. The pre-processing script will run pre-processing logic on the html files. These pre-processed html files will be fed in to the confluence-to-md converter tool. The converted md files will be fed into the post-processing script, for further cleanup.

Main functions of the tool:

  • converts warning/tip/info/note macros correctly
  • Removes attachments from end of page
  • Removes unnecessary span tags
  • Adds spaces infront of text for proper formatting

Pre-requisites to run the tool

  1. Install python
  2. Install the confluence-to-markdown tool.
  3. Install the beautifulsoup package by running the following command: "pip install beautifulsoup4".

How to run the tool

  1. Open start.sh.
  2. Configure the folder paths by creating new folders as required. These folder paths will be used by the scripts.
  • html_source_folder - The folder path where the unmodified confluence HTML files are stored.
  • html_destination_folder - The destination folder for the pre processed HTML pages.
  • conversionToolFolderPath- Path to the conversion tool
  • md_source_folder- Path to the folder that contains the md files generated from the confluence-to-markdown tool
  • md_dest_folder - Destination folder that contains the post processed .md files.

โš ๏ธ The folder paths must end with a "/"

  1. On the last line of the script, change the <html_dest_folder_name> to the folder name chosen for the "html_destination_folder" config. Refer to the sample below.

    python post_processing.py "$md_source_folder/html_dest_folder/" "$md_dest_folder"
    

4.Run the start.sh script ./start.sh

confluence-to-md-supporter's People

Contributors

nilminiwso2 avatar shanir avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

confluence-to-md-supporter's Issues

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.