You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Newbie here with docToolchain. I'd appreciate any guidance/help configuring the Confluence page format. (If it's possible to configure. I've been digging into the asciidoc2confluence.groovy and don't know if it's doable.)
Thank you in advance 馃檹 !
The sections in the Confluence pages I'm publishing have extra new lines and anchors that I'd like to remove.
What's going on?
Here's an example Confluence page with the extra new lines between sections:
Here's the same page open in the Confluence editor showing the new lines and anchors between sections:
What I'd like to happen:
Here's how I'd like the published page to look like in Confluence:
What generated those Confluence pages?
docToolchain v3.0.2
docToolchainConfig.groovy
outputPath ='build'
inputPath ='adrs'
inputFiles = [
[file: 'adrs.adoc', formats: ['html']],
/** inputFiles **/
]
// these are directories (dirs) and files which Gradle monitors for a change// in order to decide if the docs have to be re-build
taskInputsDirs = [
"${inputPath}"
]
//*****************************************************************************************//tag::confluenceConfig[]//Configureation for publishToConfluence
confluence = [:]
confluence.with {
input = [
[
file: "build/html5/adrs.html",
ancestorName: "ADRs"
]
]
inputHtmlFolder =''// endpoint of the confluenceAPI (REST) to be used// to verify the endpoint, add user/current and paste it into your browser// you should get a json about your own user
api ='https://confluence-xxx.atlassian.net/wiki/rest/api/'// the key of the confluence space to write to
spaceKey ='XXX'// if true, all pages will be created using the new editor v2
enforceNewEditor =true// variable to determine how many layers of sub pages should be created
subpagesForSections =2// the pagePrefix will be a prefix for each page title// use this if you only have access to one confluence space but need to store several// pages with the same title - a different pagePrefix will make them unique
pagePrefix =''
pageSuffix =''// the comment used for the page version
pageVersionComment ='docToolchain publishToConfluence'
}
//end::confluenceConfig[]//*****************************************************************************************
My Asciidoc files
adrs.adoc
:doctype: book= DAF Architecture Decision Records
== DAF Architecture Decision Records
include::./0001-daf-record-architecture-decisions.adoc[]
include::./0002-test-adr.adoc[]
include::./0003-test-2-adr.adoc[]
./0002-test-adr.adoc[]
=== 2. Test ADR
Date: 2023-10-09
==== Status
Accepted
==== Context
The issue motivating this decision, and any context that influences or constrains the decision.
==== Decision
The change that we're proposing or have agreed to implement.
==== Consequences
What becomes easier or more difficult to do and any risks introduced by the change that will need to be mitigated.
The HTML generated with the generateHTML task where each <h> tag has a <a> tag with class="anchor"
<bodyclass="book toc2 toc-left"><divid="header"><h1>DAF Architecture Decision Records</h1><divid="toc" class="toc2"><divid="toctitle">Table of Contents</div><ulclass="sectlevel1"><li><ahref="#_daf_architecture_decision_records">DAF Architecture Decision Records</a><ulclass="sectlevel2"><li><ahref="#_0001_record_architecture_decisions">0001. Record architecture decisions</a></li><li><ahref="#_2_test_adr">2. Test ADR</a></li><li><ahref="#_3_test_2_adr">3. Test 2 ADR</a></li></ul></li></ul></div></div><divid="content"><divclass="sect1"><h2id="_daf_architecture_decision_records"><aclass="anchor" href="#_daf_architecture_decision_records"></a>DAF Architecture Decision Records</h2><divclass="sectionbody"><!-- ... HTML for the 0001 ADR not shown in example so removed for brevity --><divclass="sect2"><h3id="_2_test_adr"><aclass="anchor" href="#_2_test_adr"></a>2. Test ADR</h3><divclass="paragraph"><p>Date: 2023-10-09</p></div><divclass="sect3"><h4id="_status_2"><aclass="anchor" href="#_status_2"></a>Status</h4><divclass="paragraph"><p>Accepted</p></div></div><divclass="sect3"><h4id="_context_2"><aclass="anchor" href="#_context_2"></a>Context</h4><divclass="paragraph"><p>The issue motivating this decision, and any context that influences or constrains the decision.</p></div></div><divclass="sect3"><h4id="_decision_2"><aclass="anchor" href="#_decision_2"></a>Decision</h4><divclass="paragraph"><p>The change that we’re proposing or have agreed to implement.</p></div></div><divclass="sect3"><h4id="_consequences_2"><aclass="anchor" href="#_consequences_2"></a>Consequences</h4><divclass="paragraph"><p>What becomes easier or more difficult to do and any risks introduced by the change that will need to be
mitigated.</p></div></div></div><!-- ... HTML for the 0003 ADR not shown in example so removed for brevity --></div></div></div><divid="footer"><divid="footer-text">
Last updated 2023-10-09 17:10:27 UTC
</div></div><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.3/highlight.min.js"></script><script>if(!hljs.initHighlighting.called){hljs.initHighlighting.called=true;[].slice.call(document.querySelectorAll('pre.highlight > code[data-lang]')).forEach(function(el){hljs.highlightBlock(el)})}</script></body>
EDIT:
thank you in advance
The text was updated successfully, but these errors were encountered:
Hi docToolchain community 馃憢 !
Newbie here with docToolchain. I'd appreciate any guidance/help configuring the Confluence page format. (If it's possible to configure. I've been digging into the
asciidoc2confluence.groovy
and don't know if it's doable.)Thank you in advance 馃檹 !
The sections in the Confluence pages I'm publishing have extra new lines and anchors that I'd like to remove.
What's going on?
Here's an example Confluence page with the extra new lines between sections:
Here's the same page open in the Confluence editor showing the new lines and anchors between sections:
What I'd like to happen:
What generated those Confluence pages?
docToolchain v3.0.2
docToolchainConfig.groovy
My Asciidoc files
adrs.adoc
./0002-test-adr.adoc[]
The HTML generated with the
generateHTML
task where each<h>
tag has a<a>
tag withclass="anchor"
EDIT:
The text was updated successfully, but these errors were encountered: