A website for storing reusable code segements
All the .mdx files are stored inside /_mdx
and have corresponding generated .html files which are placed in the root of this repository.
These .html are then statically hosted via github pages
-
Run
cd _source
-
Run
npm i
-
Inside
/_source
you can run any of the following commandsnpm run create npm run server
npm run create
will create .html files for each corresponding .mdx filenpm run server
will host the site on localhost:3000 and will auto update when mdx files are changed & saved -
Modify only the
_mdx
directory, The file paths translate to url paths e.g.
_mdx/my-code/my_file.mdx
=> https://sourcesnippet.github.io/my-code/my_file.html
Problem with a Snippet?
Feel free to open an issue