website: move into monorepo

pull/302/head
Yangshun Tay 2 years ago
parent 0475efce3c
commit 7f621eb8a2

@ -0,0 +1,40 @@
# Website
This website is built using Docusaurus 2, a modern static website generator. It is part of a [Turborepo](https://turborepo.org/) monorepo setup.
### Installation
We use Yarn 1 as the package manager. At the root of the repository, run `yarn` to install the monorepo dependencies.
```sh
$ yarn
```
### Local Development
Also at the root of the repository, run:
```sh
$ yarn dev:website
```
This command starts a local development server and opens up a browser window. Most changes made to JavaScript and Markdown files will be reflected instantly without having to restart the server.
### Build
Navigate to the `apps/website` directory.
```sh
cd apps/website
$ yarn build
```
This command generates static content into the `build` directory and can be served using any static contents hosting service.
### Deployment
```
$ GIT_USER=<Your GitHub username> USE_SSH=1 yarn deploy
```
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

@ -10,8 +10,8 @@ module.exports = {
themeConfig: {
announcementBar: {
id: 'algomonster-1', // Increment on change
content: `Stop grinding mindlessly, study with a plan! Developed by Google engineers,
<a href="https://shareasale.com/r.cfm?b=1873647&u=3114753&m=114505&urllink=&afftrack=" target="_blank" rel="noopener">AlgoMonster</a> is the fastest way to get a software engineering job.
content: `Stop grinding mindlessly, study with a plan! Developed by Google engineers,
<a href="https://shareasale.com/r.cfm?b=1873647&u=3114753&m=114505&urllink=&afftrack=" target="_blank" rel="noopener">AlgoMonster</a> is the fastest way to get a software engineering job.
<a href="https://shareasale.com/r.cfm?b=1873647&u=3114753&m=114505&urllink=&afftrack=" target="_blank" rel="noopener">Check it out now!</a>`,
isCloseable: false,
},
@ -196,7 +196,7 @@ module.exports = {
'@docusaurus/preset-classic',
{
docs: {
path: '../contents',
path: './contents',
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
// showLastUpdateAuthor: true,

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save