MCPcopy Index your code
hub / github.com/beizhedenglong/leetcode-site-generator

github.com/beizhedenglong/leetcode-site-generator @v0.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.0 ↗ · + Follow
28 symbols 59 edges 12 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

LeetCode Site Generator

Generate your personal LeetCode website with one command!

Example Website

leetcode-solutions

screenshot

Requirements

  • Make sure you have the recent version of node.js installed.
  • yarn(optional), you can use npm.

Installation

yarn global add leetcode-site-generator or npm i -g leetcode-site-generator

Usage

  1. Run installation script: leetcode-site init, This will create a project called leet-site-base on your current directory.
  2. Go to the website directory of leet-site-base, run yarn download. It will open a popup window and ask you to input your LeetCode username and password. login
  3. Waiting for downloading process finished, then run yarn & yarn start.

Publish To Github Pages

  1. Change the following keys in siteConfig.js
 const siteConfig = {
   // ...
   url: 'https://beizhedenglong.github.io', // Your website URL
   baseUrl: '/leetcode-site-generator/', // Base URL for your project
   projectName: 'leetcode-site-generator', // Your project name
   organizationName: 'beizhedenglong', // Your github username
   // ...
 }
  1. Run GIT_USER=<your github username> CURRENT_BRANCH=master USE_SSH=true yarn run publish-gh-pages

List of commands

Options:
  -V, --version       output the version number
  -h, --help          output usage information

Commands:
  download [options]  Download your new accepted code from LeetCode.
  init                Generate your personal LeetCode website.
  login               Log in to your Leetcode account.
  logout              Log out of current account.

Core symbols most depended-on inside this repo

Shape

Function 23
Method 3
Class 2

Languages

TypeScript100%

Modules by API surface

src/leetcode.js9 symbols
src/utils.js7 symbols
packages/leetcode-site-base/website/core/Footer.js5 symbols
src/download.js3 symbols
packages/leetcode-site-base/website/static/js/code-block-buttons.js2 symbols
packages/leetcode-site-base/website/scripts/generateDocs.js2 symbols

For agents

$ claude mcp add leetcode-site-generator \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page