requarks / wiki-v1

Legacy version (1.x) of Wiki.js
https://wiki.js.org
GNU Affero General Public License v3.0
101 stars 75 forks source link

[query] Can I modify the wiki via Git? #173

Closed lofidevops closed 5 years ago

lofidevops commented 5 years ago

Is it possible to modify the wiki via Git. For example with the following procedure, or something like it?

  1. Clone Git repo
  2. Commit changes locally
  3. Push changes to Git repo
  4. Changes are now visible via GUI

If not, is this feature planned for 2.0? (I couldn't find a reference to it.)

lofidevops commented 5 years ago

Associated feature request (if it isn't already supported) https://requests.requarks.io/wiki/p/git-based-workflow

NGPixel commented 5 years ago

This is already possible in v1 (and the upcoming v2)

lofidevops commented 5 years ago

@NGPixel Thanks for the confirmation!

I assume this requires direct access and push rights on the Git repo. Is there any documentation on setting this up in a GitLab / GitHub style environment, where you don't want to give everybody those kind of permissions?

Do Git users need to worry about the synching operation? The nightmare here is a Git push overriding a GUI change, or vice versa.

NGPixel commented 5 years ago

https://docs.requarks.io/wiki/install/installation/git#providers

The overwriting issue will be better handled in v2. For v1 you need to use extra precautions as to not overwrite content before the sync occurs (every 5 mins).

lofidevops commented 5 years ago

@NGPixel Thanks for the link and the precautions :+1: Very much appreciated.