Skip to content

Commit 4018413

Browse files
committed
Updated core files for gatsby-theme-aio 4.6.2
1 parent 03b5be9 commit 4018413

20 files changed

+21917
-50202
lines changed

.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
REPO_GITHUB_TOKEN=
22
REPO_OWNER=AdobeDocs
3-
REPO_NAME=dev-site-documentation-template
3+
REPO_NAME=commerce-services
44
REPO_BRANCH=main
File renamed without changes.

.github/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The following are a set of guidelines to follow when contributing to this projec
66

77
## Code Of Conduct
88

9-
This project adheres to the Adobe [code of conduct](../CODE_OF_CONDUCT.md). By participating,
9+
This project adheres to the Adobe [code of conduct](CODE_OF_CONDUCT.md). By participating,
1010
you are expected to uphold this code. Please report unacceptable behavior to
1111
1212

.github/PULL_REQUEST_TEMPLATE.md

+27-14
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,45 @@
1-
## Purpose of this pull request
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
## Description
24

35
<!--- Describe your changes in detail -->
46

5-
This pull request (PR) ...
7+
## Related Issue
8+
9+
<!--- This project only accepts pull requests related to open issues -->
10+
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
11+
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
12+
<!--- Please link to the issue here: -->
13+
14+
## Motivation and Context
615

7-
## Affected pages
16+
<!--- Why is this change required? What problem does it solve? -->
817

9-
<!-- REQUIRED List the pages/URLs on the [Adobe devsite](https://developer.adobe.com/. Not needed for large numbers of files. -->
18+
## How Has This Been Tested?
1019

11-
- ...
20+
<!--- Please describe in detail how you tested your changes. -->
21+
<!--- Include details of your testing environment, and the tests you ran to -->
22+
<!--- see how your change affects other areas of the code, etc. -->
1223

13-
## Links to related PRs or Jira tickets
24+
## Screenshots (if appropriate):
1425

15-
<!-- OPTIONAL - REMOVE THIS SECTION IF NOT USED. Add links to PRs/tickets that required documentation updates -->
26+
## Types of changes
1627

17-
- ...
28+
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
1829

19-
<!--
20-
If you are fixing a GitHub issue, note it using GitHub keyword format (https://help.github.com/en/articles/closing-issues-using-keywords#closing-an-issue-in-a-different-repository) to close the issue when this pull request is merged. Example: `Fixes #1234`
21-
`beta` is the default branch. Merged pull requests to `main` go live on the site automatically.
22-
See Contribution guidelines (https://github.com/magento/devdocs/blob/master/.github/CONTRIBUTING.md) for more information.
23-
-->
30+
- [ ] Bug fix (non-breaking change which fixes an issue)
31+
- [ ] New feature (non-breaking change which adds functionality)
32+
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
2433

2534
## Checklist:
2635

2736
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
37+
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
2838

2939
- [ ] I have signed the [Adobe Open Source CLA](https://opensource.adobe.com/cla.html).
30-
- [ ] My changes follow the code style of this project.
40+
- [ ] My code follows the code style of this project.
41+
- [ ] My change requires a change to the documentation.
42+
- [ ] I have updated the documentation accordingly.
3143
- [ ] I have read the **CONTRIBUTING** document.
44+
- [ ] I have added tests to cover my changes.
3245
- [ ] All new and existing tests passed.

.github/dependabot.yml

-16
This file was deleted.

.github/linters/.yaml-lint.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
###########################################
3+
# These are the rules used for #
4+
# linting all the yaml files in the stack #
5+
# NOTE: #
6+
# You can disable line with: #
7+
# # yamllint disable-line #
8+
###########################################
9+
rules:
10+
braces:
11+
level: warning
12+
min-spaces-inside: 0
13+
max-spaces-inside: 0
14+
min-spaces-inside-empty: 1
15+
max-spaces-inside-empty: 5
16+
brackets:
17+
level: warning
18+
min-spaces-inside: 0
19+
max-spaces-inside: 0
20+
min-spaces-inside-empty: 1
21+
max-spaces-inside-empty: 5
22+
colons:
23+
level: warning
24+
max-spaces-before: 0
25+
max-spaces-after: 1
26+
commas:
27+
level: warning
28+
max-spaces-before: 0
29+
min-spaces-after: 1
30+
max-spaces-after: 1
31+
comments: disable
32+
comments-indentation: disable
33+
document-end: disable
34+
document-start:
35+
level: warning
36+
present: true
37+
empty-lines:
38+
level: warning
39+
max: 2
40+
max-start: 0
41+
max-end: 0
42+
hyphens:
43+
level: warning
44+
max-spaces-after: 1
45+
indentation:
46+
level: warning
47+
spaces: consistent
48+
indent-sequences: true
49+
check-multi-line-strings: false
50+
key-duplicates: enable
51+
line-length:
52+
level: warning
53+
max: 200
54+
allow-non-breakable-words: true
55+
allow-non-breakable-inline-mappings: true
56+
new-line-at-end-of-file: disable
57+
new-lines:
58+
type: unix
59+
trailing-spaces: disable

.github/scripts/get-path-prefix.js

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// This script retrieves the pathPrefix from the gatsby-config.js file.
2+
// It serves as an example for how to set up external javascript functions
3+
// outside workflow .yml files when they get too big or complex to keep them inline.
4+
5+
// Documentation for the actions/github-script:
6+
// https://github.com/actions/github-script#run-a-separate-file
7+
8+
module.exports = async ({ core }) => {
9+
const { pathPrefix } = await require('../../gatsby-config.js');
10+
11+
if (!pathPrefix) {
12+
core.setFailed(
13+
`The pathPrefix in the site's gatsby-config.js file is missing.
14+
15+
To fix this, open your gatsby-config.js file, and add it to the config object:
16+
17+
module.exports = {
18+
pathPrefix: "/commerce/frontend-core/",
19+
...
20+
}`
21+
);
22+
} else if (pathPrefix === '/') {
23+
core.setFailed(
24+
`The pathPrefix in the site's gatsby-config.js file is set to "/". This is not allowed.
25+
26+
To fix this, change the pathPrefix to include a name that starts and ends with "/":
27+
28+
pathPrefix: "/commerce/frontend - core/"
29+
30+
This name identifies the site within the developer.adobe.com domain:
31+
https://developer.adobe.com/document-services/<PATH_TO_FILES>.
32+
`
33+
);
34+
} else {
35+
if (!pathPrefix.startsWith('/') || !pathPrefix.endsWith('/')) {
36+
core.setFailed(
37+
`The pathPrefix in the site's gatsby-config.js file does not start or end with "/".
38+
39+
To fix this, change the pathPrefix to include a name that starts and ends with "/".
40+
For example: "/document-services/" or "/commerce/cloud-tools/".
41+
42+
This is required by convention because of the way we construct site URLs.
43+
For example: https://developer.adobe.com + /document-services/ + path/to/files/.
44+
`
45+
);
46+
}
47+
}
48+
core.setOutput('path_prefix', pathPrefix);
49+
};

0 commit comments

Comments
 (0)