Skip to content

Commit 8e93a10

Browse files
committed
adjust preambule
1 parent abae949 commit 8e93a10

File tree

1 file changed

+13
-23
lines changed

1 file changed

+13
-23
lines changed

www/src/pages/docs/node-api-helpers.js

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,10 @@ class NodeAPIHelperDocs extends React.Component {
2727
<p>
2828
The first argument passed to each of{` `}
2929
<Link to="/docs/node-apis/">Gatsby's Node APIs</Link> is an object
30-
containing a set of utilities. Utilities shared by all Gatsby's Node
31-
APIs are documented below. Some APIs provide additional utilities.
32-
For example:
30+
containing a set of helpers. Helpers shared by all Gatsby's Node
31+
APIs are documented in{` `}
32+
<a href="#shared-helpers">Shared helpers</a> section.
3333
</p>
34-
<ul>
35-
<li>
36-
<Link to="/docs/node-apis/#createPages">
37-
<code>createPages</code>
38-
</Link>
39-
{` `}
40-
provides <code>graphql</code> function.
41-
</li>
42-
<li>
43-
<Link to="/docs/node-apis/#onCreateWebpackConfig">
44-
<code>onCreateWebpackConfig</code>
45-
</Link>
46-
{` `}
47-
provides <code>stage</code>, <code>getConfig</code>,{` `}
48-
<code>rules</code>, <code>loaders</code>,{` `}
49-
<code>plugins</code> fields.
50-
</li>
51-
</ul>
52-
<h2>Examples</h2>
5334
<div className="gatsby-highlight">
5435
<pre className="language-javascript">
5536
<code
@@ -84,7 +65,16 @@ exports.createPages = ({ actions, reporter }) => {
8465
/>
8566
</pre>
8667
</div>
87-
<h2 css={{ marginBottom: rhythm(1 / 2) }}>Helpers</h2>
68+
<h2>Note</h2>
69+
<p>
70+
Some APIs provide additional helpers. For example{` `}
71+
<code>createPages</code> provides <code>graphql</code> function.
72+
Check documentation of specific APIs in{` `}
73+
<Link to="/docs/node-apis/">Gatsby Node APIs</Link> for details.
74+
</p>
75+
<h2 id="shared-helpers" css={{ marginBottom: rhythm(1 / 2) }}>
76+
Shared helpers
77+
</h2>
8878
<ul css={{ ...scale(-1 / 5) }}>
8979
{docs.map((node, i) => (
9080
<li key={`function list ${node.name}`}>

0 commit comments

Comments
 (0)