Skip to content

Commit

Permalink
Merge branch 'main' into issue-93
Browse files Browse the repository at this point in the history
  • Loading branch information
bparks13 committed Jan 22, 2025
2 parents 28f9507 + 1fb35fb commit 067751c
Show file tree
Hide file tree
Showing 23 changed files with 1,895 additions and 507 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
pull_request:
branches: [ main ]

concurrency:
group: docs
cancel-in-progress: true

jobs:
build:
runs-on: windows-latest
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,31 @@ Download and install [git](https://git-scm.com/downloads) if it is not installed
> It often appears to hang because it does not output any status information.
> Usually, the command will eventually return.
1. Clone the documentation repository:
1. Using Windows PowerShell or a Git Bash terminal, clone the documentation repository:
``` console
git clone https://github.com/open-ephys/onix1-bonsai-docs
cd onix1-bonsai-docs
git clone https://github.com/open-ephys/bonsai-onix1-docs
cd bonsai-onix1-docs
```
1. Pull in the latest files from the submodules according to the commit that the submodules point to:
``` console
git submodule update --recursive --init
```
In particular, the source code is available in this repo as a submodule. This will update the source code to the latest commit on main.
1. Configure the docfx version and restore docfx companion tools such as [DocLinkChecker](https://github.com/Ellerbach/docfx-companion-tools/tree/main/src/DocLinkChecker).
``` console
dotnet tool restore --configfile ./.bonsai/NuGet.config
```
1. To make the `docfx` command available after restoring the config file from the previous step, run:
1. Configure the docfx version and restore docfx companion tools such as [DocLinkChecker](https://github.com/Ellerbach/docfx-companion-tools/tree/main/src/DocLinkChecker). You need to be in the same root folder where you cloned the repository for this to work. Run:
``` console
dotnet tool restore
```
to make the `docfx` command available.
If the above command yields the following error:
``` console
It was not possible to find any installed .NET Core SDKs
```
even after installing .NET as described previously in the readme, refer to [this comment](https://github.com/dotnet/core/issues/6095#issuecomment-809006602) for a potential fix. If you follow the instructions described in the comment, make sure you proceed in a terminal or command prompt opened after changing the environment variables.
1. Set up a local Bonsai environment for automatically exporting SVGs, run:
1. Set up a local Bonsai environment for automatically exporting SVGs, run Setup.ps1 in PowerShell (or, if not using PowerShell, run Setup.Cmd):
``` console
./.bonsai/Setup.ps1
```
```
If the above command yields the following error:
``` console
./Setup.ps1 : File C:\Users\User\...\bonsai-onix1-docs\Setup.ps1 cannot be loaded because running scripts is
Expand All @@ -66,6 +64,8 @@ To build the docs and serve locally, run in PowerShell:
./build.ps1 --serve
```

If this doesn't run, see comment in section above.

If SVGs are already exported and do not need to be updated, they don't need to be re-exported. In that case, to build the docs and serve locally more quickly, run:

``` console
Expand Down Expand Up @@ -96,7 +96,7 @@ The above set of commands can also be run using the `docfx-utils.ps1` Powershell
To run the next command, install [Lychee](https://github.com/lycheeverse/lychee?tab=readme-ov-file) by following [these instructions](https://github.com/lycheeverse/lychee?tab=readme-ov-file#installation). If you are use Windows and download a Lychee executable, amend the below command according to the location and version of your Lychee executable, and run it.

``` console
<lychee/installation/directory>/lychee-v<x.xx.x>-windows-x86_64.exe --verbose --no-progress --base _site --exclude ^https://github\.com.*merge.* --exclude ^https://github\.com.*apiSpec.* '_site/**/*.html'
<lychee/installation/directory>/lychee-v<x.xx.x>-windows-x86_64.exe --no-progress --base _site --exclude ^https://github\.com.*merge.* --exclude ^https://github\.com.*apiSpec.* --exclude ^https://github\.com/open-ephys/onix1-bonsai-docs/blob/.*/#L1 '_site/**/*.html' --max-retries 0 --max-concurrency 32 --cache --max-cache-age 1d
```

If you use a different operating systems and a different methods of installation, the above command might require additional amendments.
Expand Down Expand Up @@ -187,4 +187,4 @@ If there are discrepancies between local and remote builds:

## Style Guide

Refer to the [Style Guide](style-guide.md).
Refer to the [Style Guide](style-guide.md).
144 changes: 0 additions & 144 deletions articles/tutorials/basic-ephys-processing.md

This file was deleted.

Loading

0 comments on commit 067751c

Please sign in to comment.