This monorepo contains a Gatsby themes for United Nations World Data Forum websites.
@undataforum/gatsby-theme-base provides layouts and configurations for all other themes.
@undataforum/gatsby-theme-profiles you can manage profiles of authors, speakers etc. You can use this theme standalone or in another theme.
@undataforum/gatsby-theme-blog you can manage a blog. Each post can have multiple authors and for each author a profile page is created using
@undataforum/gatsby-theme-profiles. You can use this theme standalone or in another theme.
This is the site used for developing and testing all themes. It uses mock data. Run
yarn workspace site run develop
to launch the site.
Using Yarn vs. Lerna
and does not include
This is to keep Lerna from adding tags for packages that are never published and would pollute the repository's tags. Therefore, do not use the
lerna command for managing dependencies.
Publishing the Theme
The theme is published with Lerna using Conventional Commits. The publish configuration is in
Prior to publishing make sure that your
GH_TOKEN environment variable is configured in
~/.bashrc and the GitHub package registry token in
~/.npmrc. Then run
npx lerna publish