猬嗭笍 Relates to https://github.com/RasaHQ/growth/issues/1436
We should add a new workflow to test the new docs and build them upon release:
馃挕 the current building system works as follows:
docs branch on the same repoWe could mirror this and create newdocs branch. That way we do not override the existing docs and can still build the new docs. The Netflify part is not handled in this ticket.
@m-vdb we are at 9 out of 9 members on our Netlify "team", but some of these can probably be removed and you could be added; then I could walk you through the configuration

let's wait and see if Tom wants to handle that part. Otherwise we'll figure it out (maybe Rajesh doesn't need access?)
added you on netlify
The Netflify part is not handled in this ticket.
I guess it is now? :D
Regarding the ticket:
@m-vdb before you go ahead and add a build step for the new docs we (@lunelson) should align on how it should look like (let me know if that already happened):
docs branch on rasahq/rasa and no change to its netlify config)documentation, can't use docs though - see above)does that work or did you have something else in mind @lunelson?
yes this is exactly what we discussed 馃憤
@tmbo @m-vdb yes the existing workflow of building to the docs branch and netlify's configuration to publish from that branch must remain intact; my suggestion for the new build is this:
docs2 branch on rasahq/rasahttps://docs2--rasahq-docs-rasa.netlify.app/
we'll most probably name the branch documentation to avoid a later renaming
@m-vdb OK let me know when you've named it and I'll update the config in Netlify :+1:
@lunelson we'll go with documentation. I'm about to push the first changes soon. Happy to also take a look at Netlify since now I have access
@m-vdb OK cool. The relevant settings are here https://app.netlify.com/sites/rasahq-docs-rasa/settings/deploys, and you'll see where I configured docs2 as a branch deploy, this should be changed to documentation
@tmbo I took a closer look at how to deploy docs properly with docusaurus. If I follow their docs, here is how it works:
docs/ folder on the default branch (master)docusaurus docs:version x.y.z, and it will create the following structure under the docs/ folder: https://v2.docusaurus.io/docs/next/versioning/#directory-structure (then we need to commit + push)The drawbacks:
The plus:
docusaurus philosophyI also took a look at how sphinx-versioning does it under the hood: it creates a temp folder, git clones the docs branch in it, build the docs and outputs it in the temp folder, commit the changes, pushes it. Our Netlify setup listens to these changes and deploys the docs site.
documentation branch, and do something similar to what sphinx did: create a temp dir, git clone the branch inside it.docs folderdocusaurus docs:version x.y.z to create the new version in the folderdocumentation branch and push itdocumentation branchThe drawbacks:
docs branch and be done with it!)The plus:
docusaurus philosophymasterall versions live inside master, which could impact the size of the repo
I guess it could, but in a standard Docusaurus setup it's only the source files, not the built html
it looks hard to deploy docs from a release branch
yes, Netlify looks for either a specific branch name to deploy, or it can be set to deploy all branches; there is no wildcard matching of branch names 馃し
@m-vdb I'm wondering if the extra control you have with building through Github Actions is worth it here since you have to do a lot of scripting in order to commit built html to the documentation branch so that Netlify will publish them. OTOH if you let Netlify do the build, the built files are never committed anywhere and you could just deploy from master (and PRs against master). Note also, that for local work you can run Netlify's CLI (netlify dev) to test the build in an identical local environment before pushing the source files, to trigger the remote build
@lunelson yes 馃挴 I went for building inside Netlify. There are things that needs to be pre-built inside Github Actions because we need the python context, but after that, everything is handled in the deploy settings of Netlify. There are still some manual things to do though.
I've managed to build the site here: https://rasahq-docsv2-rasa.netlify.app/
~(next: figuring out why I get a 404 on the docs page)~
@m-vdb Oh cool :+1: Looks good!聽
Maybe when I'm back you could walk me through the manual bits ;)
sure!