Skip to content

Dynamically insert mss version and search result - #1071

Merged
ReimarBauer merged 5 commits into
Open-MSS:developfrom
Marilyth:i1057
Jul 2, 2021
Merged

Dynamically insert mss version and search result#1071
ReimarBauer merged 5 commits into
Open-MSS:developfrom
Marilyth:i1057

Conversation

@Marilyth

@Marilyth Marilyth commented Jul 1, 2021

Copy link
Copy Markdown
Collaborator

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)

@Marilyth
Marilyth requested a review from ReimarBauer July 1, 2021 14:00
Comment thread docs/conf.py
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():

Copy link
Copy Markdown
Member

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

@ReimarBauer ReimarBauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments

Comment thread docs/conf.py
Comment thread docs/conf.py Outdated
Comment thread docs/development.rst Outdated

@ReimarBauer ReimarBauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx

@ReimarBauer
ReimarBauer merged commit bb9015b into Open-MSS:develop Jul 2, 2021
@Marilyth
Marilyth deleted the i1057 branch July 2, 2021 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update docs mss version etc automatically organize / reorganize Topics of the Development part

2 participants