Skip to content

sourcesnippet/sourcesnippet.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A website for storing reusable code segements

How does it work?

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

How to run locally?

  1. Install Deno (Strictly Version 2.0 & above ) & npm

  2. Run cd _source

  3. Run npm i

  4. Inside /_source you can run any of the following commands

    npm run create
    npm run server

    npm run create will create .html files for each corresponding .mdx file

    npm run server will host the site on localhost:3000 and will auto update when mdx files are changed & saved

  5. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published