Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: deployment failure #228

Merged
merged 3 commits into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 5 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,34 +43,17 @@ jobs:
github.base_ref == 'main'
) ||
contains(github.event.pull_request.labels.*.name, 'ci') == true
container:
image: ghcr.io/huangfusl/blog-env:build
options: --user root
steps:
- name: Checkout Main
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python 3
uses: actions/setup-python@v4
id: python
with:
python-version: '3.x'
cache: 'pip'

- uses: actions/cache@v3
id: cache
with:
path: ~/.local
key: ${{ steps.python.outputs.python-version }}-${{ hashFiles('requirements.txt') }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt --user --no-warn-script-location

- name: Test
run:
python3 ./ci/test_code_block.py
# Exec doctest on all md files exclude pyguide.md
python3 -m doctest $(find . -name '*.md' -not -name 'pyguide.md') -v -o ELLIPSIS -o IGNORE_EXCEPTION_DETAIL

test:
name: Test documentation
Expand Down
2 changes: 1 addition & 1 deletion docs/coding/leetcode/img/368-1.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
Expand Down
2 changes: 1 addition & 1 deletion docs/coding/leetcode/img/403-1.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{tikz}
\begin{document}
\usetikzlibrary{calc}
Expand Down
2 changes: 1 addition & 1 deletion docs/latex/basics/img/fonts-1.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}

\begin{document}
\centering
Expand Down
2 changes: 1 addition & 1 deletion docs/latex/math/img/stack-1.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{amsmath}
\usepackage{extarrows}
\begin{document}
Expand Down
2 changes: 1 addition & 1 deletion docs/latex/tables/img/tabular-1.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\begin{document}
\begin{tabular}{|c|c|c|}
\hline 2 & 9 & 4 \\
Expand Down
2 changes: 1 addition & 1 deletion docs/latex/tables/img/tabular-2-1.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{multirow}
\begin{document}
\begin{tabular}{|ccc|}
Expand Down
2 changes: 1 addition & 1 deletion docs/latex/tables/img/tabular-2.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\begin{document}
\begin{tabular}{||l|c|r||}
\hline 2 & 91 & 4 \\
Expand Down
2 changes: 1 addition & 1 deletion docs/latex/tables/img/tabular-3.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{ccc}
Expand Down
2 changes: 1 addition & 1 deletion docs/latex/tables/img/tabular-4.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{colortbl}
\begin{document}
\begin{tabular}{ccc}
Expand Down
2 changes: 1 addition & 1 deletion docs/latex/tables/img/tabular-5.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{diagbox}
\begin{document}
\begin{tabular}{|l|ccc|}
Expand Down
2 changes: 1 addition & 1 deletion docs/latex/tikz/img/pgfplots-1.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
Expand Down
2 changes: 1 addition & 1 deletion docs/latex/tikz/img/pgfplots-2.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
Expand Down
2 changes: 1 addition & 1 deletion docs/latex/tikz/img/pgfplots-3.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
Expand Down
1 change: 1 addition & 0 deletions docs/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _BUILD:
python3 -m mkdocs build -d build --dirty

_DEPLOY:
rm -rf build/.git
python3 -m mkdocs gh-deploy -d build --message "Update on $(shell date "+%Y-%m-%d %H:%M:%S")" --dirty

_CONVERT:
Expand Down
2 changes: 1 addition & 1 deletion docs/math/convex-optimization/imgs/first-order-convex.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
Expand Down
2 changes: 1 addition & 1 deletion docs/math/convex-optimization/imgs/simple-duality-1.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{tikz}
\usepackage{pgfplots}
\usepgfplotslibrary{fillbetween}
Expand Down
2 changes: 1 addition & 1 deletion docs/math/convex-optimization/imgs/strict-separation.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{tikz}
\usepackage{pgfplots}
\usepgfplotslibrary{fillbetween}
Expand Down
2 changes: 1 addition & 1 deletion docs/math/empirical-methods/imgs/casual-inference-1.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\begin{document}
\begin{tabular}{ccc}
\toprule
Expand Down
2 changes: 1 addition & 1 deletion docs/math/empirical-methods/imgs/casual-inference-2.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\begin{document}
\begin{tikzpicture}
\node[circle, draw] (X1) at (0, 0) {$X_1$};
Expand Down
2 changes: 1 addition & 1 deletion docs/math/operating-research/img/1.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{booktabs}
\usepackage{colortbl}
\begin{document}
Expand Down
2 changes: 1 addition & 1 deletion docs/math/operating-research/img/2-1.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{colortbl}
\begin{document}
\begin{tabular}{*{6}{|c}|}
Expand Down
2 changes: 1 addition & 1 deletion docs/math/operating-research/img/2.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{booktabs}
\usepackage{colortbl}
\begin{document}
Expand Down
2 changes: 1 addition & 1 deletion docs/math/operating-research/img/3.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{booktabs}
\usepackage{colortbl}
\begin{document}
Expand Down
2 changes: 1 addition & 1 deletion docs/math/operating-research/img/4-1.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{booktabs}
\usepackage{colortbl}
\begin{document}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[standalone, version=1.0]{huangfusl-template}
\documentclass[standalone, version=2.0]{huangfusl-template}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
Expand Down