diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..91cb81d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +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-material + - run: mkdocs gh-deploy --force diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..ce31d28 --- /dev/null +++ b/docs/index.md @@ -0,0 +1 @@ +# Home \ No newline at end of file diff --git a/docs/resources.md b/docs/resources.md new file mode 100644 index 0000000..3c1229e --- /dev/null +++ b/docs/resources.md @@ -0,0 +1 @@ +# Resources diff --git a/docs/schedule.md b/docs/schedule.md new file mode 100644 index 0000000..20960d9 --- /dev/null +++ b/docs/schedule.md @@ -0,0 +1 @@ +# Schedule diff --git a/docs/speakers.md b/docs/speakers.md new file mode 100644 index 0000000..7566b8c --- /dev/null +++ b/docs/speakers.md @@ -0,0 +1 @@ +# Speakers diff --git a/env.yml b/env.yml new file mode 100644 index 0000000..6e9b466 --- /dev/null +++ b/env.yml @@ -0,0 +1,9 @@ +# micromamba create -f env.yml + +name: ethics_website_venv +channels: + - conda-forge + - nvidia +dependencies: + - python=3.12 + - pip diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 0000000..27821a1 --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,35 @@ +site_name: ACL Ethics Tutorial +nav: + - Home: index.md + - Schedule: schedule.md + - Speakers: speakers.md + - Resources: resources.md +theme: + name: material + features: + - navigation.tabs + - navigation.sections + - toc.integrate + - navigation.top + - search.suggest + - search.highlight + - content.tabs.link + - content.code.annotation + - content.code.copy + language: en + palette: + - scheme: default + toggle: + icon: material/toggle-switch-off-outline + name: Switch to dark mode + primary: teal + accent: purple + - scheme: slate + toggle: + icon: material/toggle-switch + name: Switch to light mode + primary: teal + accent: lime + +copyright: | + © 2023 ACL Ethics Team