Skip to content

Publishing tips and tricks

kodiakhq[bot] edited this page Oct 25, 2021 · 10 revisions
Table of contents

Here are some tips and tricks for using the Gatsby theme.

Linking to an anchor on the same page:

Instead of using the full URL string:

[Related components](https://www.ibm.com/standards/carbon/patterns/lead-space#related-components-and-patterns)

simply use the last hash-tag segment:

[Related components](#related-components-and-patterns)

How to open a destination page in a new window

Instead of linking with markdown as follows:

[link](https://ibm.box.com/s/26ze6is6ff50nohlx5v28fubkh2w2f2x)

Link using the HTML anchor tag as follows:

<a href="https://ibm.box.com/s/26ze6is6ff50nohlx5v28fubkh2w2f2x" target="_blank">link</a>


How to create em dash with markdown

Add the &mdash; in between the name and the — will show up.


Applying grid to images and content

Use the following two React components to create rows and columns.

<Row> creates a row. <Column> creates a column.

The following example creates a column structure that spans 8 columns, leaving the right 4 columns empty.

<Row>
<Column colMd={8} colLg={8}>

![Base type size change](../../images/guidelines/expressive-theme/exp-theme-research-visual.png)

</Column>
</Row>

Adding a horizontal rule

Use the following element:

<hr/>


Website guidelines

Publishing guidelines (6)

Functional specs

Layout component (37)
Service (3)
UI component (34)
Utility (5)

Additional components

Carbon component (19)
Design only (9)
Feature flag (3)
Clone this wiki locally