From e9bad17502080fe4083eb733f3d5f969e68c9b22 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 10 Sep 2025 14:40:52 +0500 Subject: [PATCH] Fix broken scripts download urls #7107 They were hardcoded and `:download:` wasn't used, so sphinx never copied the scripts to be available to download. They also were always pointing to main docs website, so they would show up on unstable documentation too, and I guess because they were hardcoded, there were no warnings when those files were recently moved. --- src/bonsai/docs/_static/custom.css | 10 ++++++++++ src/bonsai/docs/guides/development/ide/linux_ide.rst | 2 +- src/bonsai/docs/guides/development/ide/windows_ide.rst | 4 ++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/bonsai/docs/_static/custom.css b/src/bonsai/docs/_static/custom.css index a400f3eef1..14c25750b1 100644 --- a/src/bonsai/docs/_static/custom.css +++ b/src/bonsai/docs/_static/custom.css @@ -46,6 +46,16 @@ a { background: #70ba35; } +.blockbutton a.download code { + background: none !important; + border: none !important; + color: inherit !important; + font-family: inherit !important; + font-size: inherit !important; + font-weight: bold; /* optional */ + padding: 0 !important; +} + .highlight .hll { background-color: #ffc2; } diff --git a/src/bonsai/docs/guides/development/ide/linux_ide.rst b/src/bonsai/docs/guides/development/ide/linux_ide.rst index 9da0bd068a..6381ff47b8 100644 --- a/src/bonsai/docs/guides/development/ide/linux_ide.rst +++ b/src/bonsai/docs/guides/development/ide/linux_ide.rst @@ -402,7 +402,7 @@ Now let's find out how to interact with GitHub in order to make changes to the B .. container:: blockbutton - `Download dev_environment.sh `__ + :download:`Download dev_environment.sh ` Edit the file to match the paths in your system. In our case we will edit the following lines: diff --git a/src/bonsai/docs/guides/development/ide/windows_ide.rst b/src/bonsai/docs/guides/development/ide/windows_ide.rst index a2cf1e0d6c..a8e91ebfd1 100644 --- a/src/bonsai/docs/guides/development/ide/windows_ide.rst +++ b/src/bonsai/docs/guides/development/ide/windows_ide.rst @@ -345,7 +345,7 @@ Now let's find out how to interact with GitHub in order to make changes to the B .. container:: blockbutton - `Download dev_environment.bat `__ + :download:`Download dev_environment.bat ` Edit the file to match the paths in your system. In our case we will edit the following lines: @@ -681,4 +681,4 @@ Now let's find out how to interact with GitHub in order to make changes to the B You can also use the GitHub Pull Request extension to review the Pull Request and provide comments. And of course the rest of the VSCode functionality to test, debug, improve, etc. the code. - CONGRATULATIONS! and happy testing! \ No newline at end of file + CONGRATULATIONS! and happy testing!