Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: Mapping structure not working as expected #56

Open
Blackstonecoden opened this issue Feb 18, 2025 · 1 comment
Open

Windows: Mapping structure not working as expected #56

Blackstonecoden opened this issue Feb 18, 2025 · 1 comment

Comments

@Blackstonecoden
Copy link

Blackstonecoden commented Feb 18, 2025

Issue Overview

I am attempting to use the mapper (or the default mapper) to generate the page structure for my Antora documentation. To set up a testing environment, I used the example project from Antora. However, I noticed that the expected page structure isn't appearing in the Confluence page.

Example used is from the issue #42

Expected Result:

Expected Result

The Result I Am Getting:

Actual Result

antora-playbook.yml

site:
  title: Antora Docs
  start_page: component-b::index.adoc
  url: https://docs.domain.tld
content:
  sources:
  - url: https://gitlab.com/antora/demo/demo-component-a.git
    branches: HEAD
  - url: https://gitlab.com/antora/demo/demo-component-b.git
    branches: [v2.0, v1.0]
    start_path: docs
ui:
  bundle:
    url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
    snapshot: true
output:
  destinations:
    - provider: fs
    - provider: antora-confluence
      confluence-api: https://<hidden>.atlassian.net
      confluence-space: <hidden>
      show-banner: true
      ancestor-id: <hidden>

package.json version

{
  "devDependencies": {
    "antora": "3.1.9",
    "antora-confluence": "^0.4.0",
    "http-server": "^14.1.1"
  }
}
@Blackstonecoden Blackstonecoden changed the title Mapping structure not working Mapping structure not working as expected Feb 18, 2025
@Blackstonecoden
Copy link
Author

Blackstonecoden commented Feb 19, 2025

Update: The problem seems to be that windows file paths are using \ and the PageSevice.ts tries to split the path at a /.

@Blackstonecoden Blackstonecoden changed the title Mapping structure not working as expected Windows: Mapping structure not working as expected Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant