Skip to content

🗂 Add site option to include folder structure in url paths #3109

🗂 Add site option to include folder structure in url paths

🗂 Add site option to include folder structure in url paths #3109

Triggered via pull request October 24, 2024 17:42
Status Failure
Total duration 2m 51s
Artifacts

ci.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 11 warnings
tests/endToEnd.spec.ts > End-to-end cli export tests > URL folder structure: packages/mystmd/tests/endToEnd.spec.ts#L52
AssertionError: expected { version: '1', records: [ …(16) ] } to match object { version: '1', records: [ …(16) ] } - Expected + Received Object { "records": Array [ Object { "hierarchy": Object { "lvl1": "Page in folder with dots", }, "position": 0, "type": "lvl1", "url": "/one-folder/page", }, Object { "content": "", "hierarchy": Object { "lvl1": "Page in folder with dots", }, "position": 1, "type": "content", "url": "/one-folder/page", }, Object { "hierarchy": Object { "lvl1": "Filename with dots", }, "position": 0, "type": "lvl1", "url": "/one-with-dots", }, Object { "content": "", "hierarchy": Object { "lvl1": "Filename with dots", }, "position": 1, "type": "content", "url": "/one-with-dots", }, Object { "hierarchy": Object { "lvl1": "Readme", }, "position": 0, "type": "lvl1", "url": "/", }, Object { "content": "xref to subfolder explicit xref to subfolder", "hierarchy": Object { "lvl1": "Readme", }, "position": 1, "type": "content", "url": "/", }, Object { "hierarchy": Object { "lvl1": "Two", }, "position": 0, "type": "lvl1", "url": "/two", }, Object { "content": "", "hierarchy": Object { "lvl1": "Two", }, "position": 1, "type": "content", "url": "/two", }, Object { "hierarchy": Object { "lvl1": "Page A in subfolder", }, "position": 0, "type": "lvl1", "url": "/two/a", }, Object { "content": "", "hierarchy": Object { "lvl1": "Page A in subfolder", }, "position": 1, "type": "content", "url": "/two/a", }, Object { "hierarchy": Object { "lvl1": "Index in subfolder", }, "position": 0, "type": "lvl1", - "url": "/two-1/index", + "url": "/two-1", }, Object { "content": "", "hierarchy": Object { "lvl1": "Index in subfolder", }, "position": 1, "type": "content", - "url": "/two-1/index", + "url": "/two-1", }, Object { "hierarchy": Object { "lvl1": "Page in subfolder", }, "position": 0, "type": "lvl1", "url": "/two/page", }, Object { "content": "Hello from this page!", "hierarchy": Object { "lvl1": "Page in subfolder", }, "position": 1, "type": "content", "url": "/two/page", }, Object { "hierarchy": Object { "lvl1": "Page in subfolder", "lvl2": "See this", }, "position": 2, "type": "lvl2", "url": "/two/page#my-thing", }, Object { "content": "🦆", "hierarchy": Object { "lvl1": "Page in subfolder", "lvl2": "See this", }, "position": 3, "type": "content", "url": "/two/page#my-thing", }, ], "version": "1", } ❯ tests/endToEnd.spec.ts:52:11 ❯ tests/endToEnd.spec.ts:47:13
Testing on node 20
Process completed with exit code 1.
Testing on node 22.4.x
The job was canceled because "_20" failed.
tests/endToEnd.spec.ts > End-to-end cli export tests > URL folder structure: packages/mystmd/tests/endToEnd.spec.ts#L52
AssertionError: expected { version: '1', records: [ …(16) ] } to match object { version: '1', records: [ …(16) ] } - Expected + Received Object { "records": Array [ Object { "hierarchy": Object { "lvl1": "Page in folder with dots", }, "position": 0, "type": "lvl1", "url": "/one-folder/page", }, Object { "content": "", "hierarchy": Object { "lvl1": "Page in folder with dots", }, "position": 1, "type": "content", "url": "/one-folder/page", }, Object { "hierarchy": Object { "lvl1": "Filename with dots", }, "position": 0, "type": "lvl1", "url": "/one-with-dots", }, Object { "content": "", "hierarchy": Object { "lvl1": "Filename with dots", }, "position": 1, "type": "content", "url": "/one-with-dots", }, Object { "hierarchy": Object { "lvl1": "Readme", }, "position": 0, "type": "lvl1", "url": "/", }, Object { "content": "xref to subfolder explicit xref to subfolder", "hierarchy": Object { "lvl1": "Readme", }, "position": 1, "type": "content", "url": "/", }, Object { "hierarchy": Object { "lvl1": "Two", }, "position": 0, "type": "lvl1", "url": "/two", }, Object { "content": "", "hierarchy": Object { "lvl1": "Two", }, "position": 1, "type": "content", "url": "/two", }, Object { "hierarchy": Object { "lvl1": "Page A in subfolder", }, "position": 0, "type": "lvl1", "url": "/two/a", }, Object { "content": "", "hierarchy": Object { "lvl1": "Page A in subfolder", }, "position": 1, "type": "content", "url": "/two/a", }, Object { "hierarchy": Object { "lvl1": "Index in subfolder", }, "position": 0, "type": "lvl1", - "url": "/two-1/index", + "url": "/two-1", }, Object { "content": "", "hierarchy": Object { "lvl1": "Index in subfolder", }, "position": 1, "type": "content", - "url": "/two-1/index", + "url": "/two-1", }, Object { "hierarchy": Object { "lvl1": "Page in subfolder", }, "position": 0, "type": "lvl1", "url": "/two/page", }, Object { "content": "Hello from this page!", "hierarchy": Object { "lvl1": "Page in subfolder", }, "position": 1, "type": "content", "url": "/two/page", }, Object { "hierarchy": Object { "lvl1": "Page in subfolder", "lvl2": "See this", }, "position": 2, "type": "lvl2", "url": "/two/page#my-thing", }, Object { "content": "🦆", "hierarchy": Object { "lvl1": "Page in subfolder", "lvl2": "See this", }, "position": 3, "type": "content", "url": "/two/page#my-thing", }, ], "version": "1", } ❯ tests/endToEnd.spec.ts:52:11 ❯ tests/endToEnd.spec.ts:47:13
Testing on node 22.4.x
Process completed with exit code 1.
Testing on node 18
The job was canceled because "_20" failed.
tests/endToEnd.spec.ts > End-to-end cli export tests > URL folder structure: packages/mystmd/tests/endToEnd.spec.ts#L52
AssertionError: expected { version: '1', records: [ …(16) ] } to match object { version: '1', records: [ …(16) ] } - Expected + Received Object { "records": Array [ Object { "hierarchy": Object { "lvl1": "Page in folder with dots", }, "position": 0, "type": "lvl1", "url": "/one-folder/page", }, Object { "content": "", "hierarchy": Object { "lvl1": "Page in folder with dots", }, "position": 1, "type": "content", "url": "/one-folder/page", }, Object { "hierarchy": Object { "lvl1": "Filename with dots", }, "position": 0, "type": "lvl1", "url": "/one-with-dots", }, Object { "content": "", "hierarchy": Object { "lvl1": "Filename with dots", }, "position": 1, "type": "content", "url": "/one-with-dots", }, Object { "hierarchy": Object { "lvl1": "Readme", }, "position": 0, "type": "lvl1", "url": "/", }, Object { "content": "xref to subfolder explicit xref to subfolder", "hierarchy": Object { "lvl1": "Readme", }, "position": 1, "type": "content", "url": "/", }, Object { "hierarchy": Object { "lvl1": "Two", }, "position": 0, "type": "lvl1", "url": "/two", }, Object { "content": "", "hierarchy": Object { "lvl1": "Two", }, "position": 1, "type": "content", "url": "/two", }, Object { "hierarchy": Object { "lvl1": "Page A in subfolder", }, "position": 0, "type": "lvl1", "url": "/two/a", }, Object { "content": "", "hierarchy": Object { "lvl1": "Page A in subfolder", }, "position": 1, "type": "content", "url": "/two/a", }, Object { "hierarchy": Object { "lvl1": "Index in subfolder", }, "position": 0, "type": "lvl1", - "url": "/two-1/index", + "url": "/two-1", }, Object { "content": "", "hierarchy": Object { "lvl1": "Index in subfolder", }, "position": 1, "type": "content", - "url": "/two-1/index", + "url": "/two-1", }, Object { "hierarchy": Object { "lvl1": "Page in subfolder", }, "position": 0, "type": "lvl1", "url": "/two/page", }, Object { "content": "Hello from this page!", "hierarchy": Object { "lvl1": "Page in subfolder", }, "position": 1, "type": "content", "url": "/two/page", }, Object { "hierarchy": Object { "lvl1": "Page in subfolder", "lvl2": "See this", }, "position": 2, "type": "lvl2", "url": "/two/page#my-thing", }, Object { "content": "🦆", "hierarchy": Object { "lvl1": "Page in subfolder", "lvl2": "See this", }, "position": 3, "type": "content", "url": "/two/page#my-thing", }, ], "version": "1", } ❯ tests/endToEnd.spec.ts:52:11 ❯ tests/endToEnd.spec.ts:47:13
Testing on node 18
The operation was canceled.
lint: packages/myst-frontmatter/src/licenses/schema.ts#L3
'LicenseSchema' is assigned a value but never used
lint: packages/myst-cli-utils/src/session.ts#L10
'url' is defined but never used
lint: packages/myst-cli-utils/src/session.ts#L10
'init' is defined but never used
lint: packages/myst-transforms/src/links/github.ts#L7
'TRANSFORM_SOURCE' is assigned a value but never used
lint: packages/myst-transforms/src/links/github.ts#L106
'file' is defined but never used
lint: packages/myst-cli/src/build/cff.ts#L18
'parseMyst' is defined but never used
lint: packages/myst-cli/src/build/typst.ts#L69
'templateYml' is defined but never used
lint: packages/myst-cli/src/build/typst.ts#L70
'printGlossaries' is defined but never used
lint: packages/myst-cli/src/init/jupyter-book/toc.ts#L335
'_' is assigned a value but never used
lint: packages/myst-cli/src/init/jupyter-book/toc.ts#L383
'_' is assigned a value but never used
Testing on node 20
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/