File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed
Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 88
99 steps :
1010 - uses : actions/checkout@v4
11+ - uses : actions/setup-node@v4
12+ with :
13+ node-version : 22.x
1114 - uses : ruby/setup-ruby@v1
1215 with :
1316 ruby-version : 2.7
Original file line number Diff line number Diff line change 1717
1818 steps :
1919 - uses : actions/checkout@v4
20+ - uses : actions/setup-node@v4
21+ with :
22+ node-version : 22.x
2023 - uses : ruby/setup-ruby@v1
2124 with :
2225 ruby-version : 2.7
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const LATEST_ALIAS_URI = '/latest/';
4040function pathToURI ( filePath , rootPath ) {
4141 return filePath
4242 . replace ( new RegExp ( '^' + rootPath ) , '' )
43- . replace ( / \\ .m d $ / , '.html' ) ;
43+ . replace ( / \. m d $ / , '.html' ) ;
4444}
4545
4646function pagesFromRedirects ( redirects , languages ) {
@@ -88,7 +88,6 @@ function main () {
8888 // add entries for all Markdown files in the site root
8989 const allMarkdownFiles = path . join ( siteRootPath , '**/*.md' ) ;
9090 fs . glob ( allMarkdownFiles , function ( error , filePaths ) {
91- console . log ( filePaths ) ;
9291 if ( error ) throw error ;
9392
9493 for ( let i = 0 ; i < filePaths . length ; i ++ ) {
Original file line number Diff line number Diff line change 1818{% assign MY_ENTRY = page.url | replace: VERSION_ROOT,"" %}
1919{% assign my_entry_parts = MY_ENTRY | split: "/" %}
2020
21+ {% assign page_url = "/" | append: page.path | replace: ".md", ".html" %}
22+
2123{% comment %}
2224PATH_TO_ROOT: path from here to version root, replacing all parts except the last one with '../'
2325NOTE:
152154 layouts change from version to version
153155 {% endcomment %}
154156 {% 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 %}
156158
157159 {% unless ALL_PAGES contains other_version_url %}
158160 {% assign other_version_url = other_version_root %}
177179 Get URL for this page in the latest version
178180 {% endcomment %}
179181 {% 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 %}
181183
182184 {% comment %}
183185 If this page doesn't exist, just use root
You can’t perform that action at this time.
0 commit comments