Skip to content

Commit 460d30e

Browse files
authored
feat: add "Edit on GitHub" links to each page (npm#69)
* feat: add "Edit on GitHub" links to certain pages This adds the "edit on GitHub" links to all pages, except policy pages. All pages point to their direct counterpart in either this repo or `npm/cli` with the following exceptions: - Generated index pages in the `/cli/` section point to `npm/cli/edit/<BRANCH>/docs/nav.yml` since those contain the section titles. - The root edit link in the sidebar is removed since it doesn't make sense to link directly to the homepage of this repo when content is split across both repos. - `index.mdx` pages in all other sections are linked to directly since many of them contain at least some canonical content. I added a comment to each page in the source indicating that the hierarchical links in those pages are generated based on `src/nav-base.yml`. Closes npm#48 * fixup! add back path prefix
1 parent 2d912da commit 460d30e

File tree

55 files changed

+204
-199
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+204
-199
lines changed

.github/workflows/stage-pull-request.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,3 @@ jobs:
4747
-H "Content-Type: application/json" \
4848
--data "{ \"event_type\": \"publish_pr\", \"client_payload\": { \"pr_number\":\"$PR_NUMBER\", \"notify\":\"$NOTIFY\" } }" \
4949
https://api.github.com/repos/${{ env.staging_repo }}/dispatches
50-
51-
# - name: Identify pull request
52-
# if: github.event_name == "pull_request_target"
53-
# uses: actions/github-script@v3
54-
# with:
55-
# script: |
56-
# github.issues.createComment({
57-
# issue_number: context.issue.number,
58-
# owner: context.repo.owner,
59-
# repo: context.repo.repo,
60-
# body: "👋 Thanks for opening a pull request! We're building a staging
61-
# })

0 commit comments

Comments
 (0)