docs
docs copied to clipboard
fix: add title to api reference page
Summary
Add the title "API" to API Reference page
- The full title of API Reference page should
API | Logto Docs(i.e. page title + ' | ' + website title)
Related problem:
After adding the title to the API Reference page, failed to pass tsc -p tsconfig.json.

Resolved it by adding "types": ["@docusaurus/theme-classic"] in tsconfig.ts.

Thanks for the help from @demonzoo
Testing
Locally tested.
LOG-3847 API Reference title in the browser tab should be "API | Logto Docs"
Troubleshooting: After adding the title to the API Reference page, failed to pass tsc -p tsconfig.json
With the help from @charles , resolve it using types in tsconfig.ts
Inspired by https://github.com/facebook/docusaurus/issues/6295
Reference: tsconfig#types