chore: reorganize docs apps (#7228)
* reorganize docs apps * add README * fix directory * add condition for old docs
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
"use client"
|
||||
|
||||
import { EditButton as UiEditButton } from "docs-ui"
|
||||
import { usePathname } from "next/navigation"
|
||||
|
||||
const EditButton = () => {
|
||||
const pathname = usePathname()
|
||||
|
||||
return (
|
||||
<UiEditButton
|
||||
filePath={`/www/apps/user-guide/app${pathname.replace(
|
||||
/\/$/,
|
||||
""
|
||||
)}/page.mdx`}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default EditButton
|
||||
Reference in New Issue
Block a user