Skip to content

Commit 13b4d58

Browse files
committed
docs: keywords; title; text
1 parent 475e4c1 commit 13b4d58

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
# react-use-url-state
22

3+
![npm](https://img.shields.io/npm/v/react-use-url-state?logo=npm)
4+
![npm type definitions](https://img.shields.io/npm/types/react-use-url-state?logo=typescript)
5+
![npm](https://img.shields.io/npm/dw/react-use-url-state)
6+
![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/npm/react-use-url-state)
7+
[![Known Vulnerabilities](https://snyk.io/test/npm/react-use-url-state/badge.svg)](https://snyk.io/test/react-use-url-state/axios)
8+
39
Use URL to store a state in React.
410

511
* Easily handle numbers, dates, booleans, and arrays.
612
* Have a type-safety with [Zod](https://zod.dev/)
13+
* CJS and ESM support
14+
* 0 dependencies
715

816
> `https://example.com/?text=query&number=10&date=2023-11-29T13%3A52%3A50.230Z`
917
>

apps/docs/next-sitemap.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ module.exports = {
55
generateRobotsTxt: true,
66
sourceDir: path.resolve(__dirname, '../../dist/apps/docs/.next'),
77
generateIndexSitemap: false,
8+
changefreq: 'weekly',
89
};

apps/docs/pages/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Introduction
22

3-
React state manager that helps you to deal with `numbers`, `dates`, `arrays`, etc. in the URL params.
3+
React state manager that helps you to deal with `numbers`, `dates`, `arrays`, etc. in the URL search params.
44

55
Get sharable links with the current state of your app.
66

@@ -9,3 +9,4 @@ Get sharable links with the current state of your app.
99
> `<=>`
1010
>
1111
> `{ text: 'query', number: 10, date: new Date('2023-11-29T13:52:50.230Z') }`
12+

apps/docs/public/sitemap.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
3-
<url><loc>https://react-use-url-state.vercel.app</loc><lastmod>2023-12-02T03:09:02.465Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
4-
<url><loc>https://react-use-url-state.vercel.app/api-reference</loc><lastmod>2023-12-02T03:09:02.465Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
5-
<url><loc>https://react-use-url-state.vercel.app/contributing</loc><lastmod>2023-12-02T03:09:02.465Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
6-
<url><loc>https://react-use-url-state.vercel.app/examples/advanced</loc><lastmod>2023-12-02T03:09:02.465Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
7-
<url><loc>https://react-use-url-state.vercel.app/examples/arrays</loc><lastmod>2023-12-02T03:09:02.465Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
8-
<url><loc>https://react-use-url-state.vercel.app/examples/basic</loc><lastmod>2023-12-02T03:09:02.465Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
9-
<url><loc>https://react-use-url-state.vercel.app/examples/initial-value</loc><lastmod>2023-12-02T03:09:02.465Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
10-
<url><loc>https://react-use-url-state.vercel.app/examples/initial-value-applied</loc><lastmod>2023-12-02T03:09:02.465Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
11-
<url><loc>https://react-use-url-state.vercel.app/examples/passthrough</loc><lastmod>2023-12-02T03:09:02.465Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
12-
<url><loc>https://react-use-url-state.vercel.app/installation</loc><lastmod>2023-12-02T03:09:02.465Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
13-
<url><loc>https://react-use-url-state.vercel.app/quick-start</loc><lastmod>2023-12-02T03:09:02.465Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
3+
<url><loc>https://react-use-url-state.vercel.app</loc><lastmod>2023-12-08T04:15:26.761Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
4+
<url><loc>https://react-use-url-state.vercel.app/api-reference</loc><lastmod>2023-12-08T04:15:26.761Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
5+
<url><loc>https://react-use-url-state.vercel.app/contributing</loc><lastmod>2023-12-08T04:15:26.761Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
6+
<url><loc>https://react-use-url-state.vercel.app/examples/advanced</loc><lastmod>2023-12-08T04:15:26.761Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
7+
<url><loc>https://react-use-url-state.vercel.app/examples/arrays</loc><lastmod>2023-12-08T04:15:26.761Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
8+
<url><loc>https://react-use-url-state.vercel.app/examples/basic</loc><lastmod>2023-12-08T04:15:26.761Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
9+
<url><loc>https://react-use-url-state.vercel.app/examples/initial-value</loc><lastmod>2023-12-08T04:15:26.761Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
10+
<url><loc>https://react-use-url-state.vercel.app/examples/initial-value-applied</loc><lastmod>2023-12-08T04:15:26.761Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
11+
<url><loc>https://react-use-url-state.vercel.app/examples/passthrough</loc><lastmod>2023-12-08T04:15:26.761Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
12+
<url><loc>https://react-use-url-state.vercel.app/installation</loc><lastmod>2023-12-08T04:15:26.761Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
13+
<url><loc>https://react-use-url-state.vercel.app/quick-start</loc><lastmod>2023-12-08T04:15:26.761Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
1414
</urlset>

apps/docs/theme.config.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ const config: DocsThemeConfig = {
99
// chat: {
1010
// link: 'https://discord.com',
1111
// },
12+
1213
docsRepositoryBase:
1314
'https://github.com/wanjas/react-use-url-state/tree/main/apps/docs',
1415
footer: {
1516
text: 'React useUrlState',
1617
},
18+
useNextSeoProps: () => ({
19+
titleTemplate: '%s | useUrlState',
20+
}),
1721
};
1822

1923
export default config;

0 commit comments

Comments
 (0)