Skip to content
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

Merged
merged 5 commits into from
Jul 2, 2021

Conversation

Marilyth
Copy link
Collaborator

@Marilyth Marilyth commented Jul 1, 2021

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
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
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

Copy link
Member

@ReimarBauer ReimarBauer left a comment

Choose a reason for hiding this comment

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

see comments

docs/conf.py Show resolved Hide resolved
docs/conf.py Outdated Show resolved Hide resolved
docs/development.rst Outdated Show resolved Hide resolved
Copy link
Member

@ReimarBauer ReimarBauer left a comment

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