From a0f8dc74d6f8cc1c95e98400fad8d95cfefd839a Mon Sep 17 00:00:00 2001 From: RalfG Date: Fri, 6 Sep 2024 18:11:31 +0200 Subject: [PATCH] Add website --- .github/workflows/publish.yml | 25 +++++++++++++++++++++++++ .gitignore | 5 +++++ README.md | 5 ++++- _quarto.yml | 13 +++++++++++++ index.qmd | 9 +++++++++ 5 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml create mode 100644 _quarto.yml create mode 100644 index.qmd diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..e82eb7b --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +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 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/.gitignore b/.gitignore index 82f9275..ccbab46 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Quarto +_site + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] @@ -160,3 +163,5 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ + +/.quarto/ diff --git a/README.md b/README.md index c883e53..bc74815 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # hupo-psi.github.io -Landing site for GitHub Pages + +Landing site for GitHub Pages built with [Quarto](https://quarto.org). + +Run `quarto preview` to preview the site locally. diff --git a/_quarto.yml b/_quarto.yml new file mode 100644 index 0000000..419c418 --- /dev/null +++ b/_quarto.yml @@ -0,0 +1,13 @@ +project: + type: website + +website: + title: "HUPO-PSI GitHub Pages" + +format: + html: + theme: cosmo + toc: true + +execute: + freeze: auto diff --git a/index.qmd b/index.qmd new file mode 100644 index 0000000..e623400 --- /dev/null +++ b/index.qmd @@ -0,0 +1,9 @@ +--- +title: "HUPO-PSI GitHub Pages" +--- + +Welcome to the HUPO-PSI GitHub Pages. Learn more about HUPO-PSI at [psidev.info](https://psidev.info) + +Some PSI projects have documentation hosted on GitHub Pages. These are listed here: + +- [mzSpecLib](/mzspeclib)