Parity Technologies Website
https://www.parity.io
Live Site
Productionπ Quick start
-
Clone this Repo
-
Get Setup
Navigate into your new siteβs directory and install all dependencies.
cd parity-website yarn
-
Development Server
Navigate into your new siteβs directory and use the following command to start the development server locally, once the dependencies have been installed.
cd parity-website yarn develop
-
Open the code and start customizing!
Your site is now running at http://localhost:8000! And your GraphiQL data layer is running at
http://localhost:8000/__graphql
Edit to see your site update in real-time!
π§° Troubleshooting
Make sure to follow the following steps in order to troubleshoot any development issues:
-
Version
NodeJS
: 14 (v14.19.3, use.nvmrc
)GatsbyCLI
: 2.26.1 Before installing new plugins (especially for gatsby), make sure which version of CLI is supported. -
Clear Cache (for runtime errors) use
yarn clean
if the server is stale or having issues reloading in your browser of choice.
π BLOG / Content Contribution
- Content Team uses Forestry CMS to make changes directly to
forestry-cms
branch. Once finished, Content team requests a review and push to production that is handled by @paritytech/webops, by merging branch tomain
.
π Forestry CMS Setup
- Content Team: Forestry taps into
/content/
folder, sub-folder, & files for any content that needs to be exposed to Forestry CMS. - Blog Setup: Blog content is located under
/blog/{blog-name}/
and directly editable through Forestry CMS.
π i18n Setup (currently only English in use)
This website uses two gatsby themes in-order to provide internationalization.
- gatsby-theme-i18n
- configured through
gatsby-config
. Currently only set to english.
- configured through
- gatsby-theme-i18n-react-intl
- All the transaltion strings are stored under
content/react-intl/
- In order to activate another language, update configuration in
gatsby-config
and addnew-lang.json
undercontent/react-intl/
- All the transaltion strings are stored under