是否有一种方法可以使Sphinx输出中的表格标题左对齐(使用sphinx_rtd_theme)?
自定义CSS包含在conf.py中:
@InitiatingFlow
@StartableByRPC
class TwoTransactionFlow(val inputStateAndRefA: StateAndRef<StateA>) : FlowLogic<Unit>() {
@Suspendable
override fun call() {
val notary = serviceHub.networkMapCache.notaryIdentities[0]
// Creating, signing and finalising the first transaction.
val txBuilderOne = TransactionBuilder(notary)
.addInputState(inputStateAndRefA)
.addOutputState(StateB(), ContractA.ID)
.addCommand(ContractA.Commands.Transfer(), ourIdentity.owningKey)
val signedTxOne = serviceHub.signInitialTransaction(txBuilderOne)
val notarisedTxOne = subFlow(FinalityFlow(signedTxOne))
// Creating, signing and finalising the second transaction.
val stateRefB = StateRef(notarisedTxOne.id, 0)
val stateAndRefB = serviceHub.toStateAndRef<StateB>(stateRefB)
val transactionBuilderTwo = TransactionBuilder(notary)
.addInputState(stateAndRefB)
.addCommand(ContractA.Commands.Exit(), ourIdentity.owningKey)
val signedTransactionTwo = serviceHub.signInitialTransaction(transactionBuilderTwo)
subFlow(FinalityFlow(signedTransactionTwo))
}
}
这有效:
def setup(app):
app.add_stylesheet('_static/custom.css')
这些都不起作用:
.wy-nav-content {
max-width: none;
}
或
.caption {
align:left
}
是否可以通过自定义CSS?
答案 0 :(得分:0)
使用正确的CSS语法对齐文本:
.caption-text {
text-align: left;
}