From d1c5671de5d12c28a98f2a90c90dea81c29c0e91 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Sun, 24 Jan 2021 17:37:06 +0900 Subject: [PATCH] stignore --- .stignore | 3 +-- distribusi/distribusi.py | 6 ++++-- styles/dark.css | 6 ++++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.stignore b/.stignore index 716d7c4..ec12129 100644 --- a/.stignore +++ b/.stignore @@ -2,7 +2,7 @@ (?d).DS_Store #distribusi controlled -index.html +(?d)**/index.html #git related .git @@ -16,4 +16,3 @@ node_modules # data - diff --git a/distribusi/distribusi.py b/distribusi/distribusi.py index c76defc..1b87c89 100644 --- a/distribusi/distribusi.py +++ b/distribusi/distribusi.py @@ -150,7 +150,8 @@ def render_dir(args, root): subtype = 'html' # what types of text files to expand a = '
{}
'.format(name, open(full_path).read()) - elif subtype in CODE_TYPES or name.endswith('.txt'): + #elif subtype in CODE_TYPES or name.endswith('.txt'): + elif name.endswith('.txt'): #check - time string m = PATTERN_TSTR.search(name) tstring = "" @@ -260,7 +261,8 @@ def distribusify(args, directory): # noqa subtype = 'html' # what types of text files to expand a = '
{}
'.format(name, open(full_path).read()) - elif subtype in CODE_TYPES or name.endswith('.txt'): + #elif subtype in CODE_TYPES or name.endswith('.txt'): + elif name.endswith('.txt'): #check - time string m = PATTERN_TSTR.search(name) tstring = "" diff --git a/styles/dark.css b/styles/dark.css index 51a9f76..2e5b7b7 100644 --- a/styles/dark.css +++ b/styles/dark.css @@ -61,6 +61,12 @@ div { white-space: pre-line; } +/* .x-c div, +.x-shellscript div, +.x-python div { + white-space: pre-line; +} */ + figure { margin: 0; padding: 0;