GitHub repository for website?

This is the place to discuss the Wiki contents, forum issues, themes and to propose site-related features and ideas.
Post Reply
User avatar
Thunderforge
Posts: 154
Joined: 06 Jun 2017, 05:57
Github profile: https://github.com/Thunderforge

GitHub repository for website?

Post by Thunderforge » 01 Aug 2017, 21:59

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?

User avatar
lgromanowski
Site Admin
Posts: 1143
Joined: 05 Aug 2011, 22:21
Location: Wroclaw, Poland
Github profile: https://github.com/lgromanowski
Contact:

Re: GitHub repository for website?

Post by lgromanowski » 02 Aug 2017, 12:47

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)?
best regards,
Lukasz

User avatar
Thunderforge
Posts: 154
Joined: 06 Jun 2017, 05:57
Github profile: https://github.com/Thunderforge

Re: GitHub repository for website?

Post by Thunderforge » 02 Aug 2017, 18:25

There are a few plugins, like WordPress <--> GitHub Sync. According to the documentation:
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)
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.

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?

User avatar
Atahualpa
Posts: 745
Joined: 09 Feb 2016, 20:03

Re: GitHub repository for website?

Post by Atahualpa » 16 Oct 2017, 14:41

*bump* Any progress on that one?

User avatar
lgromanowski
Site Admin
Posts: 1143
Joined: 05 Aug 2011, 22:21
Location: Wroclaw, Poland
Github profile: https://github.com/lgromanowski
Contact:

Re: GitHub repository for website?

Post by lgromanowski » 16 Oct 2017, 17:53

Atahualpa wrote:
16 Oct 2017, 14:41
*bump* Any progress on that one?
Hi,
sorry, I didn't have time to test it.
best regards,
Lukasz

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest