Skip to content

LeetCode solutions markdown wiki generator

Pre-release
Pre-release
Compare
Choose a tag to compare
@Zanger67 Zanger67 released this 20 Jul 02:12
· 27 commits to main since this release

A tool that links to your GitHub repo of LeetCode solutions. WikiLeet parses the files found in my-submissions/ and converts it into a navigable README, with options to view your journey sorted by question, category, topic, most recent, and others!

Setup

  1. In your repo on github.com, click on Actions and ensure that actions are enabled for this repo. Then in your repo create a folder
  2. Create a .github/workflows/ folder/directory in your repo.
./project root
└── .github
    └── workflows
  1. Create a main.yml file in this folder
./project root
└── .github
    └── workflows
        └── main.yml
  1. Paste the following code into the file. Make sure to insert your own LeetCode username!
name: '[Updating markdown files]'

on:
    # Allows for munual runs of workflow
    workflow_dispatch:

    # Default whenever a new code file is pushed to the main branch
    push:
        branches:
            - main
        paths:
            - 'my-submissions/**'

permissions:
    contents: write

jobs:
    build:
        runs-on: ubuntu-latest
        
        steps:
            - name: Call and run markdown generator
              uses: Zanger67/WikiLeet@main
              with:
                # Insert your LeetCode username here!
                username: Zanger