From 811e2965b6f0e7e5ac495a4a01094b384e587585 Mon Sep 17 00:00:00 2001 From: IZUMI-Zu <274620705z@gmail.com> Date: Wed, 5 Feb 2025 13:09:43 +0800 Subject: [PATCH] refactor: rename project from "Casdoor App" to "Casdoor Authenticator" --- .../workflows/docs.links.check.config.json | 3 +++ .github/workflows/master.yml | 1 + blog/2024-10-18.mdx | 4 ++-- docs/basic/getting-started.md | 4 ++-- docs/basic/usage.md | 2 +- docs/build/configuration.md | 6 +++--- docs/build/process.md | 2 +- docs/overview.md | 2 +- docusaurus.config.js | 20 +++++++++---------- package.json | 2 +- src/components/DownloadSection/index.js | 4 ++-- src/pages/help.js | 2 +- src/pages/index.js | 2 +- 13 files changed, 29 insertions(+), 25 deletions(-) diff --git a/.github/workflows/docs.links.check.config.json b/.github/workflows/docs.links.check.config.json index b5654f2..c87527e 100644 --- a/.github/workflows/docs.links.check.config.json +++ b/.github/workflows/docs.links.check.config.json @@ -21,6 +21,9 @@ { "pattern": "^https://developer.android.com/guide/topics/manifest/manifest-element#package" }, + { + "pattern": "^https://developer.android.com/studio" + }, { "pattern": "^https://developer.twitter.com/en/portal/dashboard" }, diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index a3b6397..dbd5327 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -42,6 +42,7 @@ jobs: yarn build - name: Deploy 🚀 + if: github.repository_owner == 'casdoor' uses: JamesIves/github-pages-deploy-action@v4 with: ssh-key: ${{ secrets.DEPLOY_KEY }} diff --git a/blog/2024-10-18.mdx b/blog/2024-10-18.mdx index 26fac9c..6eb1c60 100644 --- a/blog/2024-10-18.mdx +++ b/blog/2024-10-18.mdx @@ -2,7 +2,7 @@ slug: welcome title: Welcome author: IZUMI-Zu -authorTitle: Casdoor App Contributor +authorTitle: Casdoor Authenticator Contributor authorURL: https://github.com/IZUMI-Zu authorImageURL: https://avatars.githubusercontent.com/u/23271676?s=100 tags: [Casdoor, Authenticator, Totp] @@ -44,7 +44,7 @@ For detailed instructions on setup, usage, and migration from other authenticato We welcome contributions and feedback from our users. Join our community to stay updated on the latest developments, share your experiences, and contribute to making Casdoor Authenticator even better! -* [GitHub Repository](https://github.com/casdoor/casdoor-app) +* [GitHub Repository](https://github.com/casdoor/casdoor-authenticator) * [Discord Channel](https://discord.gg/5rPsrAzK7S) * [QQ Group](https://cdn.casdoor.com/casdoor/resource/built-in/admin/qq_casdoor.png) diff --git a/docs/basic/getting-started.md b/docs/basic/getting-started.md index 8dd0176..60daa93 100644 --- a/docs/basic/getting-started.md +++ b/docs/basic/getting-started.md @@ -1,6 +1,6 @@ --- title: Getting Started -description: Casdoor App Getting Started +description: Casdoor Authenticator Getting Started keywords: [casdoor, authenticator] authors: [IZUMI-Zu] --- @@ -23,7 +23,7 @@ Before you begin, ensure you have the following prerequisites: - You can build the app from source code. See [here](../build/configuration.md) for more details. 2. For Android users: - - You can download the app from the [GitHub Releases page](https://github.com/casdoor/casdoor-app/releases). + - You can download the app from the [GitHub Releases page](https://github.com/casdoor/casdoor-authenticator/releases). - Install the APK file on your device. ## Initial Setup diff --git a/docs/basic/usage.md b/docs/basic/usage.md index e9a4c16..a984e85 100644 --- a/docs/basic/usage.md +++ b/docs/basic/usage.md @@ -1,6 +1,6 @@ --- title: Basic Usage -description: Casdoor App Basic Usage +description: Casdoor Authenticator Basic Usage keywords: [casdoor, authenticator] authors: [IZUMI-Zu] --- diff --git a/docs/build/configuration.md b/docs/build/configuration.md index a496f4c..c92a416 100644 --- a/docs/build/configuration.md +++ b/docs/build/configuration.md @@ -1,6 +1,6 @@ --- title: Build Configuration -description: Casdoor App Build Configuration +description: Casdoor Authenticator Build Configuration keywords: [casdoor, authenticator, configuration, build, android, ios] authors: [IZUMI-Zu] --- @@ -24,8 +24,8 @@ Before you begin, ensure you have the following installed: 1. Clone the Casdoor Authenticator App repository: ```bash - git clone https://github.com/casdoor/casdoor-app.git - cd casdoor-app + git clone https://github.com/casdoor/casdoor-authenticator.git + cd casdoor-authenticator ``` 2. Install dependencies: diff --git a/docs/build/process.md b/docs/build/process.md index 571eb73..f8908f0 100644 --- a/docs/build/process.md +++ b/docs/build/process.md @@ -1,6 +1,6 @@ --- title: Build Process -description: Casdoor App Build Process +description: Casdoor Authenticator Build Process keywords: [casdoor, authenticator, build, process] authors: [IZUMI-Zu] --- diff --git a/docs/overview.md b/docs/overview.md index 44e9bc9..e6d867e 100644 --- a/docs/overview.md +++ b/docs/overview.md @@ -1,6 +1,6 @@ --- title: Overview -description: Casdoor App Overview +description: Casdoor Authenticator Overview keywords: [casdoor, authenticator] authors: [IZUMI-Zu] --- diff --git a/docusaurus.config.js b/docusaurus.config.js index efd6976..be46215 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -9,7 +9,7 @@ const darkCodeTheme = require("prism-react-renderer/themes/dracula"); /** @type {import('@docusaurus/types').DocusaurusConfig} */ module.exports = { - title: "Casdoor App", + title: "Casdoor Authenticator", tagline: "A mobile app for iOS and Android providing multi-factor authentication with TOTP, built using React Native.", favicon: "img/favicon.png", @@ -17,7 +17,7 @@ module.exports = { baseUrl: "/", organizationName: "casdoor", - projectName: "casdoorapp-website", + projectName: "casdoor-authenticator-website", onBrokenLinks: "throw", onBrokenMarkdownLinks: "warn", @@ -55,7 +55,7 @@ module.exports = { ({ image: "img/casdoor.png", navbar: { - title: "Casdoor App", + title: "Casdoor Authenticator", logo: { alt: "Casdoor Logo", src: "img/casdoor.png", @@ -70,7 +70,7 @@ module.exports = { {to: "/blog", label: "Blog", position: "left"}, {to: "/help", label: "Help", position: "left"}, { - href: "https://github.com/casdoor/casdoor-app/releases", + href: "https://github.com/casdoor/casdoor-authenticator/releases", label: "Download", position: "left", }, @@ -83,13 +83,13 @@ module.exports = { value: "
", }, { - to: "https://crowdin.com/project/casdoorapp-website", + to: "https://crowdin.com/project/casdoor-authenticator-website", label: "Help translate", }, ], }, { - href: "https://github.com/casdoor/casdoor-app", + href: "https://github.com/casdoor/casdoor-authenticator", position: "right", className: "header-github-link", "aria-label": "GitHub repository", @@ -129,8 +129,8 @@ module.exports = { to: "https://casdoor.org", }, { - label: "Casdoor App", - to: "https://github.com/casdoor/casdoor-app", + label: "Casdoor Authenticator", + to: "https://github.com/casdoor/casdoor-authenticator", }, ], }, @@ -160,11 +160,11 @@ module.exports = { }, { label: "GitHub", - href: "https://github.com/casdoor/casdoor-app", + href: "https://github.com/casdoor/casdoor-authenticator", }, { html: ` - + `, }, ], diff --git a/package.json b/package.json index d3c292a..d7b3ba1 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "serve": "docusaurus serve", "lint:js": "eslint --fix . --ext .js", "lint:css": "stylelint \"src/**/*.{css,scss}\" --fix", - "lint:md": "markdownlint 'docs/**/*.{md,mdx}' --fix", + "lint:md": "markdownlint \"docs/**/*.{md,mdx}\" --fix", "lint": "yarn lint:js && yarn lint:css && yarn lint:md", "write-translations": "docusaurus write-translations", "write-heading-ids": "docusaurus write-heading-ids", diff --git a/src/components/DownloadSection/index.js b/src/components/DownloadSection/index.js index 3adc898..438b174 100644 --- a/src/components/DownloadSection/index.js +++ b/src/components/DownloadSection/index.js @@ -16,12 +16,12 @@ export default function DownloadSection() {
+ to="https://github.com/casdoor/casdoor-authenticator/releases/latest"> Download for Android + to="https://github.com/casdoor/casdoor-authenticator"> View on GitHub
diff --git a/src/pages/help.js b/src/pages/help.js index 9cee3cc..99547bb 100644 --- a/src/pages/help.js +++ b/src/pages/help.js @@ -41,7 +41,7 @@ function Help() {

Github

- At our GitHub repo, browse and submit issues or pull requests for bugs you find or any new features you may want implemented. + At our GitHub repo, browse and submit issues or pull requests for bugs you find or any new features you may want implemented.
diff --git a/src/pages/index.js b/src/pages/index.js index 56b435b..c31c64f 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -34,7 +34,7 @@ function HomepageHeader() { + to="https://github.com/casdoor/casdoor-authenticator/releases"> Download