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

Commit 62109b7

Browse files
authored
Merge branch 'master' into patch-2
2 parents 32e02ce + 6bf8be8 commit 62109b7

File tree

234 files changed

+103421
-1211
lines changed

Some content is hidden

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

234 files changed

+103421
-1211
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
######################
33
/*.db
44
.DS_Store
5+
.vscode
56

67
# Config and output files #
78
###########################
@@ -10,6 +11,7 @@
1011

1112
_config.local.yml
1213
.jekyll-metadata
14+
.whatsup.yml
1315

1416
*.bat
1517
/tmp/
@@ -30,4 +32,4 @@ _algolia_api_key
3032
# Docs from different branches #
3133
###################################
3234

33-
/guides/v2.0/
35+
/guides/v2.0/

Docfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ content_map:
1212
-
1313
directory: mftf
1414
repository: magento/magento2-functional-testing-framework
15-
branch: develop
15+
branch: master
1616
filter: true
1717
-
1818
directory: page-builder

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ source 'https://rubygems.org'
44

55
gem 'devdocs', git: 'https://github.com/magento-devdocs/devdocs-theme.git'
66
gem 'jekyll'
7+
gem 'whatsup_github'
78

89
gem 'wdm', platform: :mswin
910

Gemfile.lock

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GIT
22
remote: https://github.com/magento-devdocs/devdocs-theme.git
3-
revision: 1c3ec18c2d5b404e5407b50d4f844ac2d0712e30
3+
revision: 450a470aa4b937400190d009131fa91cf27d7a9d
44
specs:
55
devdocs (0.0.1)
66
jekyll (>= 3.3)
@@ -31,6 +31,8 @@ GEM
3131
ffi (>= 1.3.0)
3232
eventmachine (1.2.7)
3333
exifr (1.3.6)
34+
faraday (0.15.4)
35+
multipart-post (>= 1.2, < 3)
3436
ffi (1.10.0)
3537
filesize (0.2.0)
3638
forwardable-extended (2.6.0)
@@ -107,8 +109,12 @@ GEM
107109
mercenary (0.3.6)
108110
mini_portile2 (2.3.0)
109111
minitest (5.11.3)
112+
multipart-post (2.1.1)
113+
netrc (0.11.0)
110114
nokogiri (1.8.5)
111115
mini_portile2 (~> 2.3.0)
116+
octokit (4.14.0)
117+
sawyer (~> 0.8.0, >= 0.5.3)
112118
parallel (1.17.0)
113119
pathutil (0.16.2)
114120
forwardable-extended (~> 2.6)
@@ -126,16 +132,26 @@ GEM
126132
sass-listen (4.0.0)
127133
rb-fsevent (~> 0.9, >= 0.9.4)
128134
rb-inotify (~> 0.9, >= 0.9.7)
135+
sawyer (0.8.2)
136+
addressable (>= 2.3.5)
137+
faraday (> 0.8, < 2.0)
138+
thor (0.20.3)
129139
thread_safe (0.3.6)
130140
typhoeus (1.3.1)
131141
ethon (>= 0.9.0)
132142
tzinfo (1.2.5)
133143
thread_safe (~> 0.1)
134144
verbal_expressions (0.1.5)
145+
wdm (0.1.1)
146+
whatsup_github (0.0.1)
147+
netrc (~> 0.10)
148+
octokit (~> 4.14)
149+
thor (~> 0.20)
135150
yell (2.1.0)
136151

137152
PLATFORMS
138153
ruby
154+
x86-mswin32
139155

140156
DEPENDENCIES
141157
devdocs!
@@ -151,6 +167,7 @@ DEPENDENCIES
151167
jekyll-titles-from-headings
152168
launchy
153169
wdm
170+
whatsup_github
154171

155172
BUNDLED WITH
156173
1.17.3

Rakefile

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,11 @@ end
6161
desc 'Pull docs from external repositories'
6262
task init: %w[multirepo:init]
6363

64-
desc 'Optimize images in modified files, or by path (rake image_optim path=path/to/dir/or/file).'
65-
task :image_optim do
66-
path = ENV['path']
67-
unless path
68-
staged_files = `git ls-files --modified --others --exclude-standard`.split("\n")
69-
# staged_md_files = staged_files.select { |file| File.extname(file) == '.md' }
70-
abort 'Didn\'t find any modified files.'.blue if staged_files.empty?
71-
path = staged_files.join(' ')
72-
end
73-
system "bin/image_optim --no-pngout --no-svgo --recursive #{path}"
64+
desc 'Run checks (image optimization).'
65+
task check: %w[check:image_optim]
66+
67+
desc 'Generate data for the weekly digest.'
68+
task :whatsnew do
69+
print 'Generating data for the weekly digest: $ '.magenta
70+
sh 'whatsup_github'
7471
end

_config.index.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Jekyll Algolia settings for indexing https://community.algolia.com/jekyll-algolia/options.html
2+
algolia:
3+
files_to_exclude:
4+
- guides/m1x/**/*.html
5+
- guides/m1x/**/*.md
6+
- swagger
7+
- redoc
8+
# Index HTML elements, especially code samples.
9+
nodes_to_index: 'p,li,td,code'
10+
# Override 10KB default and use our allowed max of 20KB
11+
max_record_size: 20000
12+
settings:
13+
attributesForFaceting:
14+
- searchable(functional_areas)
15+
- searchable(guide_version)
16+
- searchable(versionless)
17+
18+
# Disable the code blocks line numbers at indexing stage
19+
kramdown:
20+
syntax_highlighter_opts:
21+
span:
22+
line_numbers: false
23+
block:
24+
line_numbers: false

_config.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ defaults:
7474
path: mftf/docs
7575
values:
7676
group: mftf
77-
github_files: https://github.com/magento/magento2-functional-testing-framework/blob/develop/
77+
github_files: https://github.com/magento/magento2-functional-testing-framework/blob/master/
7878
github_repo: https://github.com/magento/magento2-functional-testing-framework/
7979
functional_areas:
8080
- Test
@@ -178,15 +178,6 @@ algolia:
178178
application_id: E642SEDTHL
179179
index_name: devdocs
180180
api_key: d2d0f33ab73e291ef8d88d8b565e754c
181-
files_to_exclude:
182-
- guides/m1x/**/*.html
183-
- guides/m1x/**/*.md
184-
- swagger
185-
- redoc
186-
# Index HTML elements, especially code samples.
187-
nodes_to_index: 'p,li,td,code'
188-
# Override 10KB default and use our allowed max of 20KB
189-
max_record_size: 20000
190181

191182
google:
192183
analytics: UA-66243208-1

0 commit comments

Comments
 (0)