mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-24 03:36:29 +08:00
16574186ee
* fix: linkedlist_stack.py 中的peek方法需要判空raise Error 栈空的时候不能再 peek() 。另外由于 pop() 复用了 peek() ,栈空时返回的 None 会传递到 pop() 中的 num ,导致后续的继续执行 self.peek.next 报错等后续问题 * Update linkedlist_stack.py * Update linkedlist_queue.py * Update linkedlist_deque.py * feat: Move the pagination nav above the comments * feat: Move the pagination nav above the comments * Delete docs/overrides/partials/footer.html * Update content.html --------- Co-authored-by: Yudong Jin <krahets@163.com> Co-authored-by: long.ma <long.ma@sumscope.com>
15 lines
330 B
Docker
15 lines
330 B
Docker
FROM python:3.9.0-alpine
|
|
|
|
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
|
|
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple mkdocs-material==9.0.13
|
|
|
|
WORKDIR /app
|
|
|
|
COPY docs /app/build
|
|
COPY mkdocs.yml /app/mkdocs.yml
|
|
|
|
RUN mkdocs build
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["mkdocs", "serve", "-a", "0.0.0.0:8000"]
|