Skip to content

Commit b250913

Browse files
committed
UPDATE: rename /library to /patterns to avoid confusion
1 parent f5c5ed1 commit b250913

File tree

12 files changed

+11
-11
lines changed

12 files changed

+11
-11
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ENV NODE_ENV=production
3030

3131
USER nonroot
3232
COPY --chown=nonroot:nonroot --from=base /usr/bin/dumb-init /usr/bin/dumb-init
33-
COPY --chown=nonroot:nonroot --from=builder /app/library /app/library
33+
COPY --chown=nonroot:nonroot --from=builder /app/patterns /app/patterns
3434
COPY --chown=nonroot:nonroot --from=builder /app/build /app/build
3535
COPY --chown=nonroot:nonroot --from=builder /app/node_modules /app/node_modules
3636
COPY --chown=nonroot:nonroot ./server.js /app/server.js

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![build](https://github.com/regexplanet/regex-zone/actions/workflows/gcr-deploy.yaml/badge.svg)](https://github.com/regexplanet/regex-zone/actions/workflows/gcr-deploy.yaml)
44

5-
A library of useful regular expressions and related resources.
5+
A collection of useful regular expressions and related resources.
66

77
## License
88

app/components/HeaderSearch/HeaderSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Container, Navbar } from 'react-bootstrap';
55
import RegexZoneSvg from '../Logos/RegexZoneSvg';
66

77
const links = [
8-
{ link: '/library/', label: 'Library' },
8+
{ link: '/patterns/', label: 'Patterns' },
99
//{ link: '/docs/', label: 'Docs' },
1010
{ link: 'https://www.regexplanet.com/', label: 'Testing' },
1111
//{ link: 'https://github.com/regexplanet/regex-zone/discussions', label: 'Community' },
File renamed without changes.

app/components/TagList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function TagList(tags: string[]) {
66
{tags.map((tag) => (
77
<RemixLink
88
key={tag}
9-
to={`/library/tags.html?tag=${tag}`}
9+
to={`/patterns/tags.html?tag=${tag}`}
1010
className="badge text-bg-primary text-decoration-none me-2"
1111
>
1212
{tag.replace('-', ' ')}

app/routes/_index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function Index() {
2121
<h1 className="py-2">
2222
Welcome to the Regex Zone
2323
</h1>
24-
<div className="pb-3">Check out the <RemixLink to="/library/">Library</RemixLink> of useful patterns!</div>
24+
<div className="pb-3">Check out the collection of useful <RemixLink to="/patterns/">Regular Expression Patterns</RemixLink>!</div>
2525
<ColorSchemeToggle />
2626
</Container>
2727
<Footer />

app/routes/library._index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export const loader = async () => {
1717

1818
export const meta: MetaFunction = () => {
1919
return [
20-
{ title: "Library - Regex Zone" },
21-
{ name: "description", content: "A library of useful regular expressions" },
20+
{ title: "Patterns - Regex Zone" },
21+
{ name: "description", content: "A collection of useful regular expression patterns" },
2222
];
2323
};
2424

app/routes/library.tags[.]html.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const loader = async () => {
1919
for (const entry of getAll()) {
2020
if (entry.tags) {
2121
for (const tag of entry.tags) {
22-
const tagEntry = { title: entry.title, url: `/library/${entry.handle}/` };
22+
const tagEntry = { title: entry.title, url: `/patterns/${entry.handle}/` };
2323
const entries = tagMap[tag];
2424
if (!entries) {
2525
tagMap[tag] = [tagEntry];

app/routes/sitemap[.]xml.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ export async function loader() {
1212
lines.push('<?xml-stylesheet type="text/xsl" href="/sitemap.xslt" ?>');
1313
lines.push('<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9">');
1414
lines.push(urlLine('/'));
15-
lines.push(urlLine('/library/'));
16-
lines.push(urlLine('/library/tags.html'));
15+
lines.push(urlLine('/patterns/'));
16+
lines.push(urlLine('/patterns/tags.html'));
1717
lines.push(urlLine('/search.html'));
1818

1919
await initialize();
2020
for (const entry of getAll()) {
21-
lines.push(urlLine(`/library/${entry.handle}/`));
21+
lines.push(urlLine(`/patterns/${entry.handle}/`));
2222
}
2323

2424
lines.push('</urlset>')
File renamed without changes.

0 commit comments

Comments
 (0)