markdotserver 0.1.0__tar.gz → 0.1.1__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.
- {markdotserver-0.1.0/src/markdotserver.egg-info → markdotserver-0.1.1}/PKG-INFO +61 -37
- {markdotserver-0.1.0 → markdotserver-0.1.1}/README.md +54 -35
- {markdotserver-0.1.0 → markdotserver-0.1.1}/pyproject.toml +10 -2
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/__init__.py +1 -1
- {markdotserver-0.1.0 → markdotserver-0.1.1/src/markdotserver.egg-info}/PKG-INFO +61 -37
- {markdotserver-0.1.0 → markdotserver-0.1.1}/LICENSE +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/setup.cfg +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/__main__.py +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/app.py +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/config.py +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/filesystem.py +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/graphviz_renderer.py +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/markdown_renderer.py +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/py.typed +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/routes.py +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/static/css/app.css +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/static/js/app.js +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/static/js/theme.js +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/templates/base.html +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/templates/index.html +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/templates/partials/directory_tree.html +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/templates/partials/document.html +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/templates/partials/error.html +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/templates/partials/headings.html +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/templates/partials/toolbar.html +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver.egg-info/SOURCES.txt +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver.egg-info/dependency_links.txt +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver.egg-info/entry_points.txt +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver.egg-info/requires.txt +0 -0
- {markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver.egg-info/top_level.txt +0 -0
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: markdotserver
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Lightweight, read-only HTTP viewer for Markdown and Graphviz documentation
|
|
5
5
|
Author-email: Alexey Agafonov <128855676+lucir13@users.noreply.github.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/lucir13/markdotserver
|
|
8
8
|
Project-URL: Repository, https://github.com/lucir13/markdotserver
|
|
9
9
|
Project-URL: Issues, https://github.com/lucir13/markdotserver/issues
|
|
10
|
+
Project-URL: Changelog, https://github.com/lucir13/markdotserver/blob/main/CHANGELOG.md
|
|
10
11
|
Keywords: markdown,graphviz,documentation,viewer,dot,svg
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
11
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
17
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
18
|
Classifier: Topic :: Documentation
|
|
14
19
|
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
|
15
|
-
Classifier:
|
|
20
|
+
Classifier: Typing :: Typed
|
|
16
21
|
Requires-Python: >=3.12
|
|
17
22
|
Description-Content-Type: text/markdown
|
|
18
23
|
License-File: LICENSE
|
|
@@ -35,7 +40,8 @@ step, database or generated site, and the server never modifies the documentatio
|
|
|
35
40
|
directory.
|
|
36
41
|
|
|
37
42
|
[](https://github.com/lucir13/markdotserver/actions/workflows/ci.yml)
|
|
38
|
-
[](https://pypi.org/project/markdotserver/)
|
|
44
|
+
[](https://github.com/lucir13/markdotserver/blob/main/LICENSE)
|
|
39
45
|
|
|
40
46
|
## Features
|
|
41
47
|
|
|
@@ -60,11 +66,10 @@ directory.
|
|
|
60
66
|
- Bounded caching for the directory tree and rendered diagrams, and a dedicated
|
|
61
67
|
worker pool so slow documents cannot stall the rest of the server.
|
|
62
68
|
|
|
63
|
-
##
|
|
69
|
+
## Install
|
|
64
70
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
- A modern browser
|
|
71
|
+
`markdotserver` requires Python 3.12 or newer, Graphviz with the `dot` executable on
|
|
72
|
+
`PATH`, and a modern browser.
|
|
68
73
|
|
|
69
74
|
Install Graphviz first, for example:
|
|
70
75
|
|
|
@@ -81,27 +86,31 @@ brew install graphviz
|
|
|
81
86
|
|
|
82
87
|
Verify it with `dot -V`.
|
|
83
88
|
|
|
84
|
-
|
|
89
|
+
Then install the viewer from PyPI:
|
|
85
90
|
|
|
86
|
-
|
|
91
|
+
```bash
|
|
92
|
+
python -m pip install markdotserver
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Verify the installation:
|
|
87
96
|
|
|
88
97
|
```bash
|
|
89
|
-
|
|
90
|
-
source .venv/bin/activate
|
|
91
|
-
python -m pip install --upgrade pip
|
|
92
|
-
python -m pip install -e .
|
|
93
|
-
python -m markdotserver --root examples --port 8765
|
|
98
|
+
markdotserver --version
|
|
94
99
|
```
|
|
95
100
|
|
|
96
|
-
|
|
101
|
+
## Quick start
|
|
97
102
|
|
|
98
|
-
|
|
103
|
+
Point the server at an existing documentation directory:
|
|
99
104
|
|
|
100
105
|
```bash
|
|
101
|
-
|
|
106
|
+
markdotserver --root /path/to/docs
|
|
102
107
|
```
|
|
103
108
|
|
|
104
|
-
|
|
109
|
+
Open <http://127.0.0.1:8000/>. The root must already exist and be readable. If it
|
|
110
|
+
contains `README.md`, `readme.md`, `index.md` or `INDEX.md`, `/` redirects to that
|
|
111
|
+
document; otherwise a welcome page is shown.
|
|
112
|
+
|
|
113
|
+
## Command-line options
|
|
105
114
|
|
|
106
115
|
```text
|
|
107
116
|
--root DIRECTORY documentation root (default: current directory)
|
|
@@ -121,9 +130,19 @@ Useful options:
|
|
|
121
130
|
--version print the version
|
|
122
131
|
```
|
|
123
132
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
133
|
+
## From a source checkout
|
|
134
|
+
|
|
135
|
+
From the repository root:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
python3.12 -m venv .venv
|
|
139
|
+
source .venv/bin/activate
|
|
140
|
+
python -m pip install --upgrade pip
|
|
141
|
+
python -m pip install -e .
|
|
142
|
+
python -m markdotserver --root examples --port 8765
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Open <http://127.0.0.1:8765/>. The server redirects to `examples/README.md`.
|
|
127
146
|
|
|
128
147
|
## Supported formats
|
|
129
148
|
|
|
@@ -165,7 +184,7 @@ Keep the default loopback bind and forward the port over SSH:
|
|
|
165
184
|
|
|
166
185
|
```bash
|
|
167
186
|
# On the server
|
|
168
|
-
|
|
187
|
+
markdotserver --root /srv/docs --port 8765
|
|
169
188
|
|
|
170
189
|
# On the client
|
|
171
190
|
ssh -L 8765:127.0.0.1:8765 user@server.example.com
|
|
@@ -193,7 +212,8 @@ Then open <http://127.0.0.1:8765/> locally.
|
|
|
193
212
|
networks.
|
|
194
213
|
|
|
195
214
|
**Graphviz is not a sandbox.** DOT files must be trusted; malicious graphs can still
|
|
196
|
-
consume resources or exploit Graphviz bugs. See
|
|
215
|
+
consume resources or exploit Graphviz bugs. See
|
|
216
|
+
[Security](https://github.com/lucir13/markdotserver/blob/main/docs/security.md).
|
|
197
217
|
|
|
198
218
|
## Testing
|
|
199
219
|
|
|
@@ -217,27 +237,31 @@ manually against `examples/`.
|
|
|
217
237
|
|
|
218
238
|
## Documentation
|
|
219
239
|
|
|
220
|
-
- [Documentation index](docs/index.md)
|
|
221
|
-
- [Installation](docs/installation.md)
|
|
222
|
-
- [Usage](docs/usage.md)
|
|
223
|
-
- [Supported formats](docs/formats.md)
|
|
224
|
-
- [Architecture](docs/architecture.md)
|
|
225
|
-
- [Security](docs/security.md)
|
|
226
|
-
- [Testing](docs/testing.md)
|
|
227
|
-
- [Limitations](docs/limitations.md)
|
|
228
|
-
- [Detailed design](docs/design.md)
|
|
229
|
-
- [
|
|
230
|
-
- [
|
|
240
|
+
- [Documentation index](https://github.com/lucir13/markdotserver/blob/main/docs/index.md)
|
|
241
|
+
- [Installation](https://github.com/lucir13/markdotserver/blob/main/docs/installation.md)
|
|
242
|
+
- [Usage](https://github.com/lucir13/markdotserver/blob/main/docs/usage.md)
|
|
243
|
+
- [Supported formats](https://github.com/lucir13/markdotserver/blob/main/docs/formats.md)
|
|
244
|
+
- [Architecture](https://github.com/lucir13/markdotserver/blob/main/docs/architecture.md)
|
|
245
|
+
- [Security](https://github.com/lucir13/markdotserver/blob/main/docs/security.md)
|
|
246
|
+
- [Testing](https://github.com/lucir13/markdotserver/blob/main/docs/testing.md)
|
|
247
|
+
- [Limitations](https://github.com/lucir13/markdotserver/blob/main/docs/limitations.md)
|
|
248
|
+
- [Detailed design](https://github.com/lucir13/markdotserver/blob/main/docs/design.md)
|
|
249
|
+
- [Changelog](https://github.com/lucir13/markdotserver/blob/main/CHANGELOG.md)
|
|
250
|
+
- [Security policy](https://github.com/lucir13/markdotserver/blob/main/SECURITY.md)
|
|
251
|
+
- [Third-party notices](https://github.com/lucir13/markdotserver/blob/main/THIRD_PARTY_NOTICES.md)
|
|
231
252
|
|
|
232
253
|
## Project status
|
|
233
254
|
|
|
234
255
|
The project is feature-complete: package scaffolding, configuration and path
|
|
235
256
|
confinement, Graphviz and Markdown rendering, the HTTP interface, the two-pane
|
|
236
257
|
interface, the example tree, complete documentation, hardening and acceptance
|
|
237
|
-
verification are all in place.
|
|
238
|
-
|
|
258
|
+
verification are all in place. Releases are published on
|
|
259
|
+
[PyPI](https://pypi.org/project/markdotserver/). See the
|
|
260
|
+
[detailed design](https://github.com/lucir13/markdotserver/blob/main/docs/design.md)
|
|
261
|
+
for the architecture and implementation decisions.
|
|
239
262
|
|
|
240
263
|
## Licence
|
|
241
264
|
|
|
242
|
-
MIT. See [LICENSE](LICENSE). Reuse
|
|
265
|
+
MIT. See [LICENSE](https://github.com/lucir13/markdotserver/blob/main/LICENSE). Reuse
|
|
266
|
+
and redistribution are permitted provided the
|
|
243
267
|
copyright notice and permission notice in that file are retained with the software.
|
|
@@ -8,7 +8,8 @@ step, database or generated site, and the server never modifies the documentatio
|
|
|
8
8
|
directory.
|
|
9
9
|
|
|
10
10
|
[](https://github.com/lucir13/markdotserver/actions/workflows/ci.yml)
|
|
11
|
-
[](https://pypi.org/project/markdotserver/)
|
|
12
|
+
[](https://github.com/lucir13/markdotserver/blob/main/LICENSE)
|
|
12
13
|
|
|
13
14
|
## Features
|
|
14
15
|
|
|
@@ -33,11 +34,10 @@ directory.
|
|
|
33
34
|
- Bounded caching for the directory tree and rendered diagrams, and a dedicated
|
|
34
35
|
worker pool so slow documents cannot stall the rest of the server.
|
|
35
36
|
|
|
36
|
-
##
|
|
37
|
+
## Install
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
- A modern browser
|
|
39
|
+
`markdotserver` requires Python 3.12 or newer, Graphviz with the `dot` executable on
|
|
40
|
+
`PATH`, and a modern browser.
|
|
41
41
|
|
|
42
42
|
Install Graphviz first, for example:
|
|
43
43
|
|
|
@@ -54,27 +54,31 @@ brew install graphviz
|
|
|
54
54
|
|
|
55
55
|
Verify it with `dot -V`.
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
Then install the viewer from PyPI:
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
```bash
|
|
60
|
+
python -m pip install markdotserver
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Verify the installation:
|
|
60
64
|
|
|
61
65
|
```bash
|
|
62
|
-
|
|
63
|
-
source .venv/bin/activate
|
|
64
|
-
python -m pip install --upgrade pip
|
|
65
|
-
python -m pip install -e .
|
|
66
|
-
python -m markdotserver --root examples --port 8765
|
|
66
|
+
markdotserver --version
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
## Quick start
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
Point the server at an existing documentation directory:
|
|
72
72
|
|
|
73
73
|
```bash
|
|
74
|
-
|
|
74
|
+
markdotserver --root /path/to/docs
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
Open <http://127.0.0.1:8000/>. The root must already exist and be readable. If it
|
|
78
|
+
contains `README.md`, `readme.md`, `index.md` or `INDEX.md`, `/` redirects to that
|
|
79
|
+
document; otherwise a welcome page is shown.
|
|
80
|
+
|
|
81
|
+
## Command-line options
|
|
78
82
|
|
|
79
83
|
```text
|
|
80
84
|
--root DIRECTORY documentation root (default: current directory)
|
|
@@ -94,9 +98,19 @@ Useful options:
|
|
|
94
98
|
--version print the version
|
|
95
99
|
```
|
|
96
100
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
101
|
+
## From a source checkout
|
|
102
|
+
|
|
103
|
+
From the repository root:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
python3.12 -m venv .venv
|
|
107
|
+
source .venv/bin/activate
|
|
108
|
+
python -m pip install --upgrade pip
|
|
109
|
+
python -m pip install -e .
|
|
110
|
+
python -m markdotserver --root examples --port 8765
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Open <http://127.0.0.1:8765/>. The server redirects to `examples/README.md`.
|
|
100
114
|
|
|
101
115
|
## Supported formats
|
|
102
116
|
|
|
@@ -138,7 +152,7 @@ Keep the default loopback bind and forward the port over SSH:
|
|
|
138
152
|
|
|
139
153
|
```bash
|
|
140
154
|
# On the server
|
|
141
|
-
|
|
155
|
+
markdotserver --root /srv/docs --port 8765
|
|
142
156
|
|
|
143
157
|
# On the client
|
|
144
158
|
ssh -L 8765:127.0.0.1:8765 user@server.example.com
|
|
@@ -166,7 +180,8 @@ Then open <http://127.0.0.1:8765/> locally.
|
|
|
166
180
|
networks.
|
|
167
181
|
|
|
168
182
|
**Graphviz is not a sandbox.** DOT files must be trusted; malicious graphs can still
|
|
169
|
-
consume resources or exploit Graphviz bugs. See
|
|
183
|
+
consume resources or exploit Graphviz bugs. See
|
|
184
|
+
[Security](https://github.com/lucir13/markdotserver/blob/main/docs/security.md).
|
|
170
185
|
|
|
171
186
|
## Testing
|
|
172
187
|
|
|
@@ -190,27 +205,31 @@ manually against `examples/`.
|
|
|
190
205
|
|
|
191
206
|
## Documentation
|
|
192
207
|
|
|
193
|
-
- [Documentation index](docs/index.md)
|
|
194
|
-
- [Installation](docs/installation.md)
|
|
195
|
-
- [Usage](docs/usage.md)
|
|
196
|
-
- [Supported formats](docs/formats.md)
|
|
197
|
-
- [Architecture](docs/architecture.md)
|
|
198
|
-
- [Security](docs/security.md)
|
|
199
|
-
- [Testing](docs/testing.md)
|
|
200
|
-
- [Limitations](docs/limitations.md)
|
|
201
|
-
- [Detailed design](docs/design.md)
|
|
202
|
-
- [
|
|
203
|
-
- [
|
|
208
|
+
- [Documentation index](https://github.com/lucir13/markdotserver/blob/main/docs/index.md)
|
|
209
|
+
- [Installation](https://github.com/lucir13/markdotserver/blob/main/docs/installation.md)
|
|
210
|
+
- [Usage](https://github.com/lucir13/markdotserver/blob/main/docs/usage.md)
|
|
211
|
+
- [Supported formats](https://github.com/lucir13/markdotserver/blob/main/docs/formats.md)
|
|
212
|
+
- [Architecture](https://github.com/lucir13/markdotserver/blob/main/docs/architecture.md)
|
|
213
|
+
- [Security](https://github.com/lucir13/markdotserver/blob/main/docs/security.md)
|
|
214
|
+
- [Testing](https://github.com/lucir13/markdotserver/blob/main/docs/testing.md)
|
|
215
|
+
- [Limitations](https://github.com/lucir13/markdotserver/blob/main/docs/limitations.md)
|
|
216
|
+
- [Detailed design](https://github.com/lucir13/markdotserver/blob/main/docs/design.md)
|
|
217
|
+
- [Changelog](https://github.com/lucir13/markdotserver/blob/main/CHANGELOG.md)
|
|
218
|
+
- [Security policy](https://github.com/lucir13/markdotserver/blob/main/SECURITY.md)
|
|
219
|
+
- [Third-party notices](https://github.com/lucir13/markdotserver/blob/main/THIRD_PARTY_NOTICES.md)
|
|
204
220
|
|
|
205
221
|
## Project status
|
|
206
222
|
|
|
207
223
|
The project is feature-complete: package scaffolding, configuration and path
|
|
208
224
|
confinement, Graphviz and Markdown rendering, the HTTP interface, the two-pane
|
|
209
225
|
interface, the example tree, complete documentation, hardening and acceptance
|
|
210
|
-
verification are all in place.
|
|
211
|
-
|
|
226
|
+
verification are all in place. Releases are published on
|
|
227
|
+
[PyPI](https://pypi.org/project/markdotserver/). See the
|
|
228
|
+
[detailed design](https://github.com/lucir13/markdotserver/blob/main/docs/design.md)
|
|
229
|
+
for the architecture and implementation decisions.
|
|
212
230
|
|
|
213
231
|
## Licence
|
|
214
232
|
|
|
215
|
-
MIT. See [LICENSE](LICENSE). Reuse
|
|
233
|
+
MIT. See [LICENSE](https://github.com/lucir13/markdotserver/blob/main/LICENSE). Reuse
|
|
234
|
+
and redistribution are permitted provided the
|
|
216
235
|
copyright notice and permission notice in that file are retained with the software.
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "markdotserver"
|
|
7
|
-
|
|
7
|
+
dynamic = ["version"]
|
|
8
8
|
description = "Lightweight, read-only HTTP viewer for Markdown and Graphviz documentation"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.12"
|
|
@@ -15,11 +15,15 @@ authors = [
|
|
|
15
15
|
]
|
|
16
16
|
keywords = ["markdown", "graphviz", "documentation", "viewer", "dot", "svg"]
|
|
17
17
|
classifiers = [
|
|
18
|
+
"Development Status :: 4 - Beta",
|
|
19
|
+
"Environment :: Console",
|
|
20
|
+
"Intended Audience :: Developers",
|
|
18
21
|
"Programming Language :: Python :: 3.12",
|
|
22
|
+
"Programming Language :: Python :: 3.13",
|
|
19
23
|
"Programming Language :: Python :: 3 :: Only",
|
|
20
24
|
"Topic :: Documentation",
|
|
21
25
|
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
|
|
22
|
-
"
|
|
26
|
+
"Typing :: Typed",
|
|
23
27
|
]
|
|
24
28
|
# Lower bounds are the oldest releases the implementation is verified against.
|
|
25
29
|
# They are deliberately permissive so embedders can resolve markdotserver
|
|
@@ -43,6 +47,7 @@ markdotserver = "markdotserver.__main__:main"
|
|
|
43
47
|
Homepage = "https://github.com/lucir13/markdotserver"
|
|
44
48
|
Repository = "https://github.com/lucir13/markdotserver"
|
|
45
49
|
Issues = "https://github.com/lucir13/markdotserver/issues"
|
|
50
|
+
Changelog = "https://github.com/lucir13/markdotserver/blob/main/CHANGELOG.md"
|
|
46
51
|
|
|
47
52
|
[dependency-groups]
|
|
48
53
|
# Starlette 1.x imports httpx2 for its TestClient and falls back to httpx, so
|
|
@@ -58,6 +63,9 @@ dev = [
|
|
|
58
63
|
"types-Pygments>=2.17",
|
|
59
64
|
]
|
|
60
65
|
|
|
66
|
+
[tool.setuptools.dynamic]
|
|
67
|
+
version = { attr = "markdotserver.__version__" }
|
|
68
|
+
|
|
61
69
|
[tool.setuptools.packages.find]
|
|
62
70
|
where = ["src"]
|
|
63
71
|
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: markdotserver
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Lightweight, read-only HTTP viewer for Markdown and Graphviz documentation
|
|
5
5
|
Author-email: Alexey Agafonov <128855676+lucir13@users.noreply.github.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/lucir13/markdotserver
|
|
8
8
|
Project-URL: Repository, https://github.com/lucir13/markdotserver
|
|
9
9
|
Project-URL: Issues, https://github.com/lucir13/markdotserver/issues
|
|
10
|
+
Project-URL: Changelog, https://github.com/lucir13/markdotserver/blob/main/CHANGELOG.md
|
|
10
11
|
Keywords: markdown,graphviz,documentation,viewer,dot,svg
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
11
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
17
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
18
|
Classifier: Topic :: Documentation
|
|
14
19
|
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
|
15
|
-
Classifier:
|
|
20
|
+
Classifier: Typing :: Typed
|
|
16
21
|
Requires-Python: >=3.12
|
|
17
22
|
Description-Content-Type: text/markdown
|
|
18
23
|
License-File: LICENSE
|
|
@@ -35,7 +40,8 @@ step, database or generated site, and the server never modifies the documentatio
|
|
|
35
40
|
directory.
|
|
36
41
|
|
|
37
42
|
[](https://github.com/lucir13/markdotserver/actions/workflows/ci.yml)
|
|
38
|
-
[](https://pypi.org/project/markdotserver/)
|
|
44
|
+
[](https://github.com/lucir13/markdotserver/blob/main/LICENSE)
|
|
39
45
|
|
|
40
46
|
## Features
|
|
41
47
|
|
|
@@ -60,11 +66,10 @@ directory.
|
|
|
60
66
|
- Bounded caching for the directory tree and rendered diagrams, and a dedicated
|
|
61
67
|
worker pool so slow documents cannot stall the rest of the server.
|
|
62
68
|
|
|
63
|
-
##
|
|
69
|
+
## Install
|
|
64
70
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
- A modern browser
|
|
71
|
+
`markdotserver` requires Python 3.12 or newer, Graphviz with the `dot` executable on
|
|
72
|
+
`PATH`, and a modern browser.
|
|
68
73
|
|
|
69
74
|
Install Graphviz first, for example:
|
|
70
75
|
|
|
@@ -81,27 +86,31 @@ brew install graphviz
|
|
|
81
86
|
|
|
82
87
|
Verify it with `dot -V`.
|
|
83
88
|
|
|
84
|
-
|
|
89
|
+
Then install the viewer from PyPI:
|
|
85
90
|
|
|
86
|
-
|
|
91
|
+
```bash
|
|
92
|
+
python -m pip install markdotserver
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Verify the installation:
|
|
87
96
|
|
|
88
97
|
```bash
|
|
89
|
-
|
|
90
|
-
source .venv/bin/activate
|
|
91
|
-
python -m pip install --upgrade pip
|
|
92
|
-
python -m pip install -e .
|
|
93
|
-
python -m markdotserver --root examples --port 8765
|
|
98
|
+
markdotserver --version
|
|
94
99
|
```
|
|
95
100
|
|
|
96
|
-
|
|
101
|
+
## Quick start
|
|
97
102
|
|
|
98
|
-
|
|
103
|
+
Point the server at an existing documentation directory:
|
|
99
104
|
|
|
100
105
|
```bash
|
|
101
|
-
|
|
106
|
+
markdotserver --root /path/to/docs
|
|
102
107
|
```
|
|
103
108
|
|
|
104
|
-
|
|
109
|
+
Open <http://127.0.0.1:8000/>. The root must already exist and be readable. If it
|
|
110
|
+
contains `README.md`, `readme.md`, `index.md` or `INDEX.md`, `/` redirects to that
|
|
111
|
+
document; otherwise a welcome page is shown.
|
|
112
|
+
|
|
113
|
+
## Command-line options
|
|
105
114
|
|
|
106
115
|
```text
|
|
107
116
|
--root DIRECTORY documentation root (default: current directory)
|
|
@@ -121,9 +130,19 @@ Useful options:
|
|
|
121
130
|
--version print the version
|
|
122
131
|
```
|
|
123
132
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
133
|
+
## From a source checkout
|
|
134
|
+
|
|
135
|
+
From the repository root:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
python3.12 -m venv .venv
|
|
139
|
+
source .venv/bin/activate
|
|
140
|
+
python -m pip install --upgrade pip
|
|
141
|
+
python -m pip install -e .
|
|
142
|
+
python -m markdotserver --root examples --port 8765
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Open <http://127.0.0.1:8765/>. The server redirects to `examples/README.md`.
|
|
127
146
|
|
|
128
147
|
## Supported formats
|
|
129
148
|
|
|
@@ -165,7 +184,7 @@ Keep the default loopback bind and forward the port over SSH:
|
|
|
165
184
|
|
|
166
185
|
```bash
|
|
167
186
|
# On the server
|
|
168
|
-
|
|
187
|
+
markdotserver --root /srv/docs --port 8765
|
|
169
188
|
|
|
170
189
|
# On the client
|
|
171
190
|
ssh -L 8765:127.0.0.1:8765 user@server.example.com
|
|
@@ -193,7 +212,8 @@ Then open <http://127.0.0.1:8765/> locally.
|
|
|
193
212
|
networks.
|
|
194
213
|
|
|
195
214
|
**Graphviz is not a sandbox.** DOT files must be trusted; malicious graphs can still
|
|
196
|
-
consume resources or exploit Graphviz bugs. See
|
|
215
|
+
consume resources or exploit Graphviz bugs. See
|
|
216
|
+
[Security](https://github.com/lucir13/markdotserver/blob/main/docs/security.md).
|
|
197
217
|
|
|
198
218
|
## Testing
|
|
199
219
|
|
|
@@ -217,27 +237,31 @@ manually against `examples/`.
|
|
|
217
237
|
|
|
218
238
|
## Documentation
|
|
219
239
|
|
|
220
|
-
- [Documentation index](docs/index.md)
|
|
221
|
-
- [Installation](docs/installation.md)
|
|
222
|
-
- [Usage](docs/usage.md)
|
|
223
|
-
- [Supported formats](docs/formats.md)
|
|
224
|
-
- [Architecture](docs/architecture.md)
|
|
225
|
-
- [Security](docs/security.md)
|
|
226
|
-
- [Testing](docs/testing.md)
|
|
227
|
-
- [Limitations](docs/limitations.md)
|
|
228
|
-
- [Detailed design](docs/design.md)
|
|
229
|
-
- [
|
|
230
|
-
- [
|
|
240
|
+
- [Documentation index](https://github.com/lucir13/markdotserver/blob/main/docs/index.md)
|
|
241
|
+
- [Installation](https://github.com/lucir13/markdotserver/blob/main/docs/installation.md)
|
|
242
|
+
- [Usage](https://github.com/lucir13/markdotserver/blob/main/docs/usage.md)
|
|
243
|
+
- [Supported formats](https://github.com/lucir13/markdotserver/blob/main/docs/formats.md)
|
|
244
|
+
- [Architecture](https://github.com/lucir13/markdotserver/blob/main/docs/architecture.md)
|
|
245
|
+
- [Security](https://github.com/lucir13/markdotserver/blob/main/docs/security.md)
|
|
246
|
+
- [Testing](https://github.com/lucir13/markdotserver/blob/main/docs/testing.md)
|
|
247
|
+
- [Limitations](https://github.com/lucir13/markdotserver/blob/main/docs/limitations.md)
|
|
248
|
+
- [Detailed design](https://github.com/lucir13/markdotserver/blob/main/docs/design.md)
|
|
249
|
+
- [Changelog](https://github.com/lucir13/markdotserver/blob/main/CHANGELOG.md)
|
|
250
|
+
- [Security policy](https://github.com/lucir13/markdotserver/blob/main/SECURITY.md)
|
|
251
|
+
- [Third-party notices](https://github.com/lucir13/markdotserver/blob/main/THIRD_PARTY_NOTICES.md)
|
|
231
252
|
|
|
232
253
|
## Project status
|
|
233
254
|
|
|
234
255
|
The project is feature-complete: package scaffolding, configuration and path
|
|
235
256
|
confinement, Graphviz and Markdown rendering, the HTTP interface, the two-pane
|
|
236
257
|
interface, the example tree, complete documentation, hardening and acceptance
|
|
237
|
-
verification are all in place.
|
|
238
|
-
|
|
258
|
+
verification are all in place. Releases are published on
|
|
259
|
+
[PyPI](https://pypi.org/project/markdotserver/). See the
|
|
260
|
+
[detailed design](https://github.com/lucir13/markdotserver/blob/main/docs/design.md)
|
|
261
|
+
for the architecture and implementation decisions.
|
|
239
262
|
|
|
240
263
|
## Licence
|
|
241
264
|
|
|
242
|
-
MIT. See [LICENSE](LICENSE). Reuse
|
|
265
|
+
MIT. See [LICENSE](https://github.com/lucir13/markdotserver/blob/main/LICENSE). Reuse
|
|
266
|
+
and redistribution are permitted provided the
|
|
243
267
|
copyright notice and permission notice in that file are retained with the software.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/templates/partials/directory_tree.html
RENAMED
|
File without changes
|
{markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/templates/partials/document.html
RENAMED
|
File without changes
|
|
File without changes
|
{markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/templates/partials/headings.html
RENAMED
|
File without changes
|
{markdotserver-0.1.0 → markdotserver-0.1.1}/src/markdotserver/templates/partials/toolbar.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|