Set all space themes to the documentation theme and configure it in a standard way. Requires Atlassian Command Line Interface 2.6.0 or above.
Run the following commands with the following space list:
Space list
"INFO, ACLI, BCLI, BCLIP, CRDCLI, CRUCLI, CSOAP, FCLI, JCLI, BGTP, CACHE, DTBL, XL, FLASH, GVIZ, HTML, JSPR, LIBSEC, CMSP, RUN, LIBSCRPT, SCRP, SLID, SQL, TBL, CVP, WORD, CWP, CCLI, JCPP, CSOT, JSOAPLIB, CSOAPLIB, GINT"
Set Space Theme to Documentation Theme
atlassian confluence-bobswift -a runFromList --common "-a renderRequest --request /spaces/dochoosetheme.action --requestParameters themeKey=com.atlassian.confluence.plugins.doctheme%3Adocumentation&changesSaved=true&key=@entry@" --list "ACLI,BCLI"
Configure Documentation Theme
atlassian confluence-bobswift -a runFromList --common "-a renderRequest --request /spaces/doctheme/configuretheme.action --requestParameters spaceSearchEnabled=true&navigationText=%7Bpagetree%3AstartDepth%3D2%7CsearchBox%3Dtrue%7D&headerText=%7Binclude%3Ainfo%3Astandard-header%7D&footerText=%7Binclude%3Ainfo%3Astandard-footer%7D&confirm=Save&key=@entry@" --continue --list "ACLI,BCLI"