Source code for building, deploying and serving the van cone website.
See the website live at: medium-tech.github.io/van-cone-website
Most of the website is autogenerated using the npm package marked from the van cone markdown docs. The official van-cone repository is a submodule of this repo and contains the official docs in markdown format.
The ./assets
folder in this repository contains the index html file, css file and images for the website. The ./src/render.js
file converts each markdown document into an html page and adds the sidebar html. It outputs each of the files and copies necessary files from ./assets
into the ./docs
folder which github uses as the root directory for serving the webpage.
This command will build the website everytime filesystem changes are detected, requires fswatch to be installed on your system.
npm run dev
Open a second terminal and run this command to preview the site in your browser
npm run preview
Or if you just want to build the site once:
npm run build