docs icon indicating copy to clipboard operation
docs copied to clipboard

fix: add title to api reference page

Open IceHe opened this issue 3 years ago • 1 comments

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. image

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

Thanks for the help from @demonzoo

Testing

Locally tested.

image

IceHe avatar Jul 28 '22 09:07 IceHe

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

image.png

With the help from @charles , resolve it using types in tsconfig.ts

image.png

Inspired by https://github.com/facebook/docusaurus/issues/6295

Reference: tsconfig#types

linear[bot] avatar Jul 28 '22 09:07 linear[bot]