-
Notifications
You must be signed in to change notification settings - Fork 146
Update the DocC documentation script so that it works with the changes to the merge command #830
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
623ba6a
Update script to remove output dir before merging documentation
d-ronnqvist 0413b67
Ensure that the combined archive has a data directory
d-ronnqvist 66e4229
Merge branch 'main' into merge-command-2
d-ronnqvist b08c28a
Merge branch 'main' into merge-command-2
d-ronnqvist 60a271c
Add check that either all archives support static hosting or none do
d-ronnqvist a94358e
Support merging archives that don't have static hosting files
d-ronnqvist 8c0c18d
Raise error in TestFileSystem if intermediate directories are missing
d-ronnqvist fe0620c
Fix tests that used TestFileSystem but created real temp directories
d-ronnqvist 8fb03d2
Only copy static hosting files if input archives has them
d-ronnqvist a215ecc
Merge branch 'main' into merge-command-2
d-ronnqvist 56378d8
Merge branch 'main' into merge-command-2
d-ronnqvist File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can move this
createDirectory
call outside of the loop.When I run a test merge command on two archives, I get an error:
The problem is the call to
copyItem
for this file:/path/to/SymbolKit.doccarchive/documentation/symbolkit
... trying to copy to/var/folders/some/temp/path/documentation/symbolkit
. The previous version of this code calledcreateDirectory
inside the loop, insuring that each target directory, such as.../documentation/symbolkit
, exists before we try to copy files to it. By moving the call tocreateDirectory
up outside the loop and only calling it once for thedata
directory, we aren't guaranteed that each target directory will exist.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you tests that again or provide steps to reproduce this? I tried this on commit
66e4229
(the main merge from yesterday) with combinations of 1, 2, 3, and 4 archives with and without and explicit output path and I never encountered that error.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same two archives (SlothCreator and SymbolKit) in the same order also works for me.