File size: 551 Bytes
ce20c03
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from dash import html, dcc, callback, Input, Output, State
from larvaecount.ui.ui_utils import read_md_file

import dash
import dash_bootstrap_components as dbc
import os

dash.register_page(__name__, path = "/guide")

USER_GUIDE_PATH = os.path.abspath(
    os.path.join(
        os.path.dirname(__file__),
        os.pardir,
        "docs",
        "user_guide.md"
    )
)

layout = dbc.Container(
    children = dcc.Markdown(
        children = read_md_file(USER_GUIDE_PATH),
        className = "wiki"
    ),
    class_name = "text-center mt-3"
)