-
-
Notifications
You must be signed in to change notification settings - Fork 117
Description
Describe the bug
There seem to be a few issues with running the docs project locally (I'm putting them all in one issue because I assume most are related):
-
The docs readme says to run
docfxfromdocs/, but this gives an errorCannot find config file [...]\bUnit\docs\docfx.json. Should this bedocfx site/docfx.jsonor "run fromdocs/site/"? -
I get a compilation error when running
docfx:
error: C:\Users\James\Files\git\ext\bUnit\src\bunit.web\Extensions\Internal\CssSelectorElementFactory.cs(6,51): error CS0246: The type or namespace name
'IElementWrapperFactory' could not be found (are you missing a using directive or an assembly reference?)
-
From
docs-deploy.yml, it looks like I shouldn't even be runningdocfxand instead usedotnet run Site.csproj? -
Due to the above compilation error, the API spec doesn't get generated (with either of the above methods) unless I set
"allowCompilationErrors": trueindocfx.json. -
docfx.min.jsdoesn't get loaded due to "Cannot use import statement outside a module". This is fixed by settingtype="module"on the relevant script tag. -
The deployed docs don't have correct formatting for block quotes (e.g. see "The current thread is not associated" at https://bunit.dev/docs/interaction/trigger-renders.html) - but this seems to be fixed when running locally.
-
Typo in "Verfiy docs samples" in
docs-deploy.yml(doesn't cause any issues).
Version info:
- bUnit version: n/a
- .NET Runtime and Blazor version: n/a (.NET 8 SDK)
- OS type and version: Windows 10
Additional context:
I think some or all of these are related to #1286