Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit dba7b8c

Browse files
authored
Remove /design prefix (#645)
1 parent 48d58a7 commit dba7b8c

File tree

19 files changed

+82
-83
lines changed

19 files changed

+82
-83
lines changed

.github/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Contributing
22

33
## Creating pages
4-
To create a new page, just create a new file in the `pages/design` directory. (Note: pages outside of the `design` subdirectory will not be accessible from `primer.style/design`!)
4+
To create a new page, just create a new file in the `pages/design` directory. (Note: pages outside of the `design` subdirectory will not be accessible from `primer.style`!)
55

66
The URL for each page reflects its path within the `pages` directory, so:
77

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ If you are writing documentation, please read the [documentation guidelines](htt
99
## Design guidelines template
1010
Even though some guidelines follow a different format, most can use the following template as a starting point. Required sections are indicated.
1111

12-
💡 The [action list component](https://primer.style/design/components/action-list) documentation is a good example of design guidelines.
12+
💡 The [action list component](https://primer.style/components/action-list) documentation is a good example of design guidelines.
1313

1414
| Section | Description | Notes |
1515
|--------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Primer Design System documentation
1+
# Primer Design System documentation
22

3-
Documentation for all things Primer, including components, UI patterns, foundations, guides, and more.
3+
Documentation for all things Primer, including components, UI patterns, foundations, guides, and more.
44

55
## Status
66

7-
This repository is evolving as our documentation needs change. See our [contribution guides here](https://primer.style/design/guides/contribute/documentation).
7+
This repository is evolving as our documentation needs change. See our [contribution guides here](https://primer.style/guides/contribute/documentation).
88

99
[Project board](https://github.com/orgs/github/projects/4503/views/16) (GitHub staff only)
1010

@@ -24,16 +24,16 @@ This repository is evolving as our documentation needs change. See our [contribu
2424

2525
## Deployment
2626

27-
We deploy this site using [GitHub Pages](https://pages.github.com/). Every push to a branch other than `main` will deploy to a URL unique to the preview environment. Merges to `main` will automatically deploy the site to `https://primer.style/design/`.
27+
We deploy this site using [GitHub Pages](https://pages.github.com/). Every push to a branch other than `main` will deploy to a URL unique to the preview environment. Merges to `main` will automatically deploy the site to `https://primer.style/`.
2828

2929
## FAQ
3030

31-
### How do I add documentation for a new component or edit existing component documentation?
32-
- Our [component documentation files are found here](https://github.com/primer/design/tree/main/content/components), and guidelines for adding content can be found under the [Documenting components](https://primer.style/design/guides/contribute/documentation#documenting-components) section of the [Contributing guidelines]((https://primer.style/design/guides/contribute/documentation)).
33-
- For a more detailed walk-through, check out this [tutorial video](https://www.loom.com/share/ac56f610076f41878d0351b4a1c44a6b?sid=1bd5a46d-a7ea-4e0d-bb08-ed9e8c8bfe12).
31+
### How do I add documentation for a new component or edit existing component documentation?
32+
- Our [component documentation files are found here](https://github.com/primer/design/tree/main/content/components), and guidelines for adding content can be found under the [Documenting components](https://primer.style/guides/contribute/documentation#documenting-components) section of the [Contributing guidelines]((https://primer.style/guides/contribute/documentation)).
33+
- For a more detailed walk-through, check out this [tutorial video](https://www.loom.com/share/ac56f610076f41878d0351b4a1c44a6b?sid=1bd5a46d-a7ea-4e0d-bb08-ed9e8c8bfe12).
3434

35-
### I need help getting started.
36-
- Check out our [getting started guides](https://primer.style/design/guides) or ping us in [Slack](https://github.slack.com/archives/CSGAVNZ19) (GitHub staff only)
35+
### I need help getting started.
36+
- Check out our [getting started guides](https://primer.style/guides) or ping us in [Slack](https://github.slack.com/archives/CSGAVNZ19) (GitHub staff only)
3737

3838
### I noticed a bug in the documentation!
3939
- Feel free to open a pull request or issue directly in this repository, or ping us in [Slack](https://github.slack.com/archives/CSGAVNZ19) (GitHub staff only)

content/components/action-menu.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ On smaller viewports, the menu should always be re-positioned to fit within the
419419
Here is an overview of [action list](/components/action-menu) items that are compatible with menus:
420420

421421
- **Action**: Triggers an action or dialog. Trailing visuals can be used for keyboard shortcuts.
422-
- **Single/multi select**: Represented by a [check](/design/foundations/icons/check-16) and never a HTML checkbox. Trailing visuals can be used for keyboard shortcuts.
423-
- **Submenu**: Represented by a [chevron-right](/design/foundations/icons/chevron-right-16) as a trailing visual.
422+
- **Single/multi select**: Represented by a [check](/foundations/icons/check-16) and never a HTML checkbox. Trailing visuals can be used for keyboard shortcuts.
423+
- **Submenu**: Represented by a [chevron-right](/foundations/icons/chevron-right-16) as a trailing visual.
424424
- **Section header**: To add clarification to a section.
425425
- **Divider**: To create sections for your selections, actions or submenus.
426426

content/components/button-group.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Grouping buttons with a button group is better than rendering buttons close toge
3939
- Avoid grouping too many buttons together. It could be overwhelming to the user.
4040
- Do not use a button group to indicate a selection. Use a [segmented control](/components/segmented-control) instead.
4141
- Do not use a button group as a replacement for tab navigation. <!-- TODO: link to TabNav once it's merged -->
42-
- Avoid mixing buttons with text labels with icon-only buttons. However, it is acceptable to group a text-labeled button with an icon-only button with a [down-pointing triangle](https://primer.style/design/foundations/icons/triangle-down-16) that opens a dropdown menu of actions related to the button.
42+
- Avoid mixing buttons with text labels with icon-only buttons. However, it is acceptable to group a text-labeled button with an icon-only button with a [down-pointing triangle](https://primer.style/foundations/icons/triangle-down-16) that opens a dropdown menu of actions related to the button.
4343
- Do not group an [invisible](/components/button#invisible) button with buttons of another variant.
4444

4545
## Options

content/components/selectpanel.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ When adding an extra action in the footer, it is important to ensure that it sti
485485
src="https://github.com/primer/design/assets/980622/ae6d19c2-7bfa-4357-be65-341c0728b9a8"
486486
/>
487487

488-
See the [Dialog guidelines](https://primer.style/design/components/dialog) for more details.
488+
See the [Dialog guidelines](https://primer.style/components/dialog) for more details.
489489

490490
## Keyboard navigation
491491

content/components/toggle-switch.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ import {AccessibilityLink} from '~/src/components/accessibility-link'
148148
sx={{gap: 3}}
149149
>
150150
<Box as="p" mt="0">
151-
The <a href="/design/ui-patterns/progressive-disclosure">progressive disclosure pattern</a> may be used to hide or
151+
The <a href="/ui-patterns/progressive-disclosure">progressive disclosure pattern</a> may be used to hide or
152152
show content based on whether a toggle switch is on. Content revealed on toggle switch activation should always come{' '}
153153
<em>after</em> the toggle switch.
154154
</Box>

content/components/token.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Examples of interactions:
188188
</Box>
189189
<Box as="p">
190190
Tokens can be added or removed from a group in the way that makes the most sense for your use case. We recommend
191-
using an <a href="/design/components/autocomplete">autocomplete</a> component to allow users to sort through a
191+
using an <a href="/components/autocomplete">autocomplete</a> component to allow users to sort through a
192192
list to pick options.
193193
</Box>
194194
<Box as="p">

content/components/tree-view.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ A tree view can be a frustrating pattern if it forces users to spend a lot of ti
387387
<p>
388388
Inform users why the data cannot be retrieved and give them a path to resolve it. The error message cannot appear
389389
in the tree view because it is not semantically a node in the tree. Instead, the error message should appear in a{' '}
390-
<a href="/design/components/dialog">dialog</a> with an optional call-to-action that can resolve the error.
390+
<a href="/components/dialog">dialog</a> with an optional call-to-action that can resolve the error.
391391
</p>
392392
<p>
393393
If the user dismisses the dialog, focus should be moved back to the collapsed parent node. If the user clicks a

content/foundations/color.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ If you work with the [functional colors](#color-roles-recipes), this work has al
312312

313313
### Additional guidance
314314

315-
Reference [Color considerations](https://primer.style/design/guides/accessibility/color-considerations) for additional information about how color relates to compliance, and other focused documentation topics.
315+
Reference [Color considerations](https://primer.style/guides/accessibility/color-considerations) for additional information about how color relates to compliance, and other focused documentation topics.
316316

317317
## Color outside the functional system
318318

0 commit comments

Comments
 (0)