-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[site] Add 'rake index' and 'rake multirepo:reinit' #6008
Conversation
Use ruby syntax for environment variable Exit if rake init fails on checkout
Remove --dry-run Add output message
Replaced 'print + exit' with equal 'abort'
Add rake reinit Refactor
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.
Seems to work as expected. The only thing that's peculiar is that the reinit
task is namespaced to multirepo
just like init
, but there's no option to run rake reinit
like there is for rake init
. It's not a big deal, I'm just curious why it's set up this way.
$ rake -T
...
rake index # Generate index for Algolia
rake init # Pull docs from external repositories
rake multirepo:add # Add multirepo docs providing shell arguments "dir=<directory where to init a repo>", "repo=<SSH URL>", "branch=<branch to checkout>", "filter=<true/false>" ("true" by default)...
rake multirepo:init # Create a file tree for devdocs website and get all required content
rake multirepo:reinit # Reinitialize subrepositories
...
It's done on purpose to decrease risk of mixing up |
Thanks for explaining! |
running tests |
Hi @dshevtsov, thank you for your contribution! |
Purpose of this pull request
This pull request:
rake index
that runs Algolia indexing (internal use only)rake multirepo:reindex
that removes existing sources listed inDocfile.yml
and runsrake init
to recreate the file treerake multirepo:
tasks when a subrepository failed to checkout