Skip to content

MagicienDeCode/magiciendecode.fr

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

Eslint check

run npm run lint

Less for css

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

Layout

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

Releases

No releases published

Packages

No packages published