Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve archiving from etherpad URL #4

Open
gRegorLove opened this issue Feb 15, 2023 · 3 comments
Open

Improve archiving from etherpad URL #4

gRegorLove opened this issue Feb 15, 2023 · 3 comments

Comments

@gRegorLove
Copy link
Contributor

gRegorLove commented Feb 15, 2023

From chat today with @capjamesg and @tantek:

It would be nice if we could use only an etherpad URL with the command:
!archive https://etherpad.indieweb.org/YYYY-MM-DD-hwc-shortname

Suggested parsing:

  • Parse the ISO8601 YYYY-MM-DD format date from the etherpad slug, set that as the date
    • If none found, set date as "ADD DATE"
  • Find the common HWC shortname in the etherpad slug and set the full event_name:
    • hwc-europe = "Homebrew Website Club Europe/London"
    • hwc-pacific = "Homebrew Website Club - Pacific"
    • If no common short name found, default to "Homebrew Website Club"
  • Find the first events.indieweb.org link in the etherpad contents, set that as the permalink

Then the final wiki page contents would be:

<dfn>[`permalink` `event_name`]</dfn> was an IndieWeb meetup on Zoom held on `date`.

Archived from: `etherpad_url`

`etherpad contents`

HWC Organizers would need to ensure:

  • their etherpad slugs use the format listed above
  • the events.indieweb.org permalink is added somewhere in the etherpad

Thoughts?

@capjamesg
Copy link
Owner

For reference, this was discussed a lot here: https://chat.indieweb.org/meta/2023-03-30#bottom

@gRegorLove
Copy link
Contributor Author

I've made some good progress on this. Hoping to have a PR ready this weekend.

@capjamesg
Copy link
Owner

Amazing! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants