ant-design-blazor/docs
jsakamoto 6c624ec06c
docs: Enable static pre-rendering on the Docs WebAssembly app (#4207)
* Add the "BlazorWasmPreRendering.Build" package reference

* Cut out the service configuration to static method

- it is required for static pre-rendering

* Specify locale for pre-rendering to 'en-US' explicitly

- otherwise, an exception, "JsonException: '<' is an invalid start of a value" will happen.
- because there aren't "*.en.json" files, there are "*.en-US.json" files.

* Avoid doing "NavigateTo" during pre-rendering

- otherwise, the "NavigationException" will happen.

* Move caches of the DemoService to an individual singleton service.

- otherwise, a disposed HttpClient object will cause the "ObjectDisposedException" on a Blazor Server
- because a static field of a scoped service captures the HttpClient object that will disposed of after that scoped service has expired.

* Make it to be pre-rendered the zh-CN locale contents too

* Fix the invalid URL in the FAQ document

- both en-US and zh-CN.
- this caused 404 Not Found and a crash during the pre-rendering process.

* Change the pre-rendering output style to '{path}/{to}.html'.

- from the '{path}/{to}/index.html' style.

* Make the description part of the component pages be included in the static pre-rendering.

- To achieve that, load a DemoComponent object in the `OnIntializedAsync` life cycle method.
- and make sure to avoid invoking `NavigationTo` in the `OnIntializedAsync` life cycle method.
2024-09-18 00:54:16 +08:00
..
assets
contributing.en-US.md
contributing.zh-CN.md
faq.en-US.md docs: Enable static pre-rendering on the Docs WebAssembly app (#4207) 2024-09-18 00:54:16 +08:00
faq.zh-CN.md docs: Enable static pre-rendering on the Docs WebAssembly app (#4207) 2024-09-18 00:54:16 +08:00
getting-started.en-US.md docs: fix menu generator (#4157) 2024-09-03 13:29:19 +08:00
getting-started.zh-CN.md docs: fix menu generator (#4157) 2024-09-03 13:29:19 +08:00
i18n.en-US.md docs: update i18n document (#4085) 2024-08-13 08:45:59 +08:00
i18n.zh-CN.md docs: update i18n document (#4085) 2024-08-13 08:45:59 +08:00
introduce.en-US.md
introduce.zh-CN.md
localization.en-US.md
localization.zh-CN.md
member-path-helper.en-US.md
member-path-helper.zh-CN.md
nightly-build.en-US.md
nightly-build.zh-CN.md
test-kit.en-US.md
test-kit.zh-CN.md