open-ephys / bonsai-onix1-docs

Documentation for the OpenEphys.Onix1 Bonsai package
https://open-ephys.github.io/bonsai-onix1-docs/
Creative Commons Attribution Share Alike 4.0 International
0 stars 2 forks source link

Update readme for building docs with certificate error #83

Open ChucklesOnGitHub opened 1 week ago

ChucklesOnGitHub commented 1 week ago

Error that comes up is:

./build.ps1 : File C:\Users\User\...\onix1-bonsai-docs\build.ps1 cannot be loaded because running scripts is      
disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. 
At line:1 char:1
+ ~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

As per this, solution is to:

Open PowerShell as Administrator and run Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

Make sure we recommend the most restrictive policy that allows us to run the powershell commands.