跳转至

Welcome to HuangFuSL's blog

Table of contents

Blog timeline

2595. 奇偶位数

2025-02-20

难度:简单

624. 数组列表中的最大距离

2025-02-19

难度:中等

2080. 区间内查询数字的频率

2025-02-18

难度:中等

1706. 球会落何处

2025-02-15

难度:中等

1552. 两球之间的磁力

2025-02-14

难度:中等

1742. 盒子中小球的最大数量

2025-02-13

难度:简单

1760. 袋子里最少数目的球

2025-02-12

难度:中等

80. 删除有序数组中的重复项 II

2025-02-09

难度:中等

Recent updates

Currently working on

Customization

Click on the buttons to change the primary color.

Click on the buttons to change the accent color.

However, if you try to switch from dark mode to light mode or reversed, changes to the primary color and accent color will lose.

Building documentation

Run git clone https://github.com/HuangFuSL/HuangFuSL.github.io.git to get the source code.

Bootstrap icon installation

The site uses bootstrap icons, which are added as submodules in third_party/icons. You have to manually initialize the submodule.

git submodule update --recursive --remote

LaTeX support

The site uses xelatex and dvisvgm to render tex document to SVG images embedded in the markdown files. However, as the SVG images are ignored by .gitignore, you have to manually perform the conversion.

For GitHub repository clones:

  • Run git submodule update --recursive --remote to receive the template.
  • Make sure you have installed and correctly configured xelatex and dvisvgm.
  • Add ./template directory to $TEXINPUTS environmental variable.
  • Execute ci/convert.py in the root directory of the repository.
  • Run mkdocs serve to view the images.

The template is located at HuangFuSL/latex-template

GitHub workflow

You need to install the dependencies stored in requirements.txt before you can start building the site:

pip install -r requirements.txt

There are cross-links in the site which require metadata defined in the page, so the project should be built before mkdocs serve is executed. The exported metadata is saved in meta.json after a build is successfully executed. To build the site, execute the following command:

mkdocs build -d build

Execute mkdocs serve, the built site will appear at http://127.0.0.1:8000

Acknowledgements

The blog relies on the following open-source projects:

The blog uses the following mkdocs plugins to function correctly.

Unless noted, content in this blog are shared under CC-BY-NC-SA 4.0 license.

Version information

commit f06df08ff53dd05dbccc1bf2fd8c77b5906cfff9
Merge: e7a8952c7 91205863c
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Thu Feb 20 10:46:25 2025 +0800

    Merge pull request #495 from HuangFuSL/leetcode-250220

    Update: Leetcode-250220

评论