Add capabilities to get and render manpage output in the Web UI (#881)

- class method to get arbitrary file contents
- new web UI endpoint to fetch the contents of rascsi man pages (rendered txt files)
- Link to manpage in page footer
- Link to new wiki page for image type docs
- Other UI tweaks
This commit is contained in:
Daniel Markstedt
2022-10-03 12:46:18 -07:00
committed by GitHub
parent fd47411322
commit dcb4b33f2e
6 changed files with 76 additions and 12 deletions
+8
View File
@@ -95,3 +95,11 @@ def test_create_image_with_properties_file(http_client, delete_file):
# Cleanup
delete_file(file_name)
# route("/sys/manpage", methods=["POST"])
def test_show_manpage(http_client):
response = http_client.get("/sys/manpage?app=rascsi")
response_data = response.json()
assert response.status_code == 200
assert "rascsi" in response_data["data"]["manpage"]