Just did this - it gave a slightly odd error but seemed to run okay:
root@spokes-web-only:/var/www/discourse# bundle exec rake doc_categories:build_sidebar
fatal: detected dubious ownership in repository at ‘/var/www/discourse’
To add an exception for this directory, call:git config --global --add safe.directory /var/www/discourse
Processing category #21 - Ask the Candidates
⮑ Created 3 sections and 55 linksProcessing category #21 - Ask the Candidates
⮑ Created 3 sections and 55 links
Is that as it should be?
And do we have to change how we interact with the index topic, or is that all unchanged?