~hristoast/mousikofidi

4c15df39d70b82148ea28de7dfbfb7663a2434ac — Hristos N. Triantafillou a month ago 0dc609f
Make the app aware of its version, and a better about page (#126)
2 files changed, 24 insertions(+), 6 deletions(-)

M mousikofidi/mousikofidi.py
M mousikofidi/templates/about.html
M mousikofidi/mousikofidi.py => mousikofidi/mousikofidi.py +8 -0
@@ 36,9 36,16 @@ from mutagen.flac import FLAC, FLACNoHeaderError
from mutagen.mp3 import MP3, HeaderNotFoundError as MP3HeaderNotFoundError
from mutagen.mp4 import MP4, MP4StreamInfoError
from mutagen.oggvorbis import OggVorbis, OggVorbisHeaderError
from pkg_resources import DistributionNotFound, get_distribution
from typing import Union as T


try:
    __version__ = get_distribution("MousikoFidi").version
except DistributionNotFound:
    __version__ = "Local Dev Build"


app = Flask(__name__)
debug = os.getenv("FLASK_ENV") == "development"



@@ 1065,6 1072,7 @@ def index():
def about():
    c = request_context(app.fidiConfig)
    c["page_name"] = "About MousikóFídi"
    c["version"] = __version__
    return render_template("about.html", **c)



M mousikofidi/templates/about.html => mousikofidi/templates/about.html +16 -6
@@ 1,28 1,38 @@
{% extends 'base.html' %}
{% block content %}

  <h5 class="center"><a href="https://mousikofidi.info/user_guide/" title="A link to the MousikóFídi User's Guide.">MousikóFídi User's Guide</a> | <a href="https://mousikofidi.info/config/" title="A link to the MousikóFídi Config Guide.">MousikóFídi Config Guide</a> | <a href="https://mousikofidi.info/setup/" title="A link to the MousikóFídi Setup Guide.">MousikóFídi Setup Guide</a></h5>
  <h5 class="center"><a href="https://mousikofidi.info/devel/" title="A link to the MousikóFídi Developer's Guide.">MousikóFídi Developer's Guide</a></h5>

  <h4 class="center">About This Software</h4>

  <p class="center" title="The version of MousikóFídi that you are running">MousikóFídi: <span class="bold">{{ version }}</span></p>

  <p>
    You are using MousikóFídi: a web application designed for streaming self-hosted audio and video, via a web browser.  It is designed to have as few dependencies as possible, and to be easier to set up than other software that serves a similar purpose.
    MousikóFídi is a self-hostable application that enables you to stream your own audio and video collection through a modern web browser. The name is Greek for "musical snake", because the core of it is written with <a href="https://www.python.org/">Python</a>.
  </p>

  <div class="center">
    <a href="https://mousikofidi.info/"><img src="{{ logo_path }}" title="The MousikóFídi logo, by Ogenfald, and a link to the MousikóFídi home page (with online documentation)."></a>
    <img src="{{ logo_path }}" title="The MousikóFídi logo, by Ogenfald.">
  </div>

  <div id="get-help"></div>
  <h5 class="center"><a href="#get-help">How To Get Help With MousikóFídi</a></h5>

  <h5 class="center">
    <a href="https://mousikofidi.info/user_guide/" title="A link to the official MousikóFídi User's Guide.">User's Guide</a> &middot;
    <a href="https://mousikofidi.info/config/" title="A link to the official MousikóFídi Config Guide.">Config Guide</a> &middot;
    <a href="https://mousikofidi.info/setup/" title="A link to the official MousikóFídi Setup Guide.">Setup Guide</a>
  </h5>
  <h5 class="center">
    <a href="https://mousikofidi.info/setup/" title="A link to the official MousikóFídi Setup Guide.">Setup Guide</a> &middot;
    <a href="https://mousikofidi.info/devel/" title="A link to the official MousikóFídi Developer's Guide.">Developer's Guide</a> &middot;
    <a href="https://mousikofidi.info/api/" title="A link to the official MousikóFídi API documentation">API Docs</a>
  </h5>

  <p>
    In the links above, you can find: a user's manual, a configuration guide, as well as a full setup document.
  </p>

  <p>
    The entire wiki exists in the code repository <a href="https://git.sr.ht/~hristoast/mousikofidi/tree/wiki">under the <code>wiki</code> branch</a>, and an editor like <a href="https://github.com/retext-project/retext">ReText</a> can be used to view the rendered <code>.md</code> files offline.
    The entire documentation website exists in the code repository <a href="https://git.sr.ht/~hristoast/mousikofidi/tree/mousikofidi.info">under the <code>mousikofidi.info</code> branch</a>.  Please see <a href="https://mousikofidi.info/devel/#home-page">the development guide</a> for instructions on how to build it.
  </p>

  <p>