markdown-up 1.8.9__tar.gz → 1.9.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {markdown_up-1.8.9/src/markdown_up.egg-info → markdown_up-1.9.0}/PKG-INFO +5 -5
- {markdown_up-1.8.9 → markdown_up-1.9.0}/README.md +2 -2
- {markdown_up-1.8.9 → markdown_up-1.9.0}/setup.cfg +3 -2
- {markdown_up-1.8.9 → markdown_up-1.9.0}/src/markdown_up/app.py +30 -18
- markdown_up-1.9.0/src/markdown_up/static/index.html +54 -0
- markdown_up-1.9.0/src/markdown_up/static/markdown-up.tar.gz +0 -0
- {markdown_up-1.8.9 → markdown_up-1.9.0/src/markdown_up.egg-info}/PKG-INFO +5 -5
- {markdown_up-1.8.9 → markdown_up-1.9.0}/src/markdown_up.egg-info/SOURCES.txt +1 -0
- {markdown_up-1.8.9 → markdown_up-1.9.0}/src/markdown_up.egg-info/requires.txt +1 -1
- markdown_up-1.8.9/src/markdown_up/static/index.html +0 -53
- {markdown_up-1.8.9 → markdown_up-1.9.0}/LICENSE +0 -0
- {markdown_up-1.8.9 → markdown_up-1.9.0}/pyproject.toml +0 -0
- {markdown_up-1.8.9 → markdown_up-1.9.0}/src/markdown_up/__init__.py +0 -0
- {markdown_up-1.8.9 → markdown_up-1.9.0}/src/markdown_up/__main__.py +0 -0
- {markdown_up-1.8.9 → markdown_up-1.9.0}/src/markdown_up/main.py +0 -0
- {markdown_up-1.8.9 → markdown_up-1.9.0}/src/markdown_up/static/__init__.py +0 -0
- {markdown_up-1.8.9 → markdown_up-1.9.0}/src/markdown_up/static/markdownUpIndex.bare +0 -0
- {markdown_up-1.8.9 → markdown_up-1.9.0}/src/markdown_up.egg-info/dependency_links.txt +0 -0
- {markdown_up-1.8.9 → markdown_up-1.9.0}/src/markdown_up.egg-info/entry_points.txt +0 -0
- {markdown_up-1.8.9 → markdown_up-1.9.0}/src/markdown_up.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: markdown-up
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9.0
|
|
4
4
|
Summary: The MarkdownUp launcher
|
|
5
5
|
Home-page: https://github.com/craigahobbs/markdown-up-py
|
|
6
6
|
Author: Craig A. Hobbs
|
|
@@ -19,7 +19,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
19
19
|
Classifier: Topic :: Utilities
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
License-File: LICENSE
|
|
22
|
-
Requires-Dist: chisel>=1.3.
|
|
22
|
+
Requires-Dist: chisel>=1.3.7
|
|
23
23
|
Requires-Dist: waitress>=3.0.0
|
|
24
24
|
|
|
25
25
|
# markdown-up
|
|
@@ -36,9 +36,9 @@ launcher.
|
|
|
36
36
|
is a Markdown viewer.
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
## View Local Markdown Files
|
|
39
|
+
## View Local Markdown Files Offline
|
|
40
40
|
|
|
41
|
-
To view local Markdown files, run the markdown-up command-line application from a terminal prompt:
|
|
41
|
+
To view local Markdown files entirely offline, run the markdown-up command-line application from a terminal prompt:
|
|
42
42
|
|
|
43
43
|
~~~
|
|
44
44
|
pip install markdown-up
|
|
@@ -12,9 +12,9 @@ launcher.
|
|
|
12
12
|
is a Markdown viewer.
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
## View Local Markdown Files
|
|
15
|
+
## View Local Markdown Files Offline
|
|
16
16
|
|
|
17
|
-
To view local Markdown files, run the markdown-up command-line application from a terminal prompt:
|
|
17
|
+
To view local Markdown files entirely offline, run the markdown-up command-line application from a terminal prompt:
|
|
18
18
|
|
|
19
19
|
~~~
|
|
20
20
|
pip install markdown-up
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = markdown-up
|
|
3
|
-
version = 1.
|
|
3
|
+
version = 1.9.0
|
|
4
4
|
url = https://github.com/craigahobbs/markdown-up-py
|
|
5
5
|
author = Craig A. Hobbs
|
|
6
6
|
author_email = craigahobbs@gmail.com
|
|
@@ -26,7 +26,7 @@ packages = markdown_up, markdown_up.static
|
|
|
26
26
|
package_dir =
|
|
27
27
|
= src
|
|
28
28
|
install_requires =
|
|
29
|
-
chisel >= 1.3.
|
|
29
|
+
chisel >= 1.3.7
|
|
30
30
|
waitress >= 3.0.0
|
|
31
31
|
|
|
32
32
|
[options.entry_points]
|
|
@@ -37,6 +37,7 @@ console_scripts =
|
|
|
37
37
|
markdown_up =
|
|
38
38
|
static/*.bare
|
|
39
39
|
static/*.html
|
|
40
|
+
static/*.tar.gz
|
|
40
41
|
|
|
41
42
|
[egg_info]
|
|
42
43
|
tag_build =
|
|
@@ -9,6 +9,7 @@ from http import HTTPStatus
|
|
|
9
9
|
import importlib.resources
|
|
10
10
|
import os
|
|
11
11
|
from pathlib import PurePosixPath
|
|
12
|
+
import tarfile
|
|
12
13
|
|
|
13
14
|
import chisel
|
|
14
15
|
|
|
@@ -26,29 +27,33 @@ class MarkdownUpApplication(chisel.Application):
|
|
|
26
27
|
self.root = root
|
|
27
28
|
|
|
28
29
|
# Add the chisel documentation application
|
|
29
|
-
self.add_requests(chisel.create_doc_requests())
|
|
30
|
+
self.add_requests(chisel.create_doc_requests(markdown_up='../markdown-up/'))
|
|
30
31
|
|
|
31
32
|
# Add the markdown-up APIs
|
|
32
33
|
self.add_request(markdown_up_index)
|
|
33
34
|
|
|
34
35
|
# Add the markdown-up statics
|
|
35
|
-
self.add_static(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
36
|
+
self.add_static('index.html', urls=(('GET', '/'),))
|
|
37
|
+
self.add_static('markdownUpIndex.bare')
|
|
38
|
+
|
|
39
|
+
# Markdown-Up application statics
|
|
40
|
+
with importlib.resources.files('markdown_up.static').joinpath('markdown-up.tar.gz').open('rb') as tgz:
|
|
41
|
+
with tarfile.open(fileobj=tgz, mode='r:gz') as tar:
|
|
42
|
+
for member in tar.getmembers():
|
|
43
|
+
if member.isfile():
|
|
44
|
+
self.add_request(chisel.StaticRequest(
|
|
45
|
+
member.name,
|
|
46
|
+
tar.extractfile(member).read(),
|
|
47
|
+
content_type=_CONTENT_TYPES.get(os.path.splitext(member.name)[1], 'text/plain; charset=utf-8'),
|
|
48
|
+
urls=(('GET', None),),
|
|
49
|
+
doc_group='MarkdownUp Statics'
|
|
50
|
+
))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def add_static(self, filename, urls=(('GET', None),), doc_group='MarkdownUp Index Statics'):
|
|
54
|
+
content_type = _CONTENT_TYPES.get(os.path.splitext(filename)[1], 'text/plain; charset=utf-8')
|
|
50
55
|
with importlib.resources.files('markdown_up.static').joinpath(filename).open('rb') as fh:
|
|
51
|
-
self.add_request(chisel.StaticRequest(filename, fh.read(), content_type, urls,
|
|
56
|
+
self.add_request(chisel.StaticRequest(filename, fh.read(), content_type, urls, doc_group=doc_group))
|
|
52
57
|
|
|
53
58
|
|
|
54
59
|
def __call__(self, environ, start_response):
|
|
@@ -99,6 +104,13 @@ class MarkdownUpApplication(chisel.Application):
|
|
|
99
104
|
return [content]
|
|
100
105
|
|
|
101
106
|
|
|
107
|
+
_CONTENT_TYPES = {
|
|
108
|
+
'.css': 'text/css; charset=utf-8',
|
|
109
|
+
'.js': 'text/javascript; charset=utf-8',
|
|
110
|
+
'.html': 'text/html; charset=utf-8'
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
|
|
102
114
|
# The map of static file extension to content-type
|
|
103
115
|
STATIC_EXT_TO_CONTENT_TYPE = {
|
|
104
116
|
'.bare': 'text/plain; charset=utf-8',
|
|
@@ -127,7 +139,7 @@ INDEX_FILES = ('index.html', 'index.htm')
|
|
|
127
139
|
|
|
128
140
|
|
|
129
141
|
@chisel.action(spec='''\
|
|
130
|
-
group "MarkdownUp API"
|
|
142
|
+
group "MarkdownUp Index API"
|
|
131
143
|
|
|
132
144
|
# The MarkdownUp launcher index API
|
|
133
145
|
action markdown_up_index
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title>MarkdownUp</title>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="description" content="MarkdownUp is a Markdown viewer">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
|
+
<link rel="stylesheet" href="./markdown-up/app.css">
|
|
9
|
+
|
|
10
|
+
<!-- Preloads -->
|
|
11
|
+
<link rel="modulepreload" href="./markdown-up/bare-script/lib/data.js" as="script">
|
|
12
|
+
<link rel="modulepreload" href="./markdown-up/bare-script/lib/library.js" as="script">
|
|
13
|
+
<link rel="modulepreload" href="./markdown-up/bare-script/lib/model.js" as="script">
|
|
14
|
+
<link rel="modulepreload" href="./markdown-up/bare-script/lib/options.js" as="script">
|
|
15
|
+
<link rel="modulepreload" href="./markdown-up/bare-script/lib/parser.js" as="script">
|
|
16
|
+
<link rel="modulepreload" href="./markdown-up/bare-script/lib/runtime.js" as="script">
|
|
17
|
+
<link rel="modulepreload" href="./markdown-up/bare-script/lib/runtimeAsync.js" as="script">
|
|
18
|
+
<link rel="modulepreload" href="./markdown-up/bare-script/lib/value.js" as="script">
|
|
19
|
+
<link rel="modulepreload" href="./markdown-up/element-model/lib/elementModel.js" as="script">
|
|
20
|
+
<link rel="modulepreload" href="./markdown-up/lib/app.js" as="script">
|
|
21
|
+
<link rel="modulepreload" href="./markdown-up/lib/dataTable.js" as="script">
|
|
22
|
+
<link rel="modulepreload" href="./markdown-up/lib/dataUtil.js" as="script">
|
|
23
|
+
<link rel="modulepreload" href="./markdown-up/lib/lineChart.js" as="script">
|
|
24
|
+
<link rel="modulepreload" href="./markdown-up/lib/script.js" as="script">
|
|
25
|
+
<link rel="modulepreload" href="./markdown-up/lib/scriptLibrary.js" as="script">
|
|
26
|
+
<link rel="modulepreload" href="./markdown-up/markdown-model/lib/elements.js" as="script">
|
|
27
|
+
<link rel="modulepreload" href="./markdown-up/markdown-model/lib/highlight.js" as="script">
|
|
28
|
+
<link rel="modulepreload" href="./markdown-up/markdown-model/lib/parser.js" as="script">
|
|
29
|
+
<link rel="modulepreload" href="./markdown-up/schema-markdown-doc/lib/schemaMarkdownDoc.js" as="script">
|
|
30
|
+
<link rel="modulepreload" href="./markdown-up/schema-markdown/lib/encode.js" as="script">
|
|
31
|
+
<link rel="modulepreload" href="./markdown-up/schema-markdown/lib/parser.js" as="script">
|
|
32
|
+
<link rel="modulepreload" href="./markdown-up/schema-markdown/lib/schema.js" as="script">
|
|
33
|
+
<link rel="modulepreload" href="./markdown-up/schema-markdown/lib/schemaUtil.js" as="script">
|
|
34
|
+
<link rel="modulepreload" href="./markdown-up/schema-markdown/lib/typeModel.js" as="script">
|
|
35
|
+
<link rel="preload" href="./markdown-up/app.css" as="style">
|
|
36
|
+
<link rel="preload" href="./markdown-up/markdown-model/static/markdown-model.css" as="style">
|
|
37
|
+
</head>
|
|
38
|
+
<body>
|
|
39
|
+
</body>
|
|
40
|
+
<script type="module">
|
|
41
|
+
import {MarkdownUp} from './markdown-up/lib/app.js';
|
|
42
|
+
const app = new MarkdownUp(window, {
|
|
43
|
+
'systemPrefix': './markdown-up/include/',
|
|
44
|
+
'markdownText': `\
|
|
45
|
+
~~~ markdown-script
|
|
46
|
+
include 'markdownUpIndex.bare'
|
|
47
|
+
|
|
48
|
+
markdownUpIndex()
|
|
49
|
+
~~~
|
|
50
|
+
`
|
|
51
|
+
});
|
|
52
|
+
app.run();
|
|
53
|
+
</script>
|
|
54
|
+
</html>
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: markdown-up
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9.0
|
|
4
4
|
Summary: The MarkdownUp launcher
|
|
5
5
|
Home-page: https://github.com/craigahobbs/markdown-up-py
|
|
6
6
|
Author: Craig A. Hobbs
|
|
@@ -19,7 +19,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
19
19
|
Classifier: Topic :: Utilities
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
License-File: LICENSE
|
|
22
|
-
Requires-Dist: chisel>=1.3.
|
|
22
|
+
Requires-Dist: chisel>=1.3.7
|
|
23
23
|
Requires-Dist: waitress>=3.0.0
|
|
24
24
|
|
|
25
25
|
# markdown-up
|
|
@@ -36,9 +36,9 @@ launcher.
|
|
|
36
36
|
is a Markdown viewer.
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
## View Local Markdown Files
|
|
39
|
+
## View Local Markdown Files Offline
|
|
40
40
|
|
|
41
|
-
To view local Markdown files, run the markdown-up command-line application from a terminal prompt:
|
|
41
|
+
To view local Markdown files entirely offline, run the markdown-up command-line application from a terminal prompt:
|
|
42
42
|
|
|
43
43
|
~~~
|
|
44
44
|
pip install markdown-up
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
chisel>=1.3.
|
|
1
|
+
chisel>=1.3.7
|
|
2
2
|
waitress>=3.0.0
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<title>MarkdownUp</title>
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<meta name="description" content="MarkdownUp is a Markdown viewer">
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
|
-
<link rel="stylesheet" href="https://craigahobbs.github.io/markdown-up/app.css">
|
|
9
|
-
|
|
10
|
-
<!-- Preloads -->
|
|
11
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/bare-script/lib/data.js" as="script">
|
|
12
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/bare-script/lib/library.js" as="script">
|
|
13
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/bare-script/lib/model.js" as="script">
|
|
14
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/bare-script/lib/options.js" as="script">
|
|
15
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/bare-script/lib/parser.js" as="script">
|
|
16
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/bare-script/lib/runtime.js" as="script">
|
|
17
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/bare-script/lib/runtimeAsync.js" as="script">
|
|
18
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/bare-script/lib/value.js" as="script">
|
|
19
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/element-model/lib/elementModel.js" as="script">
|
|
20
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/lib/app.js" as="script">
|
|
21
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/lib/dataTable.js" as="script">
|
|
22
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/lib/dataUtil.js" as="script">
|
|
23
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/lib/lineChart.js" as="script">
|
|
24
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/lib/script.js" as="script">
|
|
25
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/lib/scriptLibrary.js" as="script">
|
|
26
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/markdown-model/lib/elements.js" as="script">
|
|
27
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/markdown-model/lib/highlight.js" as="script">
|
|
28
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/markdown-model/lib/parser.js" as="script">
|
|
29
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/schema-markdown-doc/lib/schemaMarkdownDoc.js" as="script">
|
|
30
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/schema-markdown/lib/encode.js" as="script">
|
|
31
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/schema-markdown/lib/parser.js" as="script">
|
|
32
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/schema-markdown/lib/schema.js" as="script">
|
|
33
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/schema-markdown/lib/schemaUtil.js" as="script">
|
|
34
|
-
<link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/schema-markdown/lib/typeModel.js" as="script">
|
|
35
|
-
<link rel="preload" href="https://craigahobbs.github.io/markdown-up/app.css" as="style">
|
|
36
|
-
<link rel="preload" href="https://craigahobbs.github.io/markdown-up/markdown-model/static/markdown-model.css" as="style">
|
|
37
|
-
</head>
|
|
38
|
-
<body>
|
|
39
|
-
</body>
|
|
40
|
-
<script type="module">
|
|
41
|
-
import {MarkdownUp} from 'https://craigahobbs.github.io/markdown-up/lib/app.js';
|
|
42
|
-
const app = new MarkdownUp(window, {
|
|
43
|
-
'markdownText': `\
|
|
44
|
-
~~~ markdown-script
|
|
45
|
-
include 'markdownUpIndex.bare'
|
|
46
|
-
|
|
47
|
-
markdownUpIndex()
|
|
48
|
-
~~~
|
|
49
|
-
`
|
|
50
|
-
});
|
|
51
|
-
app.run();
|
|
52
|
-
</script>
|
|
53
|
-
</html>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|