A website for all kind of notes about web development.
Node js LTS
(Node.js)
Assuming you have Node Version Manager installed
$ nvm install --lts
Clone the repository
$ git clone https://github.com/fpelletier-gh/web-development-notes
Change directory
$ cd web-development-notes
Install node module
$ npm install
Launch the development server
$ npm run dev
Create the production build
$ npm run build
Some Deployment options
- The
/posts
folder is where all the notes are located - It will recursively search in subfolder for all
.mdx
(MDX) and create pages for every files - The URL will match the folder structure
- The folder structure will represent the side menu navigation (the subfolder will become submenu)
- Snake_case is required as a naming convention for file and folder name
- File and folder name will be converted to title case and "and" will be converted to "&"
- Styling for the generated pages will be done automatically
- Code block will have syntax highlighting (more info)
Create a .mdx
(MDX) file in the /posts
folder.
The side menu navigation will be generated from the folder structure inside the /posts
directory.
ex.
/posts/javascript/algorithm_and_data-structure.mdx
will create a submenu namedJavascript
with a link namedAlgorithm & Data-Structure
inside it
To enable syntax highlighting for code block in .mdx
files you need to specify the language
ex. The following code block will have syntax highlighting enable for javascript
```js
console.log("Syntax highlighting for javascript")
```