From d86409400c8cd815b00a0cd2ea2a236265462083 Mon Sep 17 00:00:00 2001 From: Eric Cheng Date: Fri, 28 Jan 2022 02:30:20 -0500 Subject: [PATCH] feat: add chat.fakerjs.dev subdomain redirection to discord (#306) Co-authored-by: ST-DDT --- .github/ISSUE_TEMPLATE/config.yml | 2 +- CODE_OF_CONDUCT.md | 2 +- README.md | 2 +- docs/guide/index.md | 2 +- docs/update.md | 2 +- netlify.toml | 5 +++++ 6 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 313e09953ef..6af839564f0 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,7 +1,7 @@ blank_issues_enabled: false contact_links: - name: Discord Chat - url: discord.gg/4qDjAmDj4P + url: https://chat.fakerjs.dev about: Ask questions and discuss with other users in real time. - name: Questions & Discussions url: https://github.com/faker-js/faker.js/discussions diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 0c25086badf..4634d41e93c 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -35,7 +35,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe ## Enforcement -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by [contacting a Moderator or Maintainer via Discord](https://discord.com/invite/4qDjAmDj4P). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by [contacting a Moderator or Maintainer via Discord](https://chat.fakerjs.dev). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. diff --git a/README.md b/README.md index ff15636b802..18dfb366f71 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

Faker

Generate massive amounts of fake (but realistic) data for testing and development.

- [![Chat on Discord](https://img.shields.io/discord/929487054990110771)](https://discord.com/invite/4qDjAmDj4P) + [![Chat on Discord](https://img.shields.io/discord/929487054990110771)](https://chat.fakerjs.dev) [![Continuous Integration](https://github.com/faker-js/faker/actions/workflows/ci.yml/badge.svg)](https://github.com/faker-js/faker/actions/workflows/ci.yml) [![npm version](https://badgen.net/npm/v/@faker-js/faker)](https://www.npmjs.com/package/@faker-js/faker) [![npm downloads](https://badgen.net/npm/dm/@faker-js/faker)](https://www.npmjs.com/package/@faker-js/faker) diff --git a/docs/guide/index.md b/docs/guide/index.md index d377b20dd0c..def785f2e41 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -87,4 +87,4 @@ It is highly recommended to use version tags when importing libraries in Deno, e ## Community -If you have questions or need help, reach out to the community via [Discord](https://discord.com/invite/4qDjAmDj4P) and [GitHub Discussions](https://github.com/faker-js/faker/discussions). +If you have questions or need help, reach out to the community via [Discord](https://chat.fakerjs.dev) and [GitHub Discussions](https://github.com/faker-js/faker/discussions). diff --git a/docs/update.md b/docs/update.md index 2f11caa39b2..603879c0f7a 100644 --- a/docs/update.md +++ b/docs/update.md @@ -30,7 +30,7 @@ We're referring to it as the official library in the immediate term in order to ## (someone) is also working on a Faker library -Please send them to our [Discord](https://discord.gg/k4bPM5dzqC) and we can share ideas and collaborate. +Please send them to our [Discord](https://chat.fakerjs.dev) and we can share ideas and collaborate. ## Who are the current maintainers? diff --git a/netlify.toml b/netlify.toml index 5bc3b32d5dc..2fa705182e9 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,3 +4,8 @@ [build] publish = "docs/.vitepress/dist" command = "npx pnpm i --store=node_modules/.pnpm-store && npm run docs:build:ci" +[[redirects]] + from = "https://chat.fakerjs.dev" + to = "https://discord.com/invite/4qDjAmDj4P" + status = 301 + force = true