Skip to content

Commit 0eacc13

Browse files
Merge pull request #1161 from pattern-lab/feature/fix-broken-links
Feature/fix broken links
2 parents 465fa53 + b2d58f3 commit 0eacc13

21 files changed

+63
-48
lines changed

packages/docs/src/_data/navigation.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@
4646
}
4747
],
4848
"footerNav": [
49-
{
50-
"label": "Documentation",
51-
"url": "/docs"
52-
},
5349
{
5450
"label": "Resources",
5551
"url": "/resources"

packages/docs/src/_includes/layouts/home.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484

8585
{% set styleModifier = 'c-tile--orange' %}
8686
{% set title = 'Open source and community driven' %}
87-
{% set link = '#' %}
87+
{% set link = '/support' %}
8888
{% set description = "Pattern Lab is (and will always be) an open source project. Check out the project on <a href='https://github.com/pattern-lab/patternlab-node'>GitHub</a> and join the <a href='https://gitter.im/pattern-lab/home'>Pattern Lab Gitter community</a> for conversation and support." %}
8989
{% include "components/tile.njk" %}
9090

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{% extends 'layouts/base.njk' %}
2+
{% set pageType = 'Resources' %}
3+
4+
{# Intro content #}
5+
{% set introHeading = title %}
6+
{% set introSummary %}
7+
8+
{% endset %}
9+
10+
{% block content %}
11+
<div class="l-container">
12+
<div class="l-linelength-container">
13+
<article>
14+
{% include "components/page-header.njk" %}
15+
<div class="c-text-passage">
16+
{{ content | safe }}
17+
</div>
18+
19+
</article>
20+
</div>
21+
</div>
22+
{% endblock %}
23+
24+
{{ content | safe }}

packages/docs/src/docs/advanced-config-options.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Sets whether or not to delete `public.patterns/` upon each build of Pattern Lab.
2929

3030
### defaultPattern
3131

32-
Sets a specific pattern upon launch of the styleguide. This pattern will not be available in the navigation, or in view all pages. The only way to get to it will be via a refresh. Set it using the [short-hand pattern-include syntax](http://localhost:4000/docs/pattern-including.html):
32+
Sets a specific pattern upon launch of the styleguide. This pattern will not be available in the navigation, or in view all pages. The only way to get to it will be via a refresh. Set it using the [short-hand pattern-include syntax](/docs/including-patterns/):
3333

3434
```javascript
3535
"defaultPattern": "pages-welcome",
@@ -160,7 +160,7 @@ Sets the panel name and language for the code tab on the styleguide. Since this
160160

161161
### patternStateCascade
162162

163-
See the [Pattern State Documentation](http://patternlab.io/docs/pattern-states.html#node)
163+
See the [Pattern State Documentation](/docs/using-pattern-states/)
164164

165165
**default**:
166166

@@ -176,7 +176,7 @@ Sets the location that any export operations should output files to. This may be
176176

177177
### patternExportPatternPartials
178178

179-
Sets an array of patterns (using the [short-hand pattern-include syntax](http://localhost:4000/docs/pattern-including.html)) to be exported after a build.
179+
Sets an array of patterns (using the [short-hand pattern-include syntax](/docs/including-patterns/)) to be exported after a build.
180180

181181
For example, to export the navigation, header, and footer, one might do:
182182

@@ -200,7 +200,7 @@ Sets live-server options. See the [live-server documentation](https://github.com
200200

201201
### starterkitSubDir
202202

203-
[Starterkits](http://localhost:4000/docs/advanced-starterkits.html) by convention house their files within the `dist/` directory. Should someone ever wish to change this, this key is available.
203+
[Starterkits](/docs/starterkits/) by convention house their files within the `dist/` directory. Should someone ever wish to change this, this key is available.
204204

205205
**default**:
206206

@@ -251,7 +251,7 @@ See the [initial release notes](https://github.com/pattern-lab/styleguidekit-ass
251251

252252
### uikits
253253

254-
Introduced in Pattern Lab Node v3, UIKits are a new term in the Pattern Lab [Ecosystem](http://patternlab.io/docs/advanced-ecosystem-overview.html). They are an evolution of the original Styleguidekit pattern which separated front-end templates from front-end assets like stylesheets and code. The existing `styleguidekit-assets-default` and `styleguidekit-mustache-default` have merged into `uikit-workshop`.
254+
Introduced in Pattern Lab Node v3, UIKits are a new term in the Pattern Lab [Ecosystem](/docs/overview-of-pattern-lab's-ecosystem/). They are an evolution of the original Styleguidekit pattern which separated front-end templates from front-end assets like stylesheets and code. The existing `styleguidekit-assets-default` and `styleguidekit-mustache-default` have merged into `uikit-workshop`.
255255

256256
`uikits` accepts an array of UIKit objects, shipping with the one above.
257257

packages/docs/src/docs/advanced-ecosystem-overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Have a trusty set of boilerplate code that you start every project with? Perhaps
3535

3636
Importing a starterkit is only a few keystrokes away after installation.
3737

38-
[Learn more about Starterkits](/docs/advanced-starterkits.html#node)
38+
[Learn more about Starterkits](/docs/starterkits/)
3939

4040
### StyleguideKits
4141

@@ -55,4 +55,4 @@ The flexibility of the Pattern Lab ecosystem means that teams can develop tools
5555

5656
## Guidance and Help
5757

58-
If you have ideas or would like guidance before we have all of the documentation done please learn how you can [engage with the Pattern Lab community](/contribute.html).
58+
If you have ideas or would like guidance before we have all of the documentation done please learn how you can [engage with the Pattern Lab community](/support/).

packages/docs/src/docs/advanced-integration-with-grunt.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ eleventyNavigation:
1111

1212
**Note:** _These directions may be incomplete. They also require **v0.7.9** of the PHP version of Pattern Lab._
1313

14-
# Integration with Grunt
15-
1614
Setting up Grunt to work with the PHP version of Pattern Lab should be straightforward. To do so please do the following:
1715

1816
1. Open a terminal window

packages/docs/src/docs/advanced-starterkits.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ eleventyNavigation:
99
order: 300
1010
---
1111

12-
Starterkits are a potent way create or augment a Pattern Lab instance with a baseline set of patterns and assets. They are an important part of the [Pattern Lab Ecosystem](/docs/advanced-ecosystem-overview.html) An agency or team could use it for each new client or project. [Several starterkits](https://github.com/pattern-lab?utf8=%E2%9C%93&q=starterkit&type=&language=) already exist to kick your project off, whether you’re looking for a blank start, begin with a demo that showcases Pattern Lab’s features, or start with a popular framework like Bootstrap, Foundation, or Material Design.
12+
Starterkits are a potent way create or augment a Pattern Lab instance with a baseline set of patterns and assets. They are an important part of the [Pattern Lab Ecosystem](/docs/overview-of-pattern-lab's-ecosystem/) An agency or team could use it for each new client or project. [Several starterkits](https://github.com/pattern-lab?utf8=%E2%9C%93&q=starterkit&type=&language=) already exist to kick your project off, whether you’re looking for a blank start, begin with a demo that showcases Pattern Lab’s features, or start with a popular framework like Bootstrap, Foundation, or Material Design.
1313

1414
## Structure
1515

@@ -27,7 +27,7 @@ js/
2727
favicon.ico
2828
```
2929

30-
Teams constructing their own Starterkits should stick to this structure if they wish to publish it externally, else may alter the structure to their [configured `paths`](/docs/advanced-config-options.html#node).
30+
Teams constructing their own Starterkits should stick to this structure if they wish to publish it externally, else may alter the structure to their [configured `paths`](/docs/editing-the-configuration-options/).
3131

3232
## Installing Starterkits
3333

packages/docs/src/docs/advanced-template-language-and-pattern-engines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ eleventyNavigation:
99
order: 300
1010
---
1111

12-
By default Pattern Lab uses the Mustache template language, extended with [pattern parameters](/docs/pattern-parameters.html). PatternEngines let you add support for a template language of your personal choice. Each PatternEngine has it's own set of features and caveats.
12+
By default Pattern Lab uses the Mustache template language, extended with [pattern parameters](/docs/using-pattern-parameters/). PatternEngines let you add support for a template language of your personal choice. Each PatternEngine has it's own set of features and caveats.
1313

1414
Right now the most mature PatternEngines are Handlebars, Mustache and Twig.
1515

packages/docs/src/docs/data-link-variable.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ eleventyNavigation:
77
order: 100
88
---
99

10-
# Linking to Patterns with Pattern Lab's Default `link` Variable
11-
1210
You can build patterns that link to one another to help simulate using a real website. This is especially useful when working with the Pages and Templates pattern types. Rather than having to remember the actual path to a pattern you can use the same shorthand syntax you'd use to include one pattern within another. **Important:** Pattern links _do not_ support the same fuzzy matching of names as the shorthand partials syntax does. The basic format is:
1311

1412
```html

packages/docs/src/docs/data-overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ The Node version of Pattern Lab only supports JSON.
2020
There are three places to store data in Pattern Lab:
2121

2222
- in `./source/_data`.
23-
- in [pattern-specific](/docs/data-pattern-specific.html) files in `./source/_patterns`.
24-
- in [pseudo-pattern](/docs/pattern-pseudo-patterns.html) files in `./source/_patterns`.
23+
- in [pattern-specific](/docs/creating-pattern-specific-values/) files in `./source/_patterns`.
24+
- in [pseudo-pattern](/docs/using-pseudo-patterns/) files in `./source/_patterns`.
2525

2626
### A Special Note About Pattern Parameters
2727

28-
[Pattern parameters](/docs/pattern-parameters.html) are a simple find and replace of variables in the included pattern. As such they do not affect the context stack of Mustache and we don't consider them true data. They have no impact on overall data inheritance and they cannot be used any deeper than the included pattern. They are a hack.
28+
[Pattern parameters](/docs/using-pattern-parameters/) are a simple find and replace of variables in the included pattern. As such they do not affect the context stack of Mustache and we don't consider them true data. They have no impact on overall data inheritance and they cannot be used any deeper than the included pattern. They are a hack.
2929

3030
## Data Inheritance
3131

0 commit comments

Comments
 (0)