This VitePress site is hosted from GitHub.io pages at justme.dev.
Only needed if generating content from OpenAI API's.
cp .env.example .env
Copy the .env.example file to .env
and fill in the
required fields.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
nvm install
nvm use
Only needed if generating content from OpenAI or pulling contents.
sudo apt install python3
python3 -m pip install --upgrade pip
pip install -r requirements.txt
npm install
Downloads readme files from GitHub repositories and when configured connects to the OpenAI API to generate content.
npm run docs:generate
npm run docs:dev
npm run docs:build
npm run docs:preview
Commit to the main
branch to
trigger deployment.
- Create request files in the
requests
folder, open-ai-usage.yaml.example. - Run the
npm run docs:generate
command to generate the markdown files locally. - When pushing to
main
GitHub action doesgenerate
,build
anddeploy
. - The OpenAI response will be saved in the response folder.
- The generated markdown will be saved in a sub folder defined by
request type
using the same name as the request file and the suffix.md
. - Delete corresponding
response.bin
in./openai/response
to force the script to retrieve data fromopenai
again.