Giter Club home page Giter Club logo

mdprojectoverview's Introduction

MDRepoSnapshot

MDRepoSnapshot is a tool for generating a detailed overview of a project's structure and file contents, presented in Markdown format.

Overview

MDRepoSnapshot scans a given repository directory and generates two main sections in the Markdown report:

  1. Project Structure: Displays the directory structure of the project, excluding specified directories and files according to the configuration.

  2. File Contents: Provides the content of each detected file along with the detected programming language (using syntax highlighting), or indicates errors for unreadable or binary files.

Features

  • Configurable Ignored Directories and Files: Customize which directories and files to exclude from the report using a configuration file (config.json).
  • Markdown Output: Output the generated report directly in Markdown format, suitable for documentation or further processing.
  • Language Detection: Automatically detects programming languages for syntax highlighting in code snippets.

Usage

To generate a report for a repository:

python repolist.py path_to_repo

Replace path_to_repo with the path to the repository you want to analyze.

Installation

  1. Clone the repository:
git clone https://github.com/your_username/MDRepoSnapshot.git
cd MDRepoSnapshot
  1. Install dependencies:
pip install -r requirements.txt

Configuration

The tool uses a config.json file to define directories and files to ignore during scanning. If config.json is not found, it creates one with default settings:

{
    "ignore_dirs": [
        ".*",
        "__*"
    ],
    "ignore_files": [
        "*.json"
    ]
}

Modify these lists to suit your specific project structure and requirements.

Dependencies

  • Python 3.x
  • Required Python packages (see requirements.txt)

License

This project is licensed under the MIT License - see the LICENSE file for details.

mdprojectoverview's People

Contributors

ifmain 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.