Support optionally a) separated repos for pages and media and b) additional repos for core php runtime and for conf#56
Open
mhoffrog wants to merge 9 commits intowoolfg:masterfrom
Open
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 <mhoffrogge@gmail.com>
…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 <mhoffrogge@gmail.com>
…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 <mhoffrogge@gmail.com>
…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 <mhoffrogge@gmail.com>
Owner
|
thank @mhoffrog , on what dokuwiki version did you test it? |
Collaborator
Author
|
@woolfg - It was tested on recent DokuWiki Release 2020-07-29 “Hogfather”. |
added 5 commits
November 28, 2021 09:37
…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 <mhoffrogge@gmail.com>
…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 <mhoffrogge@gmail.com>
…cking conf and php code in dedicated repos - Git.php: - precised bugfix code comment Signed-off-by: Markus Hoffrogge <mhoffrogge@gmail.com>
…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 <mhoffrogge@gmail.com>
…cking conf and php code in dedicated repos - Git.php: - fixed code editing copy issue Signed-off-by: Markus Hoffrogge <mhoffrogge@gmail.com>
Collaborator
Author
|
@woolfg - Did fix the PHP 7.3 incompatibility issue and made some improvements to the default config. |
Collaborator
Author
This issue has been fixed by the most recent commits (28-Nov-2021) on this pull request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.