@x-wave/blog 1.1.4 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/index.js +488 -501
- package/package.json +5 -1
- package/vite-config/blog-discovery.ts +160 -0
- package/vite-config/index.ts +17 -0
- package/vite-config/meta-tags.ts +184 -0
- package/vite-config/setup-ssg.ts +105 -0
- package/vite-config/static-gen-plugin.ts +98 -0
- package/vite-config/types.ts +32 -0
package/README.md
CHANGED
|
@@ -141,7 +141,7 @@ export const blog = createBlogUtils(mdxFiles)
|
|
|
141
141
|
```tsx
|
|
142
142
|
// src/App.tsx
|
|
143
143
|
import { BlogProvider, DocumentationRoutes } from '@x-wave/blog'
|
|
144
|
-
import { Navigate, Route,
|
|
144
|
+
import { Navigate, Route, BrowserRouter as Router, Routes } from 'react-router-dom'
|
|
145
145
|
import { blog } from './utils'
|
|
146
146
|
import { NAVIGATION_DATA } from './navigation'
|
|
147
147
|
|
|
@@ -177,7 +177,7 @@ export default function App() {
|
|
|
177
177
|
}
|
|
178
178
|
```
|
|
179
179
|
|
|
180
|
-
> **
|
|
180
|
+
> **Note**: BrowserRouter requires server configuration to fallback to `index.html` for all routes.
|
|
181
181
|
|
|
182
182
|
### Using a base path
|
|
183
183
|
|