Skip to content

Commit

Permalink
ci: Add basic quarto setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubnowicki committed May 10, 2024
1 parent 4480137 commit 8e50778
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.quarto/
20 changes: 20 additions & 0 deletions docs/_quarto.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions docs/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* css styles */

0 comments on commit 8e50778

Please sign in to comment.