Skip to content

MagicienDeCode/my-site-magiciendecode

Repository files navigation

Dev

  • dev deploy npm start

How to add a category?

    1. create a folder XX in src/data
    1. copy an example of title.json
    1. add a Category in src/components/category.ts
    1. create a folder XX in src/pages and add index.tsx in it
    1. add XXJson in src/components/header.tsx in allItems for search auto-complete

How to add an article?

    1. add XX.md in src/data/{category}
    1. add infos in src/data/{category}/title.json
    1. make sure (xx.md) path == (title.js) type/page

How to start ?

Start developing:

  1. npm install
  2. npm run develop

Less for css

A global css file is in src/layouts/gloable.less

Layout

A global layout file is in src/layouts/index.tsx

Format on save

  • Format On Save
  • CMD + SHIFT + P
// Set the default
"editor.formatOnSave": false,
// Enable per-language
"[javascript]": {
    "editor.formatOnSave": true
}

About

personal site, magiciendecode.fr, gatsbyjs, javascript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •