Documents and Blogs of Hubble Exchange
Prepare machine for development
# for Mac OS
zsh scripts/init.sh
# Linux or Mac OS bash
bash scripts/init-bash.sh
Install dependencies:
pnpm install
pnpm dev
Can be deployed to Vercel Functions, Netlify Functions, AWS, and most Node-compatible environments.
Look at all the available presets here.
pnpm build
Use the generate
command to build your application.
The HTML files will be generated in the .output/public directory and ready to be deployed to any static compatible hosting.
pnpm generate
You might want to preview the result of your build locally, to do so, run the following command:
pnpm preview
For a detailed explanation of how things work, check out Docus.
Use this template for blogs
Start writing blog create new file at /content/blogs/[blog-url].md
replace [blog-url] with blog title replacing space with - and removing special characters e.g. (/,&,%, etc.)
Populate with the url path of the blog Config file to manage cover story, weekly spotlight
Run below command with medium article URL it will generate article.md file copy and format the markdown and download image from article and use them similar to medium
node scripts/fetchMedium.js [medium url]
# eg. node scripts/fetchMedium.js https://medium.com/hubbleexchange/makers-in-hubble-vamm-part-2-54eb9845b0b7