Code Monkey home page Code Monkey logo

antora-confluence's People

Contributors

pacovk avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cpkio

antora-confluence's Issues

Unable to test upload of Antora component

I launched local Confluence test server.

A lot of errors pointing to links with anchors.

…
error:    Error reading file …\AntoraSampleRepo\build\site\Service\index.html#key
…

And in the end:

[07:36:24.671] FATAL (antora): Cannot read properties of undefined (reading 'number')
    Cause: TypeError
        at createState (…\AntoraSampleRepo\node_modules\antora-confluence\dist\lib\service\StateService.js:52:41)
        at processTicksAndRejections (node:internal/process/task_queues:96:5)
        at async publishToConfluence (…\AntoraSampleRepo\node_modules\antora-confluence\dist\index.js:46:9)
        at async Promise.all (index 1)
        at async generateSite (…\AntoraSampleRepo\node_modules\@antora\site-generator\lib\generate-site.js:53:12)
        at async Command.parseAsync (…\AntoraSampleRepo\node_modules\commander\lib\command.js:935:5)

ENHANCEMENT: Support of personal access tokens for authorization?

In confluence I have the option of creating a personal access token for authorization. Is it possible to support access via PAT in addition to authentication via user/password?

Here is an example curl call to create a page via PAT.

curl --location 'https://{{server}}:{{port}}/rest/api/content' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{personalAccessToken}}' \
--data '{
    "type": "page",
    "title": "new page",
    "ancestors": [
        {
            "id": {{ancestorId}}
        }
    ],
    "space": {
        "key": "{{spaceKey}}"
    },
    "body": {
        "storage": {
            "value": "<h1>This is a new page</h1>",
            "representation": "storage"
        }
    }
}'

Kind Regards,
Andreas

ENHANCEMENT: Page hierarchy based on nav.adoc

Hello @PacoVK,

in Antora I define the navigation for the generated HTML in the nav.adoc file.

image

* xref:index.adoc[]
** xref:segments.adoc[]
*** xref:segments/message-header.adoc[]
** xref:tables.adoc[]

When I transfer the documentation to confluence, the page hierarchy from the nav.adoc file is lost.

image

Is there a possibility in a future version that the page hierarchy in confluence will correspond to the one defined in the nav.adoc file?

In the attachment you will find an example project to illustrate.

confluence-issue.zip

WORAROUND:
I currently have to move the pages manually. If I execute the transfer from Antora again, the page hierarchy is retained, new pages are then inserted at the top level and have to be edited manually. It would be great if this could be done automatically, especially for larger documentation.

Kind Regards,
Andreas

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Branch Automerge

These updates await pending status checks before automerging. Click on a checkbox to abort the branch automerge, and create a PR instead.

  • Update dependency ts-jest to v29.1.5

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-node v4
npm
package.json
  • form-data ^4.0.0
  • minimatch ^9.0.3
  • node-fetch ^3.3.2
  • node-html-parser ^6.1.12
  • winston ^3.11.0
  • @jest/globals ^29.7.0
  • @types/node ^20.11.19
  • @types/vinyl ^2.0.11
  • @typescript-eslint/eslint-plugin ^7.0.2
  • @typescript-eslint/parser ^7.0.2
  • eslint ^8.56.0
  • jest ^29.7.0
  • prettier ^3.2.5
  • ts-jest ^29.1.2
  • ts-node ^10.9.2
  • typescript ^5.3.3

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.