Need help with hugo-leetcode-dashboard?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

lryong
148 Stars 10 Forks MIT License 14 Commits 0 Opened issues

Description

A LeetCode dashboard for hugo website

Services available

!
?

Need anything else?

Contributors list

# 250,937
hugo-th...
hugo-bl...
JavaScr...
hugo
9 commits

hugo-leetcode-dashboard

✨ 一个 LeetCode 答题看板的生成插件, 支持一键部署到 Hugo 站点。 完整记录刷题心路历程

在线预览 Demo

Screenshots

leetcode-dashboard

Installation

  1. 下载 Repo 到本地:
   git  clone https://github.com/lryong/hugo-leetcode-dashboard
  1. 安装依赖: 本项目需要用到

    requests
    aiohttp
    包, 通过 pip 安装即可。
  2. 更新仓库根目录下的

    config.json
    文件:
   {
     "username": "[email protected]",
     "password": "leetcode",
     "outputDir": "../LeetCode"
   }

username 是 LeetCode-cn 账号, password 是对应密码。 outputDir 为 dashboard 生成路径。 (注: 这里配置为 hugo 站点的文档路径, 如:/Users/XXX/my_blogs/content)

  1. 因为 Hugo 默认只支持 markdown 文档, 在个人网站根目录下新建
    layouts/shortcodes/rawhtml.html
    文件,以支持原生 HTML:
   

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.