Giter Site home page Giter Site logo

manki's Introduction

Manki - A Markdown to Anki Converter

Installation

  • Clone the repository in a directory of your choice and open a terminal in the respective location.
  • Install the package with pip install -e .

Usage

Create a new project

  • Navigate into a directory in which you want to create a new project folder
  • Execute manki --new my_project or manki -n my_project
  • A new folder will be created which contains several dummy files
    • manki.toml contains all project meta data (see )
    • macros.md contains some default LaTeX macro definitions for MathJax
    • questions.md contains a small selection of example questions.

Compile

  • Navigate into the project directory that contains the manki.toml file.
  • Execute manki (for default Anki-package generation) or manki -f html for generation of a html file.

Manki Configuration

All configurations can be done in the manki.toml file that must exist in the project folder. As the file is read as a TOML file, subsections may be created. The following options can be set:

Option Description Type Example
general.title The title of the project str "My Title"
general.author One or multiple authors str or List[str] "John Doe" or ["John Doe", "Foo Bar"]
general.template The template that shall be used for the generation str "lrt" or "default"
general.preamble A premable that is set as description of the pack str
input.macros The file in which macros are defined str
input.sources The file(s) in which the source files are defined str or List[str] "questions.md" or ["q1.md", "q2.md"]
processor.randomquestions.questions List of questions that should be included randomly in to the decks List[List[str, str]] [ [ "Foo?", "Bar!" ], [ "Bla?", "Blu!" ]]
processor.randomquestions.start_after The minimum number of questions before the first random question is inserted int 2
processor.randomquestions.max_questions Maximum number of random questions int 4

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.