diff --git a/README.md b/README.md index 659d784..1116703 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,17 @@ # react-use-url-state +![npm](https://img.shields.io/npm/v/react-use-url-state?logo=npm) +![npm type definitions](https://img.shields.io/npm/types/react-use-url-state?logo=typescript) +![npm](https://img.shields.io/npm/dw/react-use-url-state) +![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/npm/react-use-url-state) +[![Known Vulnerabilities](https://snyk.io/test/npm/react-use-url-state/badge.svg)](https://snyk.io/test/react-use-url-state/axios) + Use URL to store a state in React. * Easily handle numbers, dates, booleans, and arrays. * Have a type-safety with [Zod](https://zod.dev/) +* CJS and ESM support +* 0 dependencies > `https://example.com/?text=query&number=10&date=2023-11-29T13%3A52%3A50.230Z` > diff --git a/apps/docs/next-sitemap.config.js b/apps/docs/next-sitemap.config.js index cb020ef..5ae2722 100644 --- a/apps/docs/next-sitemap.config.js +++ b/apps/docs/next-sitemap.config.js @@ -5,4 +5,5 @@ module.exports = { generateRobotsTxt: true, sourceDir: path.resolve(__dirname, '../../dist/apps/docs/.next'), generateIndexSitemap: false, + changefreq: 'weekly', }; diff --git a/apps/docs/pages/index.mdx b/apps/docs/pages/index.mdx index 94d3a93..41fbd69 100644 --- a/apps/docs/pages/index.mdx +++ b/apps/docs/pages/index.mdx @@ -1,6 +1,6 @@ # Introduction -React state manager that helps you to deal with `numbers`, `dates`, `arrays`, etc. in the URL params. +React state manager that helps you to deal with `numbers`, `dates`, `arrays`, etc. in the URL search params. Get sharable links with the current state of your app. @@ -9,3 +9,4 @@ Get sharable links with the current state of your app. > `<=>` > > `{ text: 'query', number: 10, date: new Date('2023-11-29T13:52:50.230Z') }` + diff --git a/apps/docs/public/sitemap.xml b/apps/docs/public/sitemap.xml index 4d09d67..ab67d2d 100644 --- a/apps/docs/public/sitemap.xml +++ b/apps/docs/public/sitemap.xml @@ -1,14 +1,14 @@ -https://react-use-url-state.vercel.app2023-12-02T03:09:02.465Zdaily0.7 -https://react-use-url-state.vercel.app/api-reference2023-12-02T03:09:02.465Zdaily0.7 -https://react-use-url-state.vercel.app/contributing2023-12-02T03:09:02.465Zdaily0.7 -https://react-use-url-state.vercel.app/examples/advanced2023-12-02T03:09:02.465Zdaily0.7 -https://react-use-url-state.vercel.app/examples/arrays2023-12-02T03:09:02.465Zdaily0.7 -https://react-use-url-state.vercel.app/examples/basic2023-12-02T03:09:02.465Zdaily0.7 -https://react-use-url-state.vercel.app/examples/initial-value2023-12-02T03:09:02.465Zdaily0.7 -https://react-use-url-state.vercel.app/examples/initial-value-applied2023-12-02T03:09:02.465Zdaily0.7 -https://react-use-url-state.vercel.app/examples/passthrough2023-12-02T03:09:02.465Zdaily0.7 -https://react-use-url-state.vercel.app/installation2023-12-02T03:09:02.465Zdaily0.7 -https://react-use-url-state.vercel.app/quick-start2023-12-02T03:09:02.465Zdaily0.7 +https://react-use-url-state.vercel.app2023-12-08T04:15:26.761Zweekly0.7 +https://react-use-url-state.vercel.app/api-reference2023-12-08T04:15:26.761Zweekly0.7 +https://react-use-url-state.vercel.app/contributing2023-12-08T04:15:26.761Zweekly0.7 +https://react-use-url-state.vercel.app/examples/advanced2023-12-08T04:15:26.761Zweekly0.7 +https://react-use-url-state.vercel.app/examples/arrays2023-12-08T04:15:26.761Zweekly0.7 +https://react-use-url-state.vercel.app/examples/basic2023-12-08T04:15:26.761Zweekly0.7 +https://react-use-url-state.vercel.app/examples/initial-value2023-12-08T04:15:26.761Zweekly0.7 +https://react-use-url-state.vercel.app/examples/initial-value-applied2023-12-08T04:15:26.761Zweekly0.7 +https://react-use-url-state.vercel.app/examples/passthrough2023-12-08T04:15:26.761Zweekly0.7 +https://react-use-url-state.vercel.app/installation2023-12-08T04:15:26.761Zweekly0.7 +https://react-use-url-state.vercel.app/quick-start2023-12-08T04:15:26.761Zweekly0.7 \ No newline at end of file diff --git a/apps/docs/theme.config.tsx b/apps/docs/theme.config.tsx index fdf0b6f..e320d2b 100644 --- a/apps/docs/theme.config.tsx +++ b/apps/docs/theme.config.tsx @@ -9,11 +9,15 @@ const config: DocsThemeConfig = { // chat: { // link: 'https://discord.com', // }, + docsRepositoryBase: 'https://github.com/wanjas/react-use-url-state/tree/main/apps/docs', footer: { text: 'React useUrlState', }, + useNextSeoProps: () => ({ + titleTemplate: '%s | useUrlState', + }), }; export default config;