File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,18 @@ bases_file = joinpath(dist_root, "bases.txt")
179179println (" Creating bases.txt with subfolder: $(deploy_decision. subfolder) " )
180180write (bases_file, " $(deploy_decision. subfolder) \n " )
181181
182+ # Create redirect index.html at root to redirect to dev
183+ # Only do this when deploying to dev (not for version tags)
184+ # Once there are tagged versions, DocumenterVitepress will handle this automatically
185+ if deploy_decision. subfolder == " dev"
186+ redirect_html = """ <!--This file is automatically generated by DocumenterVitepress.jl-->
187+ <meta http-equiv="refresh" content="0; url=./dev/"/>
188+ """
189+ redirect_file = joinpath (dist_root, " index.html" )
190+ println (" Creating redirect index.html to ./dev/" )
191+ write (redirect_file, redirect_html)
192+ end
193+
182194if deployment_target == " secondary"
183195 # Secondary deployment to ai.damtp.cam.ac.uk
184196 println (" Deploying to secondary repository (ai.damtp.cam.ac.uk)" )
You can’t perform that action at this time.
0 commit comments