Skip to content

yforku/docu2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Docusaurus

export DEBS="
aptitude
git
sudo
vim
"

date;
time apt-get install $DEBS -y
time (aptitude update&&echo " =1= "&&aptitude safe-upgrade -y&&echo " =2= "&&aptitude autoclean -y;)

[ -d /etc/sudoers.d/ ] && echo "cbkadal    ALL=(ALL:ALL) ALL" > /etc/sudoers.d/cbkadal

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

nvm ls-remote
nvm install v18.16.0
node -v
npm install -g yarn
yarn --version
mkdir -vp $HOME/docusaurus/
cd $HOME/docusaurus/

npm init docusaurus@latest docu2 classic

cd $HOME/docusaurus/docu2/
npm run start -- --host 0.0.0.0

npm run build
npm run serve

GIT_USER=cbkadal USE_SSH=true yarn deploy

npm audit fix