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 */