0.2.0 • Published 4 years ago

leetcode-site-generator v0.2.0

Weekly downloads
19
License
MIT
Repository
github
Last release
4 years ago

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

4 years ago

0.1.0

4 years ago

0.0.12

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago