From c45ef1763e8d4b51361f12fbfb0a47f5190b3bd8 Mon Sep 17 00:00:00 2001 From: Zijian Zhang Date: Fri, 3 Jan 2025 21:00:23 +0800 Subject: [PATCH] docs: add documentation --- .github/workflows/build-docs.yml | 41 ++++++++++++++ .github/workflows/build.yml | 10 +++- .gitignore | 3 ++ docs/img/favicon.ico | Bin 0 -> 4286 bytes docs/img/logo.webp | Bin 0 -> 118 bytes docs/mkdocs.yml | 83 +++++++++++++++++++++++++++++ docs/packaging-guide/index.md | 2 + docs/requirements.txt | 30 +++++++++++ docs/user-guide/basic-use.md | 1 + docs/user-guide/getting-started.md | 1 + docs/user-guide/index.md | 10 ++++ docs/user-guide/installation.md | 0 12 files changed, 180 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-docs.yml create mode 100644 docs/img/favicon.ico create mode 100644 docs/img/logo.webp create mode 100644 docs/mkdocs.yml create mode 100644 docs/packaging-guide/index.md create mode 100644 docs/requirements.txt create mode 100644 docs/user-guide/basic-use.md create mode 100644 docs/user-guide/getting-started.md create mode 100644 docs/user-guide/index.md create mode 100644 docs/user-guide/installation.md diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml new file mode 100644 index 0000000..1d3e4d9 --- /dev/null +++ b/.github/workflows/build-docs.yml @@ -0,0 +1,41 @@ +on: + pull_request: + paths: + - .github/workflows/build-docs.yml + - docs/** + push: + paths: + - .github/workflows/build-docs.yml + - docs/** + workflow_dispatch: + +jobs: + build-docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - run: | + pip install -r requirements.txt + working-directory: docs + + - run: | + mkdocs build -f docs/mkdocs.yml -d ../site + + - uses: actions/upload-pages-artifact@v3 + with: + path: site/ + + deploy: + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + needs: build-docs + permissions: + id-token: write + pages: write + runs-on: ubuntu-latest + steps: + - uses: actions/deploy-pages@v4 + id: deployment diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d9f2479..d947723 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,14 @@ on: - push: pull_request: + paths: + - .github/workflows/build.yml + - Lip/** + - Lip.Tests/** + push: + paths: + - .github/workflows/build.yml + - Lip/** + - Lip.Tests/** workflow_dispatch: jobs: diff --git a/.gitignore b/.gitignore index 1d74e21..9f8ed82 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ .vscode/ + +/.venv/ +/site/ diff --git a/docs/img/favicon.ico b/docs/img/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..b60da2f7673208d2f7fecc8a09b3eecdcbe6a7eb GIT binary patch literal 4286 zcmeH~?@Gc@7{-qv^g$B?UCrt8PpDuSG!PdCelVP6kOUD43Ee|bP*``1DG9(0~o5v0R0*fd-`O#|wu7=wK2r9#NuvLWzpuY?taL^i|X()rXXE zE`XjgIuoVYr{euH74DwqsACq(mZkfUZuA7u(hbYrZC%ew4{!70@P&5jE%rjX559gB z`l@1HnW({0+qYCg4XzIr_>hASI{HDE*ALK#4;Fmr`aZn6J|t_Wv|T!O&>trBrS-#K z9|q3e*$rj8Bg%A!bJXDZAbDK`K3KM5_Gj6P$GK*WC|NVHF4ox(JymI5n&=7FhxPZv z>U9zJL)Z_?&&jYK!hQ(*f%nY~-7mr%<>x2^`2o4w%i7X%b&wyt9Cg5X5}7tpHVFC? z=<^vvqQ1LtFXhRB!?~KXJ#?k(FaB8IgJmPzPmv#|(3kFipug~;m*MjTpK+kSwsYO0 oj&NS>0AYNMefBXkTOQvLBIZYoUFaP*ng4%*e+AHo4<>K?0zF=r)&Kwi literal 0 HcmV?d00001 diff --git a/docs/img/logo.webp b/docs/img/logo.webp new file mode 100644 index 0000000000000000000000000000000000000000..369ab0cc09c315be28d88f23d72e90987eaab195 GIT binary patch literal 118 zcmV-+0Ez!nNk&F)00012MM6+kP&iCs0000lpTH*&C!ip00~SukpO}VBX<|M~0t7%2 zRpvhc{#mG$peT~mXf0p?3s{JMQyj0nI3xORHfQXwtN(V?LKJ|?