From 8e507786ca963ead87c1428146560404c188cb8c Mon Sep 17 00:00:00 2001 From: Jakub Nowicki Date: Fri, 10 May 2024 16:00:17 +0200 Subject: [PATCH] ci: Add basic quarto setup. --- .github/workflows/publish.yml | 31 +++++++++++++++++++++++++++++++ docs/.gitignore | 1 + docs/_quarto.yml | 20 ++++++++++++++++++++ docs/styles.css | 1 + 4 files changed, 53 insertions(+) create mode 100644 .github/workflows/publish.yml create mode 100644 docs/.gitignore create mode 100644 docs/_quarto.yml create mode 100644 docs/styles.css diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..078b44a --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,31 @@ +on: + workflow_dispatch: + push: + branches: main + +name: Quarto Publish + +jobs: + build-deploy: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set working directory + run: cd docs + + - name: Copy README + run: cp ../README.md . + + - name: Set up Quarto + uses: quarto-dev/quarto-actions/setup@v2 + + - name: Render and Publish + uses: quarto-dev/quarto-actions/publish@v2 + with: + target: gh-pages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/docs/.gitignore b/docs/.gitignore new file mode 100644 index 0000000..075b254 --- /dev/null +++ b/docs/.gitignore @@ -0,0 +1 @@ +/.quarto/ diff --git a/docs/_quarto.yml b/docs/_quarto.yml new file mode 100644 index 0000000..5e4cc48 --- /dev/null +++ b/docs/_quarto.yml @@ -0,0 +1,20 @@ +project: + type: website + render: + - README.md + +website: + title: "LogAnalyzer" + navbar: + left: + - href: README.md + text: Home + +format: + html: + theme: cosmo + css: styles.css + toc: true + +execute: + freeze: auto diff --git a/docs/styles.css b/docs/styles.css new file mode 100644 index 0000000..2ddf50c --- /dev/null +++ b/docs/styles.css @@ -0,0 +1 @@ +/* css styles */