Skip to content

Commit

Permalink
Merge pull request #3 from hellof2e/feature/mirrorUrlMenu
Browse files Browse the repository at this point in the history
feat: Add a suffix of 'techName' to the mirror redirection
  • Loading branch information
xsf0105 authored Apr 2, 2024
2 parents 50241a1 + c0dc17a commit 1b8cb20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ class MyComponent extends QuarkElement {
this.#ecosystemLangs = this.#isZhLang ? langs["zh-CN"] : langs["en-US"]
this.#isDocNotReady = false
this.#techName = location.pathname.split('/')[2]

if(~['vanilla', 'angular', 'svelte'].indexOf(location.hostname.split('-')[0])) {
this.#isDocNotReady = true
}
Expand Down Expand Up @@ -453,7 +452,7 @@ class MyComponent extends QuarkElement {
<a
key={item}
class="link menu-link"
href={`https://quark-ecosystem.${item.toLocaleLowerCase()}.io/quarkd-docs/#/${
href={`https://quark-ecosystem.${item.toLocaleLowerCase()}.io/quarkd-docs/${this.#techName}/#/${
this.#isZhLang ? "zh-CN" : "en-US"
}`}
target="_blank"
Expand Down

0 comments on commit 1b8cb20

Please sign in to comment.