L

本地搭建

前置条件

  • Python 3.11+
  • pip

开发模式安装

git clone https://github.com/litestartup-com/litedocs.git
cd litedocs
pip install -e ".[dev]"

运行开发服务器

python -c "from litedocs.cli import app; app()" serve tests/fixtures/sample-docs

# 多文档模式
python -c "from litedocs.cli import app; app()" serve tests/fixtures/sample-docs litedocs-docs

使用 Docker

docker compose up

服务器启动在 http://localhost:8000,支持热重载。