Access Link: https://redis-developer.github.io/developer/
Say, you want to host site in your GITHUB repository. First clone the repostiory where you want to host it as shown below:
git clone https://github.com/redis-developer/developer
npx @docusaurus/init@next init redisdoc classic
yarn build
% cat docusaurus.config.js
module.exports = {
title: 'My Site',
tagline: 'The tagline of my site',
url: 'https://redis-developer.github.io',
baseUrl: '/developer/',
onBrokenLinks: 'throw',
favicon: 'img/favicon.ico',
organizationName: 'Redis-Developer', // Usually your GitHub org/user name.
projectName: 'developer', // Usually your repo name.
themeConfig: {
navbar: {
title: 'Redis Developer Site',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
$ cat publish-gh-pages
GIT_USER=ajeetraina \
CURRENT_BRANCH=master \
USE_SSH=true \
yarn run publish-gh-pages # or `npm run publish-gh-pages`
ajeetraina@Ajeets-MacBook-Pro redisdoc %
GIT_USER=ajeetraina USE_SSH=true yarn deploy