GitHub repository for website?
- Thunderforge
- Posts: 503
- Joined: 06 Jun 2017, 05:57
GitHub repository for website?
I was wondering if it might be possible to create a GitHub repository for the website contents. This would make it easier to facilitate changes, like the recent change to the multiplayer FAQ item, and make it easier for interested users to suggest improvements to the theme. Would this be a possibility?
- lgromanowski
- Site Admin
- Posts: 1193
- Joined: 05 Aug 2011, 22:21
- Location: Wroclaw, Poland
- Contact:
Re: GitHub repository for website?
Most of the content is placed in Wordpress database (except Team page - it's based on Authors file from Github, and it's a bit hackish), so I'm not sure how it should work with content placed on Github. Could you explain a little bit how this process should looks like (I mean synchronizing content between WP and Github)?
- Thunderforge
- Posts: 503
- Joined: 06 Jun 2017, 05:57
Re: GitHub repository for website?
There are a few plugins, like WordPress <--> GitHub Sync. According to the documentation:
If the Authors.md file is currently synchronized, but it's a bit hackish, perhaps it would be worth testing just that page with this plugin in order to see if it would be feasible for the rest of the site?
It also says that it can export existing posts as .md files in addition to the original HTML. So I think it would be possible to convert the existing site to GitHub with this plugin.How it works
The sync action is based on two hooks:
- A per-post sync fired in response to WordPress's save_post hook which pushes content to GitHub
- A sync of all changed files triggered by GitHub's push webhook (outbound API call)
If the Authors.md file is currently synchronized, but it's a bit hackish, perhaps it would be worth testing just that page with this plugin in order to see if it would be feasible for the rest of the site?
Re: GitHub repository for website?
*bump* Any progress on that one?
- lgromanowski
- Site Admin
- Posts: 1193
- Joined: 05 Aug 2011, 22:21
- Location: Wroclaw, Poland
- Contact: