docs: refactor & refine lifecycle API docs (#5918)

* docs: refactor & refine lifecycle API docs

* Fix links

* More writeup

* Rewording

* Rename path

* Use README

* Fix links

* Add redirects

* Do the same for latest version as well

* Move folder

* Fix broken link
This commit is contained in:
Joshua Chen 2021-12-21 14:54:04 +08:00 committed by GitHub
parent dc1ccd2fbb
commit 9078fd9fb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 1822 additions and 1716 deletions

View file

@ -121,7 +121,7 @@ Docusaurus' implementation of the plugins system provides us with a convenient w
A plugin is a function that takes two parameters: `context` and `options`.
It returns a plugin instance object, containing plugin [lifecycle APIs](./api/lifecycle-apis.md).
It returns a plugin instance object, containing plugin [lifecycle APIs](./api/plugin-methods/README.md).
It can be defined as a function or a module.
@ -206,4 +206,4 @@ interface LoadContext {
#### Return value {#return-value}
The returned object value should implement the [lifecycle APIs](./api/lifecycle-apis.md).
The returned object value should implement the [lifecycle APIs](./api/plugin-methods/README.md).