Giter VIP home page Giter VIP logo

add-markmapp-mkdocs's Introduction

Script for add markmap to Markdown in Mkdocs

This script add a markmap inside index.md where have the comment <!-- Map site insert -->. Read all markdown, taking all headers to create a mind map.

This was designed to work together mkdocs and mkdocs-markmap.

No dependencies

You can view where to used:

Example files

Run script inside the project, the script looking for folder ./docs

index.md

# Index file

## Here gonna stay the mind map autogenerated

<!-- Map site insert -->
# Capítulo 1

## [Introducción a Electrónica básica](00_introduccion#introduccion-a-electronica-basica)

### [Conceptos básicos](00_introduccion#conceptos-basicos)
### [Conductor y Aislante](00_introduccion#conductor-y-aislante)
### [Voltaje](00_introduccion#voltaje)
### [Corriente](00_introduccion#corriente)
### [Resistencia](00_introduccion#resistencia)
---

File 00_introduccion.md

# Introducción a Electrónica básica

## Conceptos básicos

## Conductor y Aislante

### Conductor

Es un elemento el cual tiene la capacidad para conducir electricidad. Fluye fácilmente la corriente sobre él, sin poner resistencia a su paso.

...

Requirements

Add this modules to mkdocs or mkdocs-material

Usage

addmap --help

Help

usage: cli.py [-h] [-p PATH] [-v] [-e paths/to/exclude [paths/to/exclude ...]]

Command to add markmap to index to all folders, search all index.md with a flag where insert information

optional arguments:
  -h, --help            show this help message and exit
  -p PATH, --path PATH  Path from folder to have inside docs folder. Default: Here (.)
  -v, --verbose         Show all logs
  -e paths/to/exclude [paths/to/exclude ...], --exclude paths/to/exclude [paths/to/exclude ...]
                        Exclude directories or folders inside PATH. Ex: -e path/to/exclude path/to/exclude2

TODO

  • If not exist the folder docs not throw error

add-markmapp-mkdocs's People

Contributors

jalmx avatar

Stargazers

 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.