pacovk / antora-confluence Goto Github PK
View Code? Open in Web Editor NEWPlugin to publish your Antora docs to Confluence
License: Apache License 2.0
Plugin to publish your Antora docs to Confluence
License: Apache License 2.0
After pages have been created, the title may be changed or pages may be deleted.
Captain should be able to detect those cases and update the title resp. delete the page.
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)
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
Hello @PacoVK,
in Antora I define the navigation for the generated HTML in the nav.adoc file.
* 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.
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.
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
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates await pending status checks before automerging. Click on a checkbox to abort the branch automerge, and create a PR instead.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/ci.yml
actions/checkout v4
actions/setup-node v4
.github/workflows/release.yml
actions/checkout v4
actions/setup-node v4
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
Hello,
when running npx antora .\antora-playbook-confluence-local.yml --stacktrace I get the following error:
FATAL (antora): Cannot read properties of undefined (reading 'pageTitle')
Attached you will find a log file and the playbook.
Do you have any tips on how I can avoid this problem?
Many thanks and best regards,
Andreas Hempel
An unresolved issue in confluence-publisher is being able to (easily) control the order in which Asciidoc pages are published to Confluence.
See confluence-publisher/confluence-publisher#10
Is this a nonissue in antora-confluence, given that Antora has a nav.adoc file which specifies the location and page order?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.