File tree 4 files changed +11
-4
lines changed
4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
steps :
10
10
- uses : actions/checkout@v4
11
+ - uses : actions/setup-node@v4
12
+ with :
13
+ node-version : 22.x
11
14
- uses : ruby/setup-ruby@v1
12
15
with :
13
16
ruby-version : 2.7
Original file line number Diff line number Diff line change 17
17
18
18
steps :
19
19
- uses : actions/checkout@v4
20
+ - uses : actions/setup-node@v4
21
+ with :
22
+ node-version : 22.x
20
23
- uses : ruby/setup-ruby@v1
21
24
with :
22
25
ruby-version : 2.7
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const LATEST_ALIAS_URI = '/latest/';
40
40
function pathToURI ( filePath , rootPath ) {
41
41
return filePath
42
42
. replace ( new RegExp ( '^' + rootPath ) , '' )
43
- . replace ( / \\ .m d $ / , '.html' ) ;
43
+ . replace ( / \. m d $ / , '.html' ) ;
44
44
}
45
45
46
46
function pagesFromRedirects ( redirects , languages ) {
@@ -88,7 +88,6 @@ function main () {
88
88
// add entries for all Markdown files in the site root
89
89
const allMarkdownFiles = path . join ( siteRootPath , '**/*.md' ) ;
90
90
fs . glob ( allMarkdownFiles , function ( error , filePaths ) {
91
- console . log ( filePaths ) ;
92
91
if ( error ) throw error ;
93
92
94
93
for ( let i = 0 ; i < filePaths . length ; i ++ ) {
Original file line number Diff line number Diff line change 18
18
{% assign MY_ENTRY = page.url | replace: VERSION_ROOT,"" %}
19
19
{% assign my_entry_parts = MY_ENTRY | split: "/" %}
20
20
21
+ {% assign page_url = "/" | append: page.path | replace: ".md", ".html" %}
22
+
21
23
{% comment %}
22
24
PATH_TO_ROOT: path from here to version root, replacing all parts except the last one with '../'
23
25
NOTE:
152
154
layouts change from version to version
153
155
{% endcomment %}
154
156
{% capture other_version_root %}/docs/{{ page.language }}/{{ other_version_string }}/{% endcapture %}
155
- {% assign other_version_url = page.url | replace:VERSION_ROOT,other_version_root %}
157
+ {% assign other_version_url = page_url | replace:VERSION_ROOT,other_version_root %}
156
158
157
159
{% unless ALL_PAGES contains other_version_url %}
158
160
{% assign other_version_url = other_version_root %}
177
179
Get URL for this page in the latest version
178
180
{% endcomment %}
179
181
{% capture latest_root %}/docs/{{ page.language }}/latest/{% endcapture %}
180
- {% assign latest_url = page.url | replace:VERSION_ROOT,latest_root %}
182
+ {% assign latest_url = page_url | replace:VERSION_ROOT,latest_root %}
181
183
182
184
{% comment %}
183
185
If this page doesn't exist, just use root
You can’t perform that action at this time.
0 commit comments