Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from nodejs:master #264

Open
wants to merge 152 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
8df1660
build(deps-dev): bump eslint-config-prettier from 8.1.0 to 8.2.0
dependabot[bot] Apr 22, 2021
e1071b3
build(deps-dev): bump @types/classnames from 2.2.11 to 2.3.1
dependabot[bot] Apr 22, 2021
a8beed0
build(deps): bump react-icons from 3.11.0 to 4.2.0
dependabot[bot] Apr 22, 2021
aee2827
build(deps-dev): bump jest from 26.0.1 to 26.6.3
dependabot[bot] Apr 23, 2021
ebf9e99
build(deps-dev): bump @types/jest from 25.2.3 to 26.0.22
dependabot[bot] Apr 23, 2021
c1578e4
test(ImageFigure): Add missing tests
rodion-arr Apr 22, 2021
00bbed3
test(InstallTabs): Add missing tests
rodion-arr Apr 22, 2021
12a9f4c
test(Layout): Add missing tests
rodion-arr Apr 22, 2021
88e9ecb
refactor(NavigationItem): remove redundant code
rodion-arr Apr 22, 2021
ef65765
build(deps): bump @types/react-tabs from 2.3.1 to 2.3.2
dependabot[bot] Apr 24, 2021
8c65e7a
build(deps): bump actions/github-script from v3 to v4.0.1
dependabot[bot] Apr 22, 2021
1925269
build(deps-dev): bump node-sass from 4.14.1 to 5.0.0
dependabot[bot] Apr 24, 2021
7c8b8af
build(deps-dev): bump babel-preset-gatsby from 0.4.2 to 1.3.0
dependabot[bot] Apr 24, 2021
ec75572
build(deps): bump throttle-debounce from 2.3.0 to 3.0.1 (#1223)
dependabot[bot] Apr 24, 2021
b8aa81d
build(deps): bump @storybook/builder-webpack5 from 6.2.7 to 6.2.9
dependabot[bot] Apr 24, 2021
2b3cbdd
build(deps): bump @storybook/react from 6.2.3 to 6.2.9
dependabot[bot] Apr 24, 2021
4f1e2d9
build(deps): bump intersection-observer from 0.10.0 to 0.12.0
dependabot[bot] Apr 24, 2021
00cfba7
build(deps): bump @storybook/addon-links from 6.2.3 to 6.2.9 (#1234)
dependabot[bot] Apr 25, 2021
513c9f5
build(deps): bump dompurify from 2.0.17 to 2.2.7 (#1235)
dependabot[bot] Apr 25, 2021
e8de336
build(deps-dev): bump @babel/core from 7.12.9 to 7.13.16 (#1236)
dependabot[bot] Apr 26, 2021
854d38c
build(deps): bump typescript from 3.9.2 to 4.2.4 (#1237)
dependabot[bot] Apr 26, 2021
298ea6c
Enforce types checking (#1242)
rodion-arr Apr 26, 2021
1717549
build(deps-dev): bump babel-jest from 26.0.1 to 26.6.3
dependabot[bot] Apr 26, 2021
90fa6f0
chore: Update ESLint devDeps
nschonni Apr 24, 2021
56cfacb
chore: Enable ESLint on tests
nschonni Apr 25, 2021
b00078d
build(deps-dev): bump remark-preset-lint-node from 2.1.1 to 2.2.0
dependabot[bot] Apr 26, 2021
dd3305d
build(deps-dev): bump @testing-library/jest-dom from 5.11.10 to 5.12.0
dependabot[bot] Apr 26, 2021
21855e5
build(deps): bump actions/github-script from v4.0.1 to v4.0.2
dependabot[bot] Apr 26, 2021
1d0e88d
build(deps): bump gatsby from 3.3.0 to 3.3.1
dependabot[bot] Apr 26, 2021
8a0978c
build(deps): Bump react-tabs from 3.1.0 to 3.2.2
dependabot[bot] Apr 26, 2021
a0f8b46
build(deps): Bump @storybook/addon-actions from 6.2.3 to 6.2.9
dependabot[bot] Apr 28, 2021
0344cdb
build(deps): bump @storybook/addons from 6.2.8 to 6.2.9
dependabot[bot] Apr 28, 2021
2dbeeeb
fix: Fix content 'jumping' when scrollbar appears
tfarras Apr 20, 2021
d63bc59
fix lint issues
tfarras Apr 20, 2021
cb880b6
fix issue changing only scss
tfarras Apr 21, 2021
35d78e5
build(deps-dev): bump @types/jest from 26.0.22 to 26.0.23
dependabot[bot] Apr 28, 2021
24a09b7
Missed full stop fix
shchypylov Apr 28, 2021
b826290
Adding links
innazh Apr 26, 2021
0b20cd2
Edited Typescript installation command
shchypylov Apr 28, 2021
1404025
test(hooks): Add tests for hooks (#1255)
rodion-arr May 1, 2021
1b0a802
build(deps): bump gatsby-remark-prismjs from 5.0.0 to 5.1.0
dependabot[bot] May 1, 2021
a9aff73
build(deps): bump gatsby-plugin-react-helmet from 4.3.0 to 4.4.0
dependabot[bot] May 1, 2021
a8a9322
build(deps-dev): bump babel-preset-gatsby from 1.3.0 to 1.4.0
dependabot[bot] May 1, 2021
b0bc447
build(deps): bump gatsby-plugin-manifest from 3.3.0 to 3.4.0
dependabot[bot] May 1, 2021
1eb0773
build(deps): bump gatsby-transformer-yaml from 3.3.0 to 3.4.0
dependabot[bot] May 1, 2021
6d8e0c3
build(deps): bump gatsby-remark-autolink-headers from 4.0.0 to 4.1.0
dependabot[bot] May 1, 2021
853bb5d
build(deps): bump gatsby-source-filesystem from 3.3.0 to 3.4.0
dependabot[bot] May 1, 2021
0a92db0
test(AllBlogPosts): Add tests
rodion-arr Apr 28, 2021
8e07ee1
test(DownloadPage): Add tests
rodion-arr May 1, 2021
49ee710
test(Index): Add tests
rodion-arr May 1, 2021
bef20af
test(StyleGuidePage): Add tests
rodion-arr May 1, 2021
9b22903
Exclude unreleased pages from coverage report
rodion-arr May 1, 2021
47b48da
test(LearnLayout): Add tests
rodion-arr May 1, 2021
21f77b1
test(detectOS): Add tests
rodion-arr May 1, 2021
d824087
test(downloadUrlByOS): Add tests
rodion-arr May 1, 2021
ce1f83d
test(getTerminatingString): Add tests
rodion-arr May 1, 2021
d7e1f21
Revert detectOS changes
rodion-arr May 1, 2021
3897abf
build(deps): bump gatsby-remark-images from 5.0.0 to 5.1.0
dependabot[bot] May 2, 2021
d3474b7
build(deps): bump gatsby-plugin-canonical-urls from 3.3.0 to 3.4.0
dependabot[bot] May 3, 2021
0c2c1e9
build(deps): bump gatsby-plugin-sharp from 3.3.1 to 3.4.0
dependabot[bot] May 3, 2021
422bafd
Added category in frontmatter and modified node config accordingly
manishprivet May 4, 2021
c59773b
Fixed tests and stories
manishprivet May 4, 2021
75eca9c
build(deps): bump gatsby-transformer-remark from 4.0.0 to 4.1.0
dependabot[bot] May 3, 2021
6190cd2
build(deps-dev): bump @babel/core from 7.13.16 to 7.14.0
dependabot[bot] May 5, 2021
ce40976
build(deps): bump gatsby-plugin-sitemap from 3.3.0 to 4.0.0
dependabot[bot] May 5, 2021
f43212f
build(deps): bump gatsby-remark-copy-linked-files from 4.0.0 to 4.1.0
dependabot[bot] May 5, 2021
be705d0
build(deps): bump gatsby-plugin-mdx from 2.3.0 to 2.4.0
dependabot[bot] May 5, 2021
9ebcbb0
Added missing category field
manishprivet May 5, 2021
261d9fb
fix: 🐛 local dev webpack issue
benhalverson May 6, 2021
e989b86
fix: 🐛 Revert gatsby to 3.1.3 to fix linting and tests issue
benhalverson May 6, 2021
587b2d5
docs(node): update AdonisJS description
RomainLanz May 6, 2021
e8b0816
Fix typo
rowlandekemezie May 8, 2021
d86ad15
build(deps-dev): bump eslint from 7.25.0 to 7.26.0
dependabot[bot] May 10, 2021
812cf5b
build(deps-dev): bump eslint-plugin-testing-library from 4.2.0 to 4.2.1
dependabot[bot] May 10, 2021
b2692de
build(deps): bump gatsby from 3.1.3 to 3.4.2 (#1309)
dependabot[bot] May 11, 2021
1ab1bfb
build(deps-dev): bump @typescript-eslint/eslint-plugin
dependabot[bot] May 11, 2021
dd56062
build(deps-dev): bump @typescript-eslint/parser from 4.22.1 to 4.23.0
dependabot[bot] May 11, 2021
71b2ef2
build(deps): bump gatsby-plugin-sharp from 3.4.1 to 3.4.2 (#1303)
dependabot[bot] May 11, 2021
ed4878d
chore: Bump prettier 2.3 and fix formatting
nschonni May 11, 2021
192f1c6
build(deps): bump dotenv from 8.6.0 to 9.0.2
dependabot[bot] May 11, 2021
5bda832
build(deps-dev): bump @types/react-dom from 17.0.3 to 17.0.4
dependabot[bot] May 11, 2021
df1f5d5
build(deps): bump dompurify from 2.2.7 to 2.2.8
dependabot[bot] May 11, 2021
4b0eb6b
Migrate random contributor block from nodejs.org
rodion-arr May 10, 2021
eb468f8
Apply new formatting rules
rodion-arr May 11, 2021
061e0d6
Add loading animation
rodion-arr May 12, 2021
759460b
Fix tests
rodion-arr May 12, 2021
f353f01
Fix formatting
rodion-arr May 12, 2021
d05e070
build(deps): bump actions/checkout from 2 to 2.3.4
dependabot[bot] May 12, 2021
ff3d31c
build(deps): bump codecov/codecov-action from 1 to 1.5.0
dependabot[bot] May 12, 2021
adb240b
build(deps): bump gatsby-plugin-catch-links from 3.3.0 to 3.4.0 (#1280)
dependabot[bot] May 12, 2021
0c5f9d6
adds parenthesis to Transform constructor
su-sumit May 12, 2021
8de3a6f
style: Centering footer on mobile
May 16, 2021
701cdb6
Add nodeJS v16
dhanushkac May 16, 2021
d3fb6c7
fix: adds example of recursive folder delete
shajanjp May 16, 2021
3dcc85c
style: Hide download button from header in mobile view
May 18, 2021
bb001cb
docs: update nodejs installation on windows to `nvs`
MrJithil May 18, 2021
bac8519
build(deps): Bump gatsby-plugin-mdx from 2.4.0 to 2.5.0
dependabot[bot] May 17, 2021
35223f9
build(deps): Bump gatsby-plugin-typescript from 3.4.0 to 3.5.0
dependabot[bot] May 17, 2021
86b0dfc
build(deps): Bump gatsby-plugin-sass from 4.4.0 to 4.5.0
dependabot[bot] May 17, 2021
356aec5
build(deps): Bump gatsby from 3.4.2 to 3.5.0
dependabot[bot] May 17, 2021
5fd2997
uninstall removed -s -d option
zeel May 16, 2021
66c421b
build(deps-dev): bump node-sass from 5.0.0 to 6.0.0
dependabot[bot] May 12, 2021
c28ed7e
Fixed Scrolling Issue in phones
manishprivet May 10, 2021
af512e7
Fixed Scrolling Issue in phones
manishprivet May 10, 2021
facab0a
Fixed tests
manishprivet May 10, 2021
2f4964f
Fixed Scrolling Issues
manishprivet May 10, 2021
b091cb2
Revert "style: Hide download button from header in mobile view"
benhalverson May 19, 2021
b8abe4e
Fixed build issue
benhalverson May 20, 2021
09ddbad
Added Trademark Policy Page (#1298)
palakjain21 May 20, 2021
dfae6b5
Remove Node.js 13 from tabbed view (#1346)
RhnSharma May 21, 2021
f117121
Added dynamic data fetching for releases
manishprivet May 28, 2021
5e2ec56
Typo Fix
manishprivet May 28, 2021
66fa9db
Refactored and Added Tests
manishprivet May 29, 2021
b8c79b2
build(deps-dev): bump pa11y from 5.3.1 to 6.0.0
dependabot[bot] May 31, 2021
cb798d2
build(deps): bump gatsby-remark-autolink-headers from 4.1.0 to 4.3.0
dependabot[bot] May 31, 2021
41a7fde
build(deps-dev): bump babel-plugin-remove-graphql-queries
dependabot[bot] May 31, 2021
7e7d1da
build(deps): bump gatsby-remark-prismjs from 5.1.0 to 5.3.0
dependabot[bot] May 31, 2021
67937c4
Fixed spelling mistake
devendra-aher May 26, 2021
2fd3007
Update index.md
Kevin-Oudai May 28, 2021
b147707
build(deps-dev): bump eslint from 7.26.0 to 7.27.0
dependabot[bot] May 31, 2021
359cdfb
build(deps): bump gatsby-remark-copy-linked-files from 4.1.0 to 4.3.0
dependabot[bot] May 31, 2021
5957f44
build(deps): bump gatsby-transformer-remark from 4.1.0 to 4.3.0
dependabot[bot] May 31, 2021
c043cd7
build(deps): bump gatsby-plugin-react-helmet from 4.4.0 to 4.6.0
dependabot[bot] May 31, 2021
8084e96
build(deps): bump gatsby-remark-images from 5.1.0 to 5.3.0
dependabot[bot] May 31, 2021
5eadad2
Add AdonisJS to the list of TypeScript libraries
thetutlage May 26, 2021
a419d32
build(deps): bump actions/cache from 2.1.5 to 2.1.6
dependabot[bot] May 31, 2021
64b84be
build(deps): bump gatsby from 3.5.0 to 3.6.1
dependabot[bot] May 31, 2021
cda0b01
update
vijayabhaskar-ev Jun 2, 2021
bbf54af
fixed download overflow
harshitphoenix Jun 2, 2021
b514272
fixed overflow in upcoming release
harshitphoenix Jun 3, 2021
d291341
add space before homepage
May 31, 2021
8f02a2c
Removed download button from 404 page. Download will still work on in…
May 31, 2021
41ef895
center error text
Jun 1, 2021
76f1ef3
update snapshot and included test for Hero Component without Download…
Jun 2, 2021
22dadd7
change learn btn color to default green
Jun 2, 2021
4a2be76
remove learn button, remove displaydownload from Hero
Jun 4, 2021
25ca70e
remove dup Learn btn
Jun 4, 2021
fb3fa0e
change href to gatsby for homepage
Jun 4, 2021
bd7848c
test pass
Jun 4, 2021
4bbafb4
docs: rework Buffer page
addaleax Jun 6, 2021
06dca0c
fixup: add to authors
addaleax Jun 6, 2021
01ad496
fixup: apply suggestions from code review
addaleax Jun 6, 2021
a97710d
fixup: apply suggestions from code review
addaleax Jun 6, 2021
5f9c56d
fixup: review comment
addaleax Jun 7, 2021
9190912
build(deps-dev): bump eslint from 7.27.0 to 7.28.0
dependabot[bot] Jun 7, 2021
01d29b9
build(deps): bump gatsby-source-filesystem from 3.4.0 to 3.6.0
dependabot[bot] Jun 7, 2021
0dcb1a5
build(deps-dev): bump @babel/core from 7.14.0 to 7.14.3
dependabot[bot] Jun 8, 2021
3a88ab4
build(deps): bump gatsby-plugin-typescript from 3.5.0 to 3.7.0
dependabot[bot] Jun 8, 2021
186b413
build(deps-dev): bump @typescript-eslint/eslint-plugin
dependabot[bot] Jun 9, 2021
02846b0
build(deps): bump gatsby-plugin-offline from 4.4.0 to 4.7.0
dependabot[bot] Jun 9, 2021
799e3b0
build(deps): bump gatsby-plugin-manifest from 3.4.0 to 3.7.0
dependabot[bot] Jun 9, 2021
137e7f1
docs: Update Gatsby links in README
imanjra Jun 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
test
public
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = {
},
{
files: ['test-processor.js', 'test-setup.js', 'test/**'],
extends: ['plugin:testing-library/recommended'],
extends: ['plugin:testing-library/react'],
env: {
jest: true,
},
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.3.4

- name: Setup GCloud
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gatsby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs:
test-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.3.4

- uses: actions/[email protected].5
- uses: actions/[email protected].6
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/generate-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
if: github.event.label.name == 'create-preview'
steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v2.3.4
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand All @@ -23,7 +23,7 @@ jobs:
export_default_credentials: true

- name: Remove create-preview label
uses: actions/github-script@v3
uses: actions/github-script@v4.0.2
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
run: gsutil -m rsync -R public gs://staging.nodejs.dev/${{ github.event.pull_request.number }}/

- name: Comment on PR
uses: actions/github-script@v3
uses: actions/github-script@v4.0.2
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
test-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.3.4

- uses: actions/[email protected]

- uses: actions/[email protected].5
- uses: actions/[email protected].6
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -32,4 +32,4 @@ jobs:
run: npm run test-ci

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v1.5.0
4 changes: 2 additions & 2 deletions .github/workflows/upload-to-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event.issue.pull_request != null && github.event.comment.body == '/preview'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.3.4

- name: Checkout Git Branch
run: |
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
run: gsutil -m rsync -R public gs://staging.nodejs.dev/${{ github.event.issue.number }}/

- name: Comment on PR
uses: actions/github-script@v3
uses: actions/github-script@v4.0.2
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

Your site is now running at `http://localhost:8000`!

*Note: You'll also see a second link: `http://localhost:8000/___graphql`. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the [Gatsby tutorial](https://next.gatsbyjs.org/tutorial/part-five/#introducing-graphiql).*
*Note: You'll also see a second link: `http://localhost:8000/___graphql`. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the [Gatsby tutorial](https://www.gatsbyjs.com/docs/tutorial/part-five/#introducing-graphiql).*

## 🧐 What's inside?

Expand Down Expand Up @@ -112,9 +112,9 @@ A quick look at some of the top-level files and directories found in this projec

11. **`gatsby-browser.js`**: This file is where Gatsby expects to find any usage of the [Gatsby browser APIs](https://www.gatsbyjs.com/docs/browser-apis/) (if any). These allow customization/extension of default Gatsby settings affecting the browser.

12. **`gatsby-config.js`**: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you'd like to include, etc. (Check out the [config docs](https://next.gatsbyjs.org/docs/gatsby-config/) for more detail).
12. **`gatsby-config.js`**: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you'd like to include, etc. (Check out the [config docs](https://www.gatsbyjs.com/docs/reference/config-files/gatsby-config/) for more detail).

13. **`gatsby-node.js`**: This file is where Gatsby expects to find any usage of the [Gatsby node APIs](https://next.gatsbyjs.org/docs/node-apis/) (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process.
13. **`gatsby-node.js`**: This file is where Gatsby expects to find any usage of the [Gatsby node APIs](https://www.gatsbyjs.com/docs/reference/config-files/gatsby-node/) (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process.

14. **`LICENSE`**: Gatsby is licensed under the MIT license.

Expand All @@ -136,11 +136,11 @@ The `src/documentation` directory currently contains all the getting started con

## 🎓 Learning Gatsby

Looking for more guidance? Full documentation for Gatsby lives [on the website](https://next.gatsbyjs.org/). Here are some places to start:
Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.com/). Here are some places to start:

* **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://next.gatsbyjs.org/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process.
* **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.com/docs/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process.

* **To dive straight into code samples head [to our documentation](https://next.gatsbyjs.org/docs/).** In particular, check out the "Guides", API reference, and "Advanced Tutorials" sections in the sidebar.
* **To dive straight into code samples head [to our documentation](https://www.gatsbyjs.com/docs/).** In particular, check out the "Guides", API reference, and "Advanced Tutorials" sections in the sidebar.

## 🏛 Governance

Expand Down
32 changes: 32 additions & 0 deletions content/about/trademark.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: Trademark Policy
description: "Trademark Policy | Node.js"
authors: fhemberger, XhmikosR, mikeal, brianwarner, bf4
category: trademark
---

The Node.js trademarks, service marks, and graphics marks are symbols of the
quality, performance, and ease of use that people have come to associate with
the Node.js software and project. To ensure that the Node.js marks continue to
symbolize these qualities, we must ensure that the marks are only used in ways
that do not mislead people or cause them to confuse Node.js with other software
of lower quality. If we don’t ensure the marks are used in this way, it cannot
only confuse users, it can make it impossible to use the mark to protect
against people who maliciously exploit the mark in the future. The primary goal
of this policy is to make sure that this doesn’t happen to the Node.js mark, so
that the community and users of Node.js are always protected in the future.

At the same time, we’d like community members to feel comfortable spreading the
word about Node.js and participating in the Node.js community. Keeping that
goal in mind, we’ve tried to make the policy as flexible and easy to understand
as legally possible.

The OpenJS Foundation has a perpetual license to use the
[Node.js marks](https://ip-policy.openjsf.org).
For more details on using the Node.js mark, please read the
[full policy](https://trademark-policy.openjsf.org).
If you have any questions don't hesitate to
[email us](mailto:[email protected]).

Guidelines for the visual display of the Node.js mark are described in
the [Visual Guidelines](/static/documents/foundation-visual-guidelines.pdf).
1 change: 1 addition & 0 deletions content/blog/0000-00-00-mock.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: mock
author: [manishprivet]
category: blog
---

This is a mock markdown file to keep blog queries from failing and to keep the blog folder alive.
1 change: 1 addition & 0 deletions content/community/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Node.js Community
description: "Node.js has one of the largest, most vibrant and innovative open source communities in the world. Node.js is built, used, and maintained by the community. We believe the community to be at the core of Node.js popularity. Amazing people from every part of the world, with a common interest, collaborate and shape this community."
authors: ahmadawais, maedahbatool, saqibameen, msaaddev
category: community
---

## Introduction
Expand Down
1 change: 1 addition & 0 deletions content/homepage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ nodeFeature2: Node.js is open source and actively maintained by contributors all
nodeFeature3: Node.js has been adapted to work in a wide variety of places
nodeFeatureAltText: node feature
learnLinkText: Get Started
category: home
---
10 changes: 8 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ module.exports = {
path: `${__dirname}/src/data`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'data',
path: `${__dirname}/content/about`,
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
Expand Down Expand Up @@ -101,8 +108,7 @@ module.exports = {
resolve: 'gatsby-remark-autolink-headers',
options: {
offsetY: '125',
icon:
'<svg aria-hidden="true" height="20" version="1.1" viewBox="0 0 16 16" width="20"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg>',
icon: '<svg aria-hidden="true" height="20" version="1.1" viewBox="0 0 16 16" width="20"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg>',
className: 'autolink-headers',
maintainCase: false,
removeAccents: true,
Expand Down
34 changes: 26 additions & 8 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,16 @@ exports.createPages = ({ graphql, actions }) => {
{
allMarkdownRemark(
filter: {
fields: { slug: { nin: ["", "nodejs-community", "homepage"] } }
fields: {
slug: {
nin: [
""
"nodejs-community"
"homepage"
"trademark-policy"
]
}
}
}
sort: { fields: [fileAbsolutePath], order: ASC }
) {
Expand All @@ -36,6 +45,7 @@ exports.createPages = ({ graphql, actions }) => {
description
authors
section
category
}
fields {
slug
Expand Down Expand Up @@ -73,7 +83,7 @@ exports.createPages = ({ graphql, actions }) => {
edges.forEach(({ node }, index) => {
const {
fields: { slug },
frontmatter: { title, section },
frontmatter: { title, section, category },
parent: { relativePath },
} = node;

Expand All @@ -98,20 +108,27 @@ exports.createPages = ({ graphql, actions }) => {

let data;
if (!navigationData[section]) {
data = { title, slug, section };
navigationData = { ...navigationData, [section]: [data] };
data = { title, slug, section, category };
navigationData = {
...navigationData,
[section]: { data: [data], category },
};
} else {
data = { title, slug, section };
data = { title, slug, section, category };
navigationData = {
...navigationData,
[section]: [...navigationData[section], data],
[section]: {
data: [...navigationData[section].data, data],
category: navigationData[section].category,
},
};
}
docPages.push({
slug,
next: nextNodeData,
previous: previousNodeData,
relativePath,
category,
});
});

Expand All @@ -122,15 +139,16 @@ exports.createPages = ({ graphql, actions }) => {
previous: page.previous,
relativePath: page.relativePath,
navigationData,
category: page.category,
};

if (page.slug.includes('/blog/')) {
if (page.category === 'blog') {
createPage({
path: page.slug,
component: blogTemplate,
context,
});
} else {
} else if (page.category === 'learn') {
createPage({
path: `/learn/${page.slug}`,
component: docTemplate,
Expand Down
Loading