Files
automata/apps/api/scripts/updateDocsJson.sh
SrIzan10 40113a840d feat!: monorepo (#12)
* refactor: initial monorepo

* chore: remove accidentally commited repos

* chore: remove accidentally commited repos

* feat: more progress

* feat: finally monorepo done

* feat: move away from pocketbase

* fix: seren's reviews and schema frontend login errors

* fix: for some reason didn't remove await lol
2023-12-27 18:39:26 +01:00

23 lines
696 B
Bash

#!/bin/bash
cd repos/sern-community
git checkout main
git pull
cd ..
cd website
mv ./docusaurus.config.js ./original.docusaurus.config.js
mv ./docgen.docusaurus.config.js ./docusaurus.config.js
npm run build
mv docusaurus.config.js docgen.docusaurus.config.js
mv original.docusaurus.config.js docusaurus.config.js
npm run typedoc-json
git add .
git -c user.name="sern bot" -c user.email="$2" commit -m "chore: update api documentation"
git push --force https://sernbot:$1@github.com/sern-handler/website.git
cd ..
cd sern-community
git add .
git -c user.name="sern bot" -c user.email="$2" commit -m "chore: update typedoc"
git push https://sernbot:$1@github.com/sern-handler/sern-community.git