Skip to content

Instantly share code, notes, and snippets.

View labuladong's full-sized avatar
Working from home

Donglai Fu labuladong

Working from home
View GitHub Profile
labuladong /
Last active October 19, 2022 08:23
Help detect broken markdown link for Apache Pulsar documentation.
# %%
import re
from pathlib import Path
from typing import Union
# todo: read from input
BASE_DIR = Path('/Users/labuladong/IdeaProjects/pulsar/site2/docs/')
class LinkChecker:
def __init__(self, s: str, path: Union[str, Path]):