website: change to www subdomain

pull/260/head
Yangshun 3 years ago
parent 64039bb395
commit 661c36cea9

@ -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

@ -1,7 +1,7 @@
<h1 align="center">Tech Interview Handbook</h1> <h1 align="center">Tech Interview Handbook</h1>
<div align="center"> <div align="center">
<a href="https://techinterviewhandbook.org/"> <a href="https://www.techinterviewhandbook.org/">
<img src="website/static/img/logo.svg" alt="Tech Interview Handbook" width="400"> <img src="website/static/img/logo.svg" alt="Tech Interview Handbook" width="400">
</a> </a>
<br> <br>
@ -13,7 +13,7 @@
<em>Credits: <a href="https://dribbble.com/shots/3831443-Tech-Interview-Handbook">Illustration</a> by <a href="https://dribbble.com/leftaligned">@leftaligned</a></em> <em>Credits: <a href="https://dribbble.com/shots/3831443-Tech-Interview-Handbook">Illustration</a> by <a href="https://dribbble.com/leftaligned">@leftaligned</a></em>
</p> </p>
<h3> <h3>
<a href="https://techinterviewhandbook.org/">Read on the website</a> | <a href="https://facebook.com/techinterviewhandbook">Follow us on Facebook</a> <a href="https://www.techinterviewhandbook.org/">Read on the website</a> | <a href="https://facebook.com/techinterviewhandbook">Follow us on Facebook</a>
</h3> </h3>
</div> </div>
@ -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: Besides the usual algorithm questions, other **awesome** stuff includes:
- [How to prepare](https://techinterviewhandbook.org/coding-round-overview) for coding interviews - [Best practice questions](https://techinterviewhandbook.org/best-practice-questions/) for coding interviews
- [Interview Cheatsheet](https://techinterviewhandbook.org/cheatsheet) - Straight-to-the-point Do's and Don'ts - [How to prepare](https://www.techinterviewhandbook.org/coding-round-overview/) for coding interviews
- [Algorithm tips and the best practice questions](https://techinterviewhandbook.org/algorithms/introduction) categorized by topic - [Interview cheatsheet](https://www.techinterviewhandbook.org/cheatsheet/) - Straight-to-the-point Do's and Don'ts
- [Interview formats](https://techinterviewhandbook.org/interview-formats) of the top tech companies - [Algorithm tips](https://www.techinterviewhandbook.org/algorithms/introduction/) categorized by topic
- [Behavioral questions](https://techinterviewhandbook.org/behavioral-questions) asked by the top tech companies - [Interview formats](https://www.techinterviewhandbook.org/interview-formats/) of the top tech companies
- [Good questions to ask your interviewers](https://techinterviewhandbook.org/questions-to-ask) at the end of the interviews - [Behavioral questions](https://www.techinterviewhandbook.org/behavioral-questions/) asked by the top tech companies
- [Helpful resume tips](https://techinterviewhandbook.org/resume) to get your resume noticed and the Do's and Don'ts - [Good questions to ask your interviewers](https://www.techinterviewhandbook.org/questions-to-ask/) at the end of the interviews
- [Front-End Interview preparation](https://frontendinterviewhandbook.com) - [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! 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 ## 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 ## Related

@ -1,5 +1,5 @@
# Algorithms # 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).
<!-- TODO: Remove in future --> <!-- TODO: Remove in future -->

@ -1,5 +1,5 @@
# Preparing # 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).
<!-- TODO: Remove in future --> <!-- TODO: Remove in future -->

@ -1,5 +1,5 @@
# Cheatsheet # 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).
<!-- TODO: Remove in future --> <!-- TODO: Remove in future -->

@ -1,7 +1,7 @@
module.exports = { module.exports = {
title: 'Tech Interview Handbook', title: 'Tech Interview Handbook',
tagline: 'Free curated interview preparation materials for busy engineers', tagline: 'Free curated interview preparation materials for busy engineers',
url: 'https://techinterviewhandbook.org', url: 'https://www.techinterviewhandbook.org',
baseUrl: '/', baseUrl: '/',
trailingSlash: true, trailingSlash: true,
favicon: 'img/favicon.png', favicon: 'img/favicon.png',

Loading…
Cancel
Save