diff --git a/.github/workflows/jupyterbook-publish.yaml b/.github/workflows/jupyterbook-publish.yaml new file mode 100644 index 0000000..5624ec2 --- /dev/null +++ b/.github/workflows/jupyterbook-publish.yaml @@ -0,0 +1,43 @@ +name: jupyterbook-publish + +# Only run this when the master branch changes +on: + push: + branches: + - main + - master + # If your git repository has the Jupyter Book within some-subfolder next to + # unrelated files, you can make this run only if a file within that specific + # folder has been modified. + # + # paths: + # - some-subfolder/** + +# This job installs dependencies, builds the book, and pushes it to `gh-pages` +jobs: + deploy-book: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + # Install dependencies + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + + - name: Install dependencies + run: | + pip install jupyter-book + + # Build the book + - name: Build the book + run: | + jupyter-book build . + + # Push the book's HTML to github-pages + - name: GitHub Pages action + uses: peaceiris/actions-gh-pages@v3.6.1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_build/html \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..fe53a32 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,16 @@ +repos: +- repo: https://github.com/compilerla/conventional-pre-commit + rev: v3.0.0 + hooks: + - id: conventional-pre-commit + stages: [commit-msg] + args: [] + +- repo: https://github.com/executablebooks/mdformat + rev: 0.7.17 + hooks: + - id: mdformat + # Optionally add plugins + additional_dependencies: + - mdformat-myst + args: ['.'] \ No newline at end of file diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..53be78e --- /dev/null +++ b/_config.yml @@ -0,0 +1,2 @@ +title: 量潮DevOps手册 +author: 量潮科技 diff --git a/_toc.yml b/_toc.yml new file mode 100644 index 0000000..3595537 --- /dev/null +++ b/_toc.yml @@ -0,0 +1,5 @@ +format: jb-book +root: index.md +chapters: + - file: ci/README.md + - file: testing/README.md diff --git a/ci/README.md b/ci/README.md new file mode 100644 index 0000000..1ef1bad --- /dev/null +++ b/ci/README.md @@ -0,0 +1 @@ +# 持续集成 diff --git a/index.md b/index.md new file mode 100644 index 0000000..b6d4af6 --- /dev/null +++ b/index.md @@ -0,0 +1 @@ +# 简介 diff --git a/testing/README.md b/testing/README.md new file mode 100644 index 0000000..b3620c6 --- /dev/null +++ b/testing/README.md @@ -0,0 +1 @@ +# 持续测试