-
Notifications
You must be signed in to change notification settings - Fork 26
Support optionally a) separated repos for pages and media and b) additional repos for core php runtime and for conf #56
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
base: master
Are you sure you want to change the base?
Conversation
…cking conf and php code in dedicated repos - default.php, metadata.php, settings.php: - added optional settings for 'repoPathMedia', 'repoWorkDirMedia', 'repoPathConf', 'repoPathCode' - improved labels and translations of settings.php - plugin.info.txt: - updated date to 2021-03-28 Signed-off-by: Markus Hoffrogge <[email protected]>
…cking conf and php code in dedicated repos
- editcommit.php:
- registered additional hooks to get triggered when admin changes config or plugin/extensions installed
- initRepo(...):
- added arguments $repoPathConfigKey, $repoWorkDirConfigKey to support multiple repos
- add --work-tree $repoWorkDirConfigKey only, if the effective repoWorkDir is set
- pullRepo($repoPathConfigKey,$repoWorkDirConfigKey):
- added this method
- commitFile(...):
- added arguments $repoPathConfigKey, $repoWorkDirConfigKey
- commitAll($repoPathConfigKey,$repoWorkDirConfigKey,$message):
- added this method
- handle_periodic_pull(...):
- updated to pull from pages and media repo
- handle_media_deletion(...), handle_media_upload(...):
- consider probable separate repo for media
- handle_code_or_config_on_start(...), handle_code_or_config_on_done(...), handle_code_or_config_on_ajax(...):
- additional handlers for changes on config and installed plugin extensions
- Git.php:
- status(...):
- added argument for the status command
- addAll():
- added this method
Signed-off-by: Markus Hoffrogge <[email protected]>
…cking conf and php code in dedicated repos
- editcommit.php:
- handle_code_or_config_on_start(...):
- added support for template style changes
Signed-off-by: Markus Hoffrogge <[email protected]>
…cking conf and php code in dedicated repos - editcommit.php: - added method pageID($nameSpace,$pageName) to provide page with namespace for the commit message of a page change Signed-off-by: Markus Hoffrogge <[email protected]>
|
thank @mhoffrog , on what dokuwiki version did you test it? |
|
@woolfg - It was tested on recent DokuWiki Release 2020-07-29 “Hogfather”. |
…cking conf and php code in dedicated repos - Git.php: - bugfix for PHP <7.4 compatibility: '?...' type declarations are supported by PHP >= 7.4 only Signed-off-by: Markus Hoffrogge <[email protected]>
…cking conf and php code in dedicated repos - Git.php: - bugfix for PHP <= 7.3 compatibility: class property type declarations are supported by PHP >= 7.4 only Signed-off-by: Markus Hoffrogge <[email protected]>
…cking conf and php code in dedicated repos - Git.php: - precised bugfix code comment Signed-off-by: Markus Hoffrogge <[email protected]>
…cking conf and php code in dedicated repos
- conf/default.php:
- improved wording of commit comment default config
- default config for additional git commit parameters set to reflect
the Wiki user name and the Wiki users eMail as git committing author
Signed-off-by: Markus Hoffrogge <[email protected]>
…cking conf and php code in dedicated repos - Git.php: - fixed code editing copy issue Signed-off-by: Markus Hoffrogge <[email protected]>
|
@woolfg - Did fix the PHP 7.3 incompatibility issue and made some improvements to the default config. |
This issue has been fixed by the most recent commits (28-Nov-2021) on this pull request. |
This pull request implements Issue#55.
Fixes #55
Note: This pull request builds upon pull request #54
NOTE: The commit comments contain details on all the changes made starting with the 3rd line of each comment.