Skip to content

Commit

Permalink
add Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cynber committed Apr 17, 2024
1 parent 6ed7a01 commit 1579cfc
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 11 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 3 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ hide:

<!-- ![Image title](https://dummyimage.com/500x300/eee/aaa){ align=right } -->

# 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! 🍁"

<br> <br>

Expand Down
14 changes: 8 additions & 6 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
site_name: 'Fedecan'
site_name: 'Fedecan │ Fédécan'
site_description: |
Static site for fedecan.ca
Expand All @@ -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:
Expand Down Expand Up @@ -72,18 +73,19 @@ markdown_extensions:

plugins:
- glightbox
# - privacy
- search
- blog:
blog_dir: announcements
archive: false
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

0 comments on commit 1579cfc

Please sign in to comment.