Conversation
|
Deploy preview for docusaurus-preview ready! Built with commit ee2eb8f |
|
@gustavohenke can you provide a test plan for non cross-repo publishing ? Making sure it does not break |
|
Yep. If we aren't breaking current sites that use the default publishing, I think this is great to be accepted and pushed. |
|
Hi @endiliey and @JoelMarcey, |
JoelMarcey
left a comment
There was a problem hiding this comment.
This looks good to me too. And doesn't seem to break the current publishing, which is great 😄
|
Nice test plan, btw, @gustavohenke |
|
@gustavohenke - Hey! @chenglou pinged me today about the code in this PR, and I think we may have hit a "this was tested great locally, but not on a CI system" situation. @chenglou noted correctly that the default So I think your solution works for a certain version of We may need to do one of two things here:
|
|
Hi @JoelMarcey, I think finding another command is the ideal fix. I imagine extra output parsing will be required though. Let me know what you think, and I can try working on it! |
Just to be clear, I meant forcing the CircleCI config -- we would document how to force a specific git version use on CircleCI. Not the user's local config.
The above said, I think having a more global command (for now, until default distros upgrade their git version) may be the way to go too.
Thank you! Would love if you could come up with something in a PR. Thank you 👍 |
|
The command is indeed failing, e.g. https://circleci.com/gh/facebook/metro/2898 (search for I've tried using a more recent git version, but unfortunately CircleCI 2's Debian images don't have a more recent version of git. And installing and compiling git yourself is even more troublesome. Given that it's just a single command that's failing, I'd say changing it and calling a day is fine. |
Motivation
I'm maintaining the express-validator org, and I like keeping docs close to the source, so that external contributors and I can submit PRs that contain the complete change.
Have you read the Contributing Guidelines on pull requests?
👍
Test Plan for Cross Repo publishing
foo/foo), and pointsiteConfig.jsto another (e.g. setprojectNametofoo.github.io);masterbranch;publish-gh-pagesscript;masterand tomaster.foo.github.ioshould now have been updated with the latest version of your awesome docs written with Docusaurus;Test Plan for same repo publishing
siteConfig.jsto the repo the docs are going to be hosted on -- e.g. setorganizationNametofooandprojectNametobar, while your git remote isfoo/bar);masterbranch;publish-gh-pagesscript;gh-pagesgetting updated with your changes. Watch howfoo.github.io/bargets updated with the latest version of your awesome docs written with Docusaurus.Test Plan for same repo publishing from wrong branch
siteConfig.jsto the repo the docs are going to be hosted on -- e.g. setorganizationNametofooandprojectNametofoo.github.io, while your git remote isfoo/foo.github.io;masterbranch;publish-gh-pagesscript;mastertomaster.Related PRs
I have a related issue actually: #717