This is a template used to quickly and effectively document assets and solutions created by Client Engineers at IBM. The template outlines the bare minimum requirements that must be documented when publishing your work. This template was created using the gatsby-theme-carbon
package, click here to learn more.
-
Use this template to create a new repository in the ibm-client-engineering Open Solutions Library.
Make sure you follow the naming convention: solution-[insert-solution-name].
-
Clone your new repository to your local machine.
-
Make initial changes to
gatsby-config.js
.Open the
gatsby-config.js
file in a code editor and update the following according to the naming convention:pathPrefix
start_url
base-url
Update the
siteMetadata
fields and thename
fields with the name of your solution which will be populated across the website. -
Start developing by running the site locally.
Navigate into your directory with
cd solution-<solution name>
.Install the Gatsby CLI with
brew install gatsby-cli
ornpm install -g gatsby-cli
Run
yarn install
to get everything set up.Run the site locally with
yarn dev:clean
.For more useful scripts, click here.
-
Make changes and begin documenting your solution.
The
pages
folder undersrc
has all of the .mdx files for the pages you see on the site. Start by filling out those pages with the necessary documentation.Make sure you update the
description
anddate
fields on the .mdx files as you document. This is important for the search capability on the site.Click here to see the various components you can use in the .mdx files.
-
OPTIONAL: Adding/Removing/Changing any pages in the template.
The
nav-items.yaml
file under thedata
folder lists the order of the pages that are shown in the left navigation.If you add, remove, or change the name of a file, you must update the
nav-items.yaml
file accordingly.Click here to learn more about navigation or adding tabs to a page.