Skip to content

General Notes on Editing Pages

Kyle Johnson edited this page Mar 28, 2021 · 9 revisions

Git Repo Etiquette

If you are involved in the initial development, you may make commits directly to the staging branch. Once we are in production, We will ask that folks fork the repo and then submit PRs against staging so that we can properly review and test them.

Types of Files

The site uses a combination of tsx (Typescript), md (Markdown), and yaml (Yet Another Markdown Language) files.

Markdown Files

If you are editing one of the pages or blog posts that is also able to be managed by the CMS, it is an md file located in src/content/pages or src/content/articles and can only include Markdown formatting. These files must also include the appropriate frontmatter section. Please see one of the exiting pages or blog posts to see what you need to include. More information about the components of these pages can be found in the Routine Editing section. If you are unfamiliar with Markdown, please see:

https://www.markdownguide.org/

YAML Files

yaml files are in YAML syntax and are stored in /src/data/yaml (except the featured addons, which are stored in `src/data/addons//featured.yaml). These files contain the data that help build the distribution, sponsor, and store pages.

Typescript Files

tsx files are in React and are used for the templates, section widgets, and components as well as some of the complex pages. If you are editing one of those files, please make sure you know what you're doing. If you provide the incorrect React syntax for something, the site will fail to build.

Layout

We are using TailwindCSS for layout, so if you need to do any formatting that can't be handled with Markdown, you will need to import the appropriate Patternfly JSX modules for us. For more information about TailwindCSS, please see:

https://tailwindcss.com

We also have a license for a set of pre-built sections and widgets. Those are available at:

http://tailwindui.com

The login information for the TailwindUI site is in the Team 1Password vault.

Overview

About this wiki
Information on Site Builds

Routine Editing

Blog Posts
Pages
Download Distributions
Sponsors
Store Items
Featured Add-Ons

Advanced Editing

Installing GatsbyJS Locally
Notes on Editing Pages

Dynamic Content

Add-ons

Site Template

coming soon

Custom JSX Modules

coming soon

Clone this wiki locally