Skip to content

simple commands to download any github repo subfolder with a combined-repo.md markdown file

License

Notifications You must be signed in to change notification settings

zueai/github-subfolder-to-md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

github-subfolder-to-md

Simple Bash script to save markdown files from any GitHub repository subfolder and combine them into a single markdown file. Useful for quickly creating markdown documentation context for open-source packages and libraries.

Installation

# Install dependencies (macOS)
brew install tree

# Download the script to your home folder
curl -o ~/github-subfolder-to-md.sh https://raw.githubusercontent.com/zueai/github-subfolder-to-md/main/github-subfolder-to-md.sh

# Make it executable
chmod +x ~/github-subfolder-to-md.sh

# Optional: Add to your PATH
echo 'export PATH="$HOME:$PATH"' >> ~/.zshrc  # or ~/.bashrc
source ~/.zshrc  # or source ~/.bashrc

Usage

~/github-subfolder-to-md.sh https://github.com/username/repo/tree/branch/subfolder-path

Example:

~/github-subfolder-to-md.sh https://github.com/remix-run/react-router/tree/main/docs

This creates a combined markdown file named username-repo-foldername-combined.md in your current directory.

Dependencies

  • curl
  • jq
  • unzip
  • tree

License

MIT

About

simple commands to download any github repo subfolder with a combined-repo.md markdown file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages