Skip to content

Commit

Permalink
Serve conda-incubator meeting notes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Mar 13, 2024
1 parent 86225e3 commit e351540
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ node_modules/
.docusaurus
.cache-loader

# Populated at build time
/community/minutes/*.md

# Misc
.DS_Store
.env.local
Expand Down
29 changes: 29 additions & 0 deletions bin/populate-minutes
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -euo pipefail

HERE=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

rm ${HERE}/../community/minutes/*.md
pushd $(mktemp -d)
curl -L https://github.com/conda-incubator/governance/archive/refs/heads/main.tar.gz -o governance.tar.gz
tar -C "${HERE}/../community/minutes" -xf governance.tar.gz --strip-components 3 "governance-main/meetings/archive/"
popd

pushd ${HERE}/../community/minutes
for f in *.md; do
# Rename files from YYYYMMDD_agenda_and_minutes.md to YYYY-MM-DD.md
mv "$f" "${f:0:4}-${f:4:2}-${f:6:2}.md"
done

# Fix some markdown issues
for f in 2020-08-24.md 2020-09-08.md 2020-09-22.md; do
sed -i.bak 's/]()/](#)/g' "$f"
rm "$f.bak"
done
sed -i.bak \
-e 's|](conda.org)|](https://conda.org)|g' \
-e 's|](github.org)|](https://github.org)|g' \
"2020-09-08.md"
rm 2020-09-08.md.bak

popd
2 changes: 2 additions & 0 deletions community/minutes/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This directory is populated at build time by downloading all the minutes
from conda-incubator/governance. See `/bin/populate-minutes`. Do not edit manually.
26 changes: 26 additions & 0 deletions community/minutes/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Meeting minutes

We hold biweekly meetings every second Wednesday from 17:00-18:00 (UTC). Feel free to stop by!
Up-to-date invites are always available in the [calendar](/community/calendar).

We encourage contributors to join the meetings and learn more about and from the community.

## Setup

The minutes are recorded in the [`conda-incubator/governance`][governance-repo] repository.

We use a Github Actions [workflow][gha-workflow] to create an automated PR with the meeting notes
template for each session, which is automatically published to our [HackMD team][hackmd-team]
account. During the meeting, attendees will edit the HackMD document. After the meeting, the
document is saved and the PR is synced with the changes by adding the `sync-hackmd-notes` label.
Once satisfied, the PR is merged and the website will be updated with the new meeting notes.

[gha-workflow]: https://github.com/conda-incubator/governance/actions/workflows/meeting-notes.yml
[hackmd-team]: https://hackmd.io/@conda-community
[governance-repo]: https://github.com/conda-incubator/governance

## Minutes

import DocCardList from '@theme/DocCardList';

<DocCardList />
4 changes: 4 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ const config = {
},
],

markdown: {
format: "detect",
},

presets: [
[
"classic",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build",
"start": "./bin/populate-minutes && docusaurus start",
"build": "./bin/populate-minutes && docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
Expand Down

0 comments on commit e351540

Please sign in to comment.