diff --git a/TODO.md b/TODO.md index 2310031..e075fa2 100644 --- a/TODO.md +++ b/TODO.md @@ -1,9 +1,8 @@ # Now -- disable text selection on splitter -- readme - -## later -- debug: true on deploy - command line argument to set any option - all todos - all fixmes + +## later +- readme +- debug: true on deploy diff --git a/yhttp/markdown/server.py b/yhttp/markdown/server.py index fe19291..7ab5c6f 100644 --- a/yhttp/markdown/server.py +++ b/yhttp/markdown/server.py @@ -145,6 +145,10 @@ def get(req, path=None): @app.when def ready(app): + # metadata (favicon, logo and etc) + if not os.path.isdir(cfg.metadata.physical): + cfg.metadata.physical = os.path.join(here, 'defaultmetadata') + app.excludes = [re.compile(p) for p in cfg.exclude or []] app.loopkup = TemplateLookup( directories=[os.path.join(here, 'templates')], @@ -201,10 +205,6 @@ def __call__(self, args): # pragma: no cover host, port = args.bind.split(':')\ if ':' in args.bind else ('localhost', args.bind) - # metadata (favicon, logo and etc) - if not os.path.isdir(cfg.metadata.physical): - cfg.metadata.physical = os.path.join(here, 'defaultmetadata') - app.ready() httpd = make_server(host, int(port), app) print(f'Markdown server started at http://{host}:{port}') diff --git a/yhttp/markdown/styles/layout.sass b/yhttp/markdown/styles/layout.sass index 1c4e1c5..d94136e 100644 --- a/yhttp/markdown/styles/layout.sass +++ b/yhttp/markdown/styles/layout.sass @@ -72,10 +72,18 @@ aside padding: 0 +aside + -webkit-user-select: none + -ms-user-select: none + user-select: none + #splitter display: flex align-items: center justify-content: center + -webkit-user-select: none + -ms-user-select: none + user-select: none .icon