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.
This commit is contained in:
Andrej730
2025-09-10 14:40:52 +05:00
parent e28979ceb7
commit e9bad17502
3 changed files with 13 additions and 3 deletions
+10
View File
@@ -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;
}
@@ -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 <https://docs.bonsaibim.org/quickstart/ide/linux/dev_environment.sh>`__
:download:`Download dev_environment.sh <linux/dev_environment.sh>`
Edit the file to match the paths in your system. In our case we will edit the following lines:
@@ -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 <https://docs.bonsaibim.org/quickstart/ide/windows/dev_environment.bat>`__
:download:`Download dev_environment.bat <windows/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!
CONGRATULATIONS! and happy testing!