We're updating the issue view to help you get more done. 

Change the doc substitution so that it works in code blocks as well as in other places

Description

Currently, we have this in code.py:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 with open("../../constants.properties", "r") as f: constants_properties_lines = f.readlines() constants_properties_dict = dict([l.strip().split('=') for l in constants_properties_lines if not l.startswith("#") and not l.strip() == ""]) rst_epilog = """ .. |java_version| replace:: 8u%s .. |kotlin_version| replace:: %s .. |gradle_plugins_version| replace:: %s .. |quasar_version| replace:: %s .. |corda_version| replace:: %s """ % (constants_properties_dict["java8MinUpdateVersion"], constants_properties_dict["kotlinVersion"], constants_properties_dict["gradlePluginsVersion"], constants_properties_dict["quasarVersion"], constants_properties_dict["cordaVersion"])

But this does now support substitutions in code blocks. There is a bit of python we can use to do this. So we're going to use that instead so that we can get rid of a lot of

1 <version>

s in the docs and have them nicely dynamically replaced.

Heavy boots. What could possibly go wrong?!!

CVSS Vector

None

Status

Assignee

Ben Wyeth

Reporter

Ben Wyeth

Labels

None

CVSS Score

None

Feature Team

Select team

Target Version/s

Corda 4.1

Ported to...

None

Story Points

1

Fix versions

Affects versions

Corda 4

Priority

Medium