-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamically insert mss version and search result #1071
Conversation
stderr=subprocess.STDOUT, encoding="utf8").stdout | ||
mss_search = " ".join([line for line in mss_search.splitlines(True) if line.startswith("mss ")][-2:]) | ||
|
||
for file in os.listdir(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a comment someone else falls over this
file was in Py 2 a builtin and this was removed in Py 3 by the io framework
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx
Replace the version and mss search in the .rst with template variables, and replace them on doc generation.
fixes #1057 and fixes #1052
Generated example here https://mss-test.readthedocs.io/en/latest/installation.html (4.0.1 since develop is still showing that version)