nulogy.design is powered by the following technologies:
- Gatsby for the website itself
- react-view for the component playgrounds at the top of each page
- Plop for generating new component pages
- MDX for writing content
- Github Actions and Github Pages for deployment and hosting
-
Put a new .mdx file inside the pages directory and it will be automatically turned into a page, using the directory structure to build the url. e.g to create a page at http://nulogy.design/guides/developer-workflow/, add a file called
developer-workflow.mdx
to toguides
folder. -
Add the page to
src/components/navigationLinks.js
. By default, the page will take it's title from thename
key and display it both in the navigation menu and at the top of the page. Atitle
key can be added if a longer page title is desired on the actual, e.g:
{
name: "Releasing",
href: "/guides/packages",
title: "How the Nulogy Design Ops team releases packages"
},
Run yarn plop ComponentName
to generate the files that could be required for a new component page.
e.g:
> yarn plop NewComponent
yarn run v1.22.10
$ plop NewComponent
✔ ++ /src/pages/components/new-component.mdx
✔ ++ /src/playgrounds/new-component.js
✔ ++ /src/examples/new-component/ExampleNewComponent.jsx
✔ _+ /src/data/navigationLinks.js
✔ -> Your component page is ready! 😊
✨ Done in 6.12s.
This will create a playground file, an mdx file, a variation example, and a link in the navigation.
nulogy.design should automatically deploy when a new PR is merged from master. For details on what's happening, check out the actions tab of this repository.