Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit dca499b

Browse files
authored
Merge branch 'master' into Update-composer.json
2 parents 974a7cd + 2ca3505 commit dca499b

File tree

78 files changed

+1315
-677
lines changed

Some content is hidden

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

78 files changed

+1315
-677
lines changed

.github/CONTRIBUTING.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ If you write and contribute a full topic, we will add your name (or your company
2424
1. [Fork](https://help.github.com/articles/fork-a-repo/) the [DevDocs repository](https://github.com/magento/devdocs). Remember to [sync your fork](https://help.github.com/articles/syncing-a-fork/) and update branches as needed.
2525
1. Review the [DevDocs guidelines](#contribution-guidelines).
2626

27+
**Note:** If you use a fork instead of a branch, please set permissions to allow maintainers to edit and update the PR. See [Allowing changes to a pull request branch created from a fork](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork) in the _GitHub documentation_.
28+
2729
## Contribute documentation
2830

2931
The following diagram shows the contribution workflow:
@@ -72,6 +74,8 @@ The following guidelines may answer most of your questions and help you get star
7274
- Review your work for basic typos, formatting errors, or ambiguous sentences before opening a pull request.
7375
- Revise pull requests according to review feedback. We will close pull requests that require an inordinate amount of time to review and process (especially for minor changes) if you fail to make revisions according to review feedback.
7476
- Do not directly contact DevDocs team members or maintainers on Slack to review your pull request unless it has been open for more than five days. We have a process and queue for pull requests that everyone must follow.
77+
- Get recognized on the DevDocs web site for writing new topics! Add your name and a link to your company website or GitHub profile to the file metadata so that we can display it on the page. See [Edit metadata](#edit-metadata).
78+
- We no longer recognize individual community members who contribute features to the Magento 2 codebase in the corresponding feature topic(s) on the DevDocs website. Magento recognizes these contributions in more appropriate channels (for example, the [Magento DevBlog](https://community.magento.com/t5/Magento-DevBlog/bg-p/devblog)).
7579

7680
## Tips for writing content
7781

@@ -108,8 +112,10 @@ The Markdown (.md) file's metadata is a set of YAML key-value pairs. The metadat
108112
```yaml
109113

110114
---
111-
group: install2
112-
title: Continue with your installation
115+
group:
116+
title:
117+
contributor_name:
118+
contributor_link:
113119
---
114120
```
115121

@@ -119,6 +125,8 @@ title: Continue with your installation
119125
| ------------- | ---------- |
120126
| `group` | Defines the topic's guide or section. Use the table of contents `.yml` file name. This loads your left-side navigation. We will help during the PR process to add new files to the `.yml` file. |
121127
| `title` | Sets the title of the page in the HTML metadata and the main title on the page. |
128+
| `contributor_name` | Sets the name of the contributor who wrote the topic and displays it on the page. |
129+
| `contributor_link` | Creates a link to the contributor's GitHub profile or company website. |
122130

123131
## Report an issue
124132

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
.DS_Store
55
.vscode
66
.history
7+
/.idea
78

89
# Config and output files #
910
###########################

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
GIT
22
remote: https://github.com/magento-devdocs/devdocs-theme.git
3-
revision: 13b0d9620c175368e9fcf4cb6bfa66afa569a54d
3+
revision: c96131acc7a0ed03629ab3401c8a64d819e7e610
44
specs:
5-
devdocs (10)
5+
devdocs (12)
66
jekyll (>= 4.0)
77

88
GEM
@@ -96,7 +96,7 @@ GEM
9696
jekyll-watch (2.2.1)
9797
listen (~> 3.0)
9898
json (2.3.0)
99-
kramdown (2.2.1)
99+
kramdown (2.3.0)
100100
rexml
101101
kramdown-parser-gfm (1.1.0)
102102
kramdown (~> 2.0)
@@ -153,7 +153,7 @@ GEM
153153
unicode-display_width (1.7.0)
154154
verbal_expressions (0.1.5)
155155
wdm (0.1.1)
156-
whatsup_github (0.3.0)
156+
whatsup_github (0.3.1)
157157
netrc (~> 0.10)
158158
octokit (~> 4.14)
159159
thor (~> 0.20)

_config.yml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ description: Magento 2 Developer Documentation.
99
# the base protocol and domain
1010
url: https://devdocs.magento.com
1111

12-
# Site theme. https://jekyllrb.com/docs/themes/
12+
# Site theme: https://github.com/magento-devdocs/devdocs-theme
13+
# About themes in Jekyll: https://jekyllrb.com/docs/themes/
1314
theme: devdocs
1415

15-
# Base url that forms
16+
# A part of URL to be inserted between site.url and page.url
1617
baseurl: ""
1718

1819
source: src
@@ -52,6 +53,18 @@ defaults:
5253
github_link: true
5354
# Enables the 'Give us feedback' appearances on pages
5455
feedback_link: true
56+
57+
-
58+
scope:
59+
path: guides/v2.3
60+
values:
61+
guide_version: '2.3'
62+
63+
-
64+
scope:
65+
path: guides/v2.4
66+
values:
67+
guide_version: '2.4'
5568

5669
-
5770
scope:
@@ -132,11 +145,11 @@ defaults:
132145
# This list doesn't include custom plugins.
133146
#
134147
plugins:
135-
- jekyll-sitemap
136-
- jekyll-redirect-from
137-
- jekyll-titles-from-headings
138148
- jekyll-optional-front-matter
149+
- jekyll-redirect-from
139150
- jekyll-relative-links
151+
- jekyll-sitemap
152+
- jekyll-titles-from-headings
140153

141154
optional_front_matter:
142155
remove_originals: true
@@ -145,19 +158,16 @@ optional_front_matter:
145158
# Exclude all .md directories and files except page-builder/ to prevent painfully long build times.
146159

147160
relative_links:
161+
enabled: true
162+
collections: false
148163
exclude:
149-
- _includes
150-
- _videos
164+
- 404.md
151165
- codelinks
152166
- community
153167
- extensions
154168
- guides
155169
- redoc
156170
- release
157-
- 404.md
158-
- availability.md
159-
- magento-techbull.md
160-
- magento-third-party.md
161171
- search
162172
- system-requirements.md
163173
- whats-new.md
@@ -199,16 +209,11 @@ check_links: true
199209
# Variables #
200210
#############
201211
#
202-
# Magento 2 repository variable
212+
# Magento 2 repository
203213
mage2bloburl: https://github.com/magento/magento2/blob
204214

205215
# Current version
206216
gdeurl: /guides/v2.4
207-
githuburl: https://github.com/magento/devdocs/tree/master/src/guides/v2.4
208-
209-
# 2.3 variables
210-
gdeurl23: /guides/v2.3/
211-
githuburl23: https://github.com/magento/devdocs/tree/master/src/guides/v2.3/
212217

213218
# Path to S3 location where we store large downloadable binary files, such as .ai, .psd, .zip, .pdf, .sketch
214219
downloads: https://devdocs.magento.com/download

_plugins/page-params/page-baseurl-generator.rb

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,19 @@
66
# This custom plugin dynamically sets and injects the page.baseurl variable
77
# based on the page's destination.
88
#
9-
# The hook introduces the page.baseurl and
10-
# page.guide_version data parameters for each page.
9+
# The hook introduces the page.baseurl parameter for each page.
1110
# For pages at guides/v2.x the page.baseurl parameter is set
1211
# as "{site.baseurl}/guides/v#{version}".
1312
# The {version} is taken from the 'guide_version' front matter parameter on the page;
14-
# if it is not set, then the 'guide_version' is set to version from the page path (for example, "2.2" in the "guides/v2.2/**/*.md");
15-
# if the path doesn't contain "guides/v2.x", then the version is unset and returns the nil object (same as null)
13+
# if it is not set, then the 'guide_version' is set to version from the _config.yml depending on a scope by path (for example, "2.4" at the "guides/v2.4/");
14+
# otherwise, the version is unset and returns the nil object (same as null).
1615
Jekyll::Hooks.register :pages, :post_init do |page|
1716
# Glossary. Create and assign variables to be used in the script.
18-
pattern = %r{\Aguides/v(?<version_from_path>2\.\d)}
1917
baseurl = page.site.baseurl
20-
path = page.path
2118
data = page.data
2219
version = data['guide_version']
2320

24-
# Process 'page.guide_version' pararmeter
25-
if version.nil? && path.start_with?('guides')
26-
pattern.match(path)
27-
version = Regexp.last_match(:version_from_path)
28-
data['guide_version'] = version
29-
end
30-
31-
# Process 'page.baseurl' parameter
21+
# Create 'page.baseurl' parameter
3222
data['baseurl'] =
3323
if version
3424
"#{baseurl}/guides/v#{version}"

src/_data/codebase/cloud/cloud-error-messages.yml

Lines changed: 0 additions & 88 deletions
This file was deleted.

src/_data/toc/cloud-guide.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,8 @@ pages:
511511
url: /cloud/live/stage-prod-test.html
512512
versionless: true
513513

514-
- label: Error log message reference
515-
url: /cloud/reference/error-codes.html
514+
- label: Error message reference for ece-tools
515+
url: /cloud/reference/ece-tools-error-reference.html
516516
versionless: true
517517

518518
- label: Site launch

src/_data/toc/contributor-guide.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ pages:
2020
url: https://github.com/magento/devdocs/blob/master/.github/CONTRIBUTING.md
2121
versionless: true
2222

23-
- label: Suggested topics for contribution
24-
url: /contributor-guide/contributing_docs_suggested.html
25-
versionless: true
26-
2723
- label: Templates
2824
children:
2925
- label: Basic template

src/_data/toc/marketplace-api.yml

Lines changed: 47 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,60 @@ pages:
55
url: /marketplace/eqp/v1/api.html
66
versionless: true
77

8-
- label: Authentication
9-
url: /marketplace/eqp/v1/auth.html
8+
- label: Getting started
9+
url: /marketplace/eqp/v1/getting-started.html
1010
versionless: true
11+
children:
12+
13+
- label: Sandbox
14+
url: /marketplace/eqp/v1/sandbox.html
15+
versionless: true
1116

12-
- label: Users
13-
url: /marketplace/eqp/v1/users.html
14-
versionless: true
17+
- label: API access keys
18+
url: /marketplace/eqp/v1/access-keys.html
19+
versionless: true
1520

16-
- label: Files
17-
url: /marketplace/eqp/v1/files.html
21+
- label: REST API
22+
url: /marketplace/eqp/v1/rest-api.html
1823
versionless: true
24+
children:
1925

20-
- label: Packages
21-
url: /marketplace/eqp/v1/packages.html
22-
versionless: true
26+
- label: Authentication
27+
url: /marketplace/eqp/v1/auth.html
28+
versionless: true
2329

24-
- label: Test results
25-
url: /marketplace/eqp/v1/test-results.html
26-
versionless: true
30+
- label: Users
31+
url: /marketplace/eqp/v1/users.html
32+
versionless: true
2733

28-
- label: Reports
29-
url: /marketplace/eqp/v1/reports.html
30-
versionless: true
34+
- label: Files
35+
url: /marketplace/eqp/v1/files.html
36+
versionless: true
3137

32-
- label: Filtering
33-
url: /marketplace/eqp/v1/filtering.html
34-
versionless: true
38+
- label: Packages
39+
url: /marketplace/eqp/v1/packages.html
40+
versionless: true
41+
42+
- label: Test results
43+
url: /marketplace/eqp/v1/test-results.html
44+
versionless: true
45+
46+
- label: Reports
47+
url: /marketplace/eqp/v1/reports.html
48+
versionless: true
49+
50+
- label: API callbacks
51+
url: /marketplace/eqp/v1/callbacks.html
52+
versionless: true
53+
54+
- label: Filtering
55+
url: /marketplace/eqp/v1/filtering.html
56+
versionless: true
57+
58+
- label: Handling errors
59+
url: /marketplace/eqp/v1/handling-errors.html
60+
versionless: true
3561

36-
- label: API callbacks
37-
url: /marketplace/eqp/v1/callbacks.html
62+
- label: Getting help
63+
url: /marketplace/eqp/v1/help.html
3864
versionless: true

0 commit comments

Comments
 (0)