diff --git a/agenda/20250708.md b/agenda/20250708.md new file mode 100644 index 0000000..c2e4bfa --- /dev/null +++ b/agenda/20250708.md @@ -0,0 +1,6 @@ +- 7.30 pm - Welcome +- 7.35 pm - Agreement on Agenda Items +- 7.40 pm - Administrivia (if any) +- 7.45 pm - Presentation 1 +- 8.15 pm - Presentation 2 +- 8.45 pm - Loose (Discourse) Threads diff --git a/agenda/20250724.md b/agenda/20250724.md new file mode 100644 index 0000000..a3de23a --- /dev/null +++ b/agenda/20250724.md @@ -0,0 +1,6 @@ +- 6.30 pm - Welcome +- 6.35 pm - Agreement on Agenda Items +- 6.40 pm - Administrivia (if any) +- 6.45 pm - Presentation 1 +- 7.15 pm - Presentation 2 +- 7.45 pm - Loose (Discourse) Threads diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..a3e7478 --- /dev/null +++ b/composer.json @@ -0,0 +1,5 @@ +{ + "require": { + "michelf/php-markdown": "^2.0" + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..3e51cdd --- /dev/null +++ b/composer.lock @@ -0,0 +1,75 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "1aaa1fd00dca33a7556a8414d72d72c3", + "packages": [ + { + "name": "michelf/php-markdown", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/michelf/php-markdown.git", + "reference": "eb176f173fbac58a045aff78e55f833264b34e71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/michelf/php-markdown/zipball/eb176f173fbac58a045aff78e55f833264b34e71", + "reference": "eb176f173fbac58a045aff78e55f833264b34e71", + "shasum": "" + }, + "require": { + "php": ">=7.4" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.0", + "phpstan/phpstan": ">=1.0", + "phpstan/phpstan-phpunit": ">=1.0", + "phpunit/phpunit": "^9.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Michelf\\": "Michelf/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Michel Fortin", + "email": "michel.fortin@michelf.ca", + "homepage": "https://michelf.ca/", + "role": "Developer" + }, + { + "name": "John Gruber", + "homepage": "https://daringfireball.net/" + } + ], + "description": "PHP Markdown", + "homepage": "https://michelf.ca/projects/php-markdown/", + "keywords": [ + "markdown" + ], + "support": { + "issues": "https://github.com/michelf/php-markdown/issues", + "source": "https://github.com/michelf/php-markdown/tree/2.0.0" + }, + "time": "2022-09-26T12:21:08+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": false, + "prefer-lowest": false, + "platform": {}, + "platform-dev": {}, + "plugin-api-version": "2.6.0" +} diff --git a/events.json b/events.json index 4945767..a540dad 100755 --- a/events.json +++ b/events.json @@ -12,24 +12,21 @@ "title": "June 2025 In Person Catch Up", "description": "Social get-together. Discussion about large language models and meshtastic experiments. Clumsy attempt at adhering to an agenda and taking minutes.", "location": "Chermside Library", - "coordinates": "-27.38621539644283,153.0351689206467", - "minutes": "- Admin\n - ToS and Privacy Policy doesn't need to be hosted on the main page. It's already got a publicly accessible presence in Discourse.\n - James to formalise agenda procedure\n - James to render cal.php on main page\n - James to publish "subscribe" link for calendar\n- Recap from Last Month\n - Hardware Donations for Education\n - Substation 33, in Kingston or Logan?\n - Dirk has a carload of stuff to offload\n- Discourse Themes\n - LLMs\n - Hardware for LLMs\n - Tiny11\n- Agenda\n - Motioneye\n - Meshtastic\n- Next Month\n - Location Requests" + "coordinates": "-27.38621539644283,153.0351689206467" }, { "start": "2025-07-08T19:00:00", "end": "2025-07-08T21:00:00", "title": "July 2025 Online Catch Up", "description": "Monthly Online Jitsi Get Together", - "location": "Jitsi", - "agenda": "- Administration Topics\n- Recap of Last Month's Meeting\n- Noteworthy Discourse Threads\n- Presentation(s)" + "location": "Jitsi" }, { "start": "2025-07-24T19:00:00", "end": "2025-07-24T21:00:00", "title": "July 2025 In Person Catch Up", "description": "Monthly In Person Get Together", - "location": "TBA", - "agenda": "" + "location": "TBA" } ] diff --git a/index.js b/index.js new file mode 100755 index 0000000..f7f728b --- /dev/null +++ b/index.js @@ -0,0 +1,22 @@ +$(document).ready(function () { + var nextCtl = $('#vars').attr('nextCtl'); + var c = $('button.accordion-button[data-bs-target="#ctl' + nextCtl + '"]'); + $(c).click(); + $('button[action]').click(function() { + var action = $(this).attr('action'); + var url = null; + var target = action; + if ( action == 'jitsi' ) { + url = 'https://meet.homelabbrisbane.com.au/'; + } + if ( action == 'map' ) { + url = 'https://www.google.com/maps/place/' + $(this).attr('coordinates'); + } + if ( action == 'copy' ) { + navigator.clipboard.writeText( $(this).attr('value') ); + } + if ( url != null ) { + window.open( url, target ); + } + }); +}); diff --git a/index.php b/index.php index 97ce2db..bc83e52 100755 --- a/index.php +++ b/index.php @@ -1,6 +1,9 @@ format("YmdHi"); $entries[$i]["ctl"] = $ctl; + $datestamp = $dt -> format("Ymd"); + $files = array( "agenda" => sprintf("agenda/%d.md", $datestamp) + , "minutes" => sprintf("minutes/%d.md", $datestamp) + ); + foreach ( $files as $key => $file ) { + if ( file_exists( $file ) ) { + $entries[$i][$key] = file_get_contents($file); + } + } } usort($entries, function ($a, $b) { $dateA = new DateTime($a['start']); @@ -151,12 +163,12 @@ function getEvents() { if ( in_array( "minutes", array_keys($event) ) ) { ?>
= $event["minutes"] ?>
+= Markdown::defaultTransform($event["minutes"]) ?>
= $event["agenda"] ?>
+= Markdown::defaultTransform($event["agenda"]) ?>
@@ -172,32 +184,10 @@ function getEvents() { + - +