From 1579cfc0513bed9633f43498b7f111bd59ae30e4 Mon Sep 17 00:00:00 2001 From: cynber <26402139+cynber@users.noreply.github.com> Date: Wed, 17 Apr 2024 06:28:16 -0700 Subject: [PATCH] add Github actions --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ docs/index.md | 8 +++----- mkdocs.yml | 14 ++++++++------ 3 files changed, 42 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5085b02 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: ci +on: + push: + branches: + - master + - main +permissions: + contents: write +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Configure Git Credentials + run: | + git config user.name github-actions[bot] + git config user.email 41898282+github-actions[bot]@users.noreply.github.com + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV + - uses: actions/cache@v4 + with: + key: mkdocs-material-${{ env.cache_id }} + path: .cache + restore-keys: | + mkdocs-material- + - run: pip install mkdocs-glightbox + - run: pip install "mkdocs-material[imaging]" + - run: pip install mkdocs-material + - run: mkdocs gh-deploy --force \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index cd96336..1ac716a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -6,13 +6,11 @@ hide: -# Welcome to **Fedecan**! +# Welcome! -We are dedicated to providing platforms for Canadians to engage in online communities through *federated* software. We are committed to providing a safe and inclusive space for all Canadians to connect and share ideas. +We are dedicated to providing platforms for Canadians to engage in online communities through 'federated' software. We are committed to providing a safe and inclusive space for all Canadians to connect and share ideas! See below for more information on what this means, what we are working on, and how you can get involved. -See below for more information on what this means, what we are working on, and how you can get involved! - -!!! info "Fedecan is a federally incorporated not-for-profit organization! 🍁" +!!! info "We are a federally incorporated not-for-profit organization! 🍁"

diff --git a/mkdocs.yml b/mkdocs.yml index 2ae7b78..086d45b 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: 'Fedecan' +site_name: 'Fedecan │ Fédécan' site_description: | Static site for fedecan.ca @@ -21,6 +21,7 @@ theme: icon: logo: fontawesome/brands/canadian-maple-leaf + # logo: assets/img/fedecan-logo.png favicon: assets/img/canadian-maple-leaf.svg palette: @@ -72,7 +73,6 @@ markdown_extensions: plugins: - glightbox - # - privacy - search - blog: blog_dir: announcements @@ -80,10 +80,12 @@ plugins: categories: false authors: false pagination_per_page: 10 - # - social: - # cards_layout_options: - # font_family: Noto Sans - # enabled: !ENV [CI, false] + - group: + enabled: !ENV CI + plugins: + - social: + cards_layout_options: + font_family: Noto Sans extra: generator: false \ No newline at end of file