From 661c36cea90cf2c04bcab05dec10a6095f593be1 Mon Sep 17 00:00:00 2001 From: Yangshun Date: Tue, 1 Feb 2022 11:29:29 +0800 Subject: [PATCH] website: change to www subdomain --- .github/workflows/deploy.yml | 55 ------------------------------------ README.md | 23 +++++++-------- algorithms/README.md | 2 +- preparing/README.md | 2 +- preparing/cheatsheet.md | 2 +- website/docusaurus.config.js | 2 +- 6 files changed, 16 insertions(+), 70 deletions(-) delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index a15ab627..00000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: deploy - -on: - pull_request: - branches: [master] - push: - branches: [master] - -jobs: - checks: - if: github.event_name != 'push' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: '14.x' - - name: Test Build - run: | - cd website - if [ -e yarn.lock ]; then - yarn install --frozen-lockfile - elif [ -e package-lock.json ]; then - npm ci - else - npm i - fi - npm run build - gh-release: - if: github.event_name != 'pull_request' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: '14.x' - - uses: webfactory/ssh-agent@v0.5.0 - with: - ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }} - - name: Deploy to GitHub Pages - env: - USE_SSH: true - GIT_USER: git - run: | - git config --global user.email "actions@github.com" - git config --global user.name "gh-actions" - cd website - if [ -e yarn.lock ]; then - yarn install --frozen-lockfile - elif [ -e package-lock.json ]; then - npm ci - else - npm i - fi - npm run deploy diff --git a/README.md b/README.md index baec3485..17e8c4b2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

Tech Interview Handbook

- + Tech Interview Handbook
@@ -13,7 +13,7 @@ Credits: Illustration by @leftaligned

- Read on the website | Follow us on Facebook + Read on the website | Follow us on Facebook

@@ -42,14 +42,15 @@ No one has time to do a few hundred LeetCode questions. Here are _free and curat Besides the usual algorithm questions, other **awesome** stuff includes: -- [How to prepare](https://techinterviewhandbook.org/coding-round-overview) for coding interviews -- [Interview Cheatsheet](https://techinterviewhandbook.org/cheatsheet) - Straight-to-the-point Do's and Don'ts -- [Algorithm tips and the best practice questions](https://techinterviewhandbook.org/algorithms/introduction) categorized by topic -- [Interview formats](https://techinterviewhandbook.org/interview-formats) of the top tech companies -- [Behavioral questions](https://techinterviewhandbook.org/behavioral-questions) asked by the top tech companies -- [Good questions to ask your interviewers](https://techinterviewhandbook.org/questions-to-ask) at the end of the interviews -- [Helpful resume tips](https://techinterviewhandbook.org/resume) to get your resume noticed and the Do's and Don'ts -- [Front-End Interview preparation](https://frontendinterviewhandbook.com) +- [Best practice questions](https://techinterviewhandbook.org/best-practice-questions/) for coding interviews +- [How to prepare](https://www.techinterviewhandbook.org/coding-round-overview/) for coding interviews +- [Interview cheatsheet](https://www.techinterviewhandbook.org/cheatsheet/) - Straight-to-the-point Do's and Don'ts +- [Algorithm tips](https://www.techinterviewhandbook.org/algorithms/introduction/) categorized by topic +- [Interview formats](https://www.techinterviewhandbook.org/interview-formats/) of the top tech companies +- [Behavioral questions](https://www.techinterviewhandbook.org/behavioral-questions/) asked by the top tech companies +- [Good questions to ask your interviewers](https://www.techinterviewhandbook.org/questions-to-ask/) at the end of the interviews +- [Helpful resume tips](https://www.techinterviewhandbook.org/resume/) to get your resume noticed and the Do's and Don'ts +- [Front end interview preparation](https://www.frontendinterviewhandbook.com) Help from you in contributing content would be very much appreciated! @@ -85,7 +86,7 @@ We're still working on System Design content. In the meanwhile, check out Educat ## Contents -A [Docusaurus](https://github.com/facebook/docusaurus) website has been created to provide a better reading experience. Check out the website [here](https://techinterviewhandbook.org)! +A [Docusaurus](https://github.com/facebook/docusaurus) website has been created to provide a better reading experience. Check out the website [here](https://www.techinterviewhandbook.org)! ## Related diff --git a/algorithms/README.md b/algorithms/README.md index 462d27c6..0c75934e 100644 --- a/algorithms/README.md +++ b/algorithms/README.md @@ -1,5 +1,5 @@ # Algorithms -The contents have been moved to the [website](https://techinterviewhandbook.org/algorithms/introduction). +The contents have been moved to the [website](https://www.techinterviewhandbook.org/algorithms/introduction). diff --git a/preparing/README.md b/preparing/README.md index ff2093fa..9a3178c5 100644 --- a/preparing/README.md +++ b/preparing/README.md @@ -1,5 +1,5 @@ # Preparing -The contents have been moved to the [website](https://techinterviewhandbook.org/coding-round-overview). +The contents have been moved to the [website](https://www.techinterviewhandbook.org/coding-round-overview). diff --git a/preparing/cheatsheet.md b/preparing/cheatsheet.md index 83747724..99592c60 100644 --- a/preparing/cheatsheet.md +++ b/preparing/cheatsheet.md @@ -1,5 +1,5 @@ # Cheatsheet -The contents have been moved to the [website](https://techinterviewhandbook.org/cheatsheet). +The contents have been moved to the [website](https://www.techinterviewhandbook.org/cheatsheet). diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index cfab32bb..b297b932 100755 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -1,7 +1,7 @@ module.exports = { title: 'Tech Interview Handbook', tagline: 'Free curated interview preparation materials for busy engineers', - url: 'https://techinterviewhandbook.org', + url: 'https://www.techinterviewhandbook.org', baseUrl: '/', trailingSlash: true, favicon: 'img/favicon.png',