Metalsmith site can use local markdown content
Now that we have moved to using MediaWiki at wiki.social.coop we can remove the code in serve.js
that handles the webhook to update content in the src
directory using git, and simply have the markdown files that are still needed checked in directly in this repository:
I think we only need the following files/directories:
- src/home.md
- src/meet.coop-registration-form.md
- src/registration-form.md
- templates
In addition to localizing the content we will also need to:
-
Update Ansible to remove the creation and checkout of the src directory from git.coop: https://git.coop/social.coop/tech/ansible/-/blob/master/roles/join.social.coop/tasks/metalsmith.yml?ref_type=heads#L30-35 -
Avoid user confusion by removing the old git.coop wiki pages: https://git.coop/social.coop/general
The easiest way of doing the wiki cleanup would be to:
$ git checkout git@git.coop:social.coop/general.wiki
$ cd genral.wiki
$ rm -rf *
# create home.md which simply contains "The wiki has moved to wiki.social.coop".
$ git commit -a -m "moved wiki content"
$ git push
Edited by Ed Summers