From 9e3da2e0e059b8d34fd1209717eeddab3459e163 Mon Sep 17 00:00:00 2001 From: simurai Date: Mon, 15 Jun 2020 20:41:35 +0900 Subject: [PATCH 1/5] Remove pagehead --- docs/src/@primer/gatsby-theme-doctocat/nav.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/src/@primer/gatsby-theme-doctocat/nav.yml b/docs/src/@primer/gatsby-theme-doctocat/nav.yml index 179b3768..21d49ac8 100644 --- a/docs/src/@primer/gatsby-theme-doctocat/nav.yml +++ b/docs/src/@primer/gatsby-theme-doctocat/nav.yml @@ -99,8 +99,6 @@ url: /components/marketing-buttons - title: Navigation url: /components/navigation - - title: Pagehead - url: /components/pagehead - title: Pagination url: /components/pagination - title: Popover From cd56211caefcf73be67465551d9534b4fd27a8bb Mon Sep 17 00:00:00 2001 From: simurai Date: Mon, 15 Jun 2020 20:48:22 +0900 Subject: [PATCH 2/5] Delete pagehead.md --- docs/content/components/pagehead.md | 233 ---------------------------- 1 file changed, 233 deletions(-) delete mode 100644 docs/content/components/pagehead.md diff --git a/docs/content/components/pagehead.md b/docs/content/components/pagehead.md deleted file mode 100644 index a28ca1bd..00000000 --- a/docs/content/components/pagehead.md +++ /dev/null @@ -1,233 +0,0 @@ ---- -title: Pagehead -path: components/pagehead -status: Stable -internal: true -source: 'https://github.com/github/github/tree/master/app/assets/stylesheets/components/pagehead.scss' -symbols: [account-switcher, active, admin, avatar, dropdown-menu-content, experiment-repo-nav, fork, fork-flag, mirror, mirror-flag, octicon, octicon-lock, octicon-mirror, octicon-mute, pagehead, pagehead-actions, pagehead-heading, pagehead-tabs-item, path-divider, png, private, repohead, repohead-details-container, reponav, reponav-dropdown, reponav-item, select-menu, select-menu-modal-holder, selected, underline-nav] ---- - -Give a page a clear, separated title and optional top nav by adding a `.pagehead`. - - - -## Basic pagehead - -In its simplest form, you can build a pagehead with a `pagehead` element with an `h1` child. - -```html live -
-

Title

-
-``` - -### Avatars - -Place an avatar inside the `h1` to have margins applied to it. Don't forget the `avatar` class! - -Also be sure to add `aria-hidden="true"` to hide the avatar from screenreaders. - -```html live -
-

- - - jonrohan -

-
-``` - -### Path divider - -For path or breadcrumb patterns, wrap the `/` with `path-divider` to add some nice horizontal spacing. - -```html live -
-

- - / - primer -

-
-``` - -## Pagehead actions - -To add actions on the right side of the `pagehead`, use the `pagehead-actions` element. Place `pagehead-actions` before the `h1` to ensure proper placement. - -```html live -
-
    -
  • -
  • -
-

Title

-
-``` - -## Org nav - -```html live - -``` - -## Repohead - -Use `pagehead` to construct a header and navigation for a repository. - -### Base - -```html live -
-
-
    -
  • -
    - - -
    -
  • -
  • -
    - - -
    -
  • -
-

- - - - / - project -

-
- -
-``` - -### Private - -```html live -
-
-
    -
  • -
    - - -
    -
  • -
  • -
    - - -
    -
  • -
-

- - - - / - project - Private -

-
- -
-``` From 860cf087f941af9d79705644c7dd875b1acfaf98 Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Fri, 26 Mar 2021 09:32:04 -0700 Subject: [PATCH 3/5] Remove from test docs script --- script/test-doc-urls.js | 1 - 1 file changed, 1 deletion(-) diff --git a/script/test-doc-urls.js b/script/test-doc-urls.js index 34e9253b..6fbea1f3 100755 --- a/script/test-doc-urls.js +++ b/script/test-doc-urls.js @@ -117,7 +117,6 @@ function getStyleguidePaths() { /components/octicons /components/page-headers /components/page-sections -/components/pagehead /components/pagination /components/popover /components/progress From 7c42bd1cef1338c3067cf7f2950c80cc173f0b01 Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Fri, 26 Mar 2021 09:32:33 -0700 Subject: [PATCH 4/5] Create rotten-numbers-collect.md --- .changeset/rotten-numbers-collect.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/rotten-numbers-collect.md diff --git a/.changeset/rotten-numbers-collect.md b/.changeset/rotten-numbers-collect.md new file mode 100644 index 00000000..58ef68d8 --- /dev/null +++ b/.changeset/rotten-numbers-collect.md @@ -0,0 +1,5 @@ +--- +"@primer/css": patch +--- + +Remove pagehead docs from primer.style From a045c3e130e42c1b57ebff29963801074c3a8d26 Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Fri, 26 Mar 2021 09:33:38 -0700 Subject: [PATCH 5/5] Doesn't need a changeset --- .changeset/rotten-numbers-collect.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .changeset/rotten-numbers-collect.md diff --git a/.changeset/rotten-numbers-collect.md b/.changeset/rotten-numbers-collect.md deleted file mode 100644 index 58ef68d8..00000000 --- a/.changeset/rotten-numbers-collect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/css": patch ---- - -Remove pagehead docs from primer.style