hypermarkdown 0.5.0__tar.gz → 0.5.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.
Files changed (35) hide show
  1. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/CHANGELOG.md +14 -2
  2. {hypermarkdown-0.5.0/src/hypermarkdown.egg-info → hypermarkdown-0.5.1}/PKG-INFO +13 -11
  3. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/README.md +12 -10
  4. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/__init__.py +1 -1
  5. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/config.py +2 -2
  6. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1/src/hypermarkdown.egg-info}/PKG-INFO +13 -11
  7. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/LICENSE +0 -0
  8. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/MANIFEST.in +0 -0
  9. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/pyproject.toml +0 -0
  10. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/setup.cfg +0 -0
  11. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/cli.py +0 -0
  12. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/diagram.py +0 -0
  13. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/embed.py +0 -0
  14. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/frontmatter.py +0 -0
  15. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/frontmatter_position.py +0 -0
  16. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/graph.py +0 -0
  17. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/highlight.py +0 -0
  18. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/imports.py +0 -0
  19. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/lint/__init__.py +0 -0
  20. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/lint/report.py +0 -0
  21. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/lint/rules.py +0 -0
  22. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/mkdocs_plugin.py +0 -0
  23. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/model.py +0 -0
  24. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/parse.py +0 -0
  25. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/render/__init__.py +0 -0
  26. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/render/flat.py +0 -0
  27. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/render/ids.py +0 -0
  28. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/resolve.py +0 -0
  29. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/scan.py +0 -0
  30. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown/urls.py +0 -0
  31. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown.egg-info/SOURCES.txt +0 -0
  32. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown.egg-info/dependency_links.txt +0 -0
  33. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown.egg-info/entry_points.txt +0 -0
  34. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown.egg-info/requires.txt +0 -0
  35. {hypermarkdown-0.5.0 → hypermarkdown-0.5.1}/src/hypermarkdown.egg-info/top_level.txt +0 -0
@@ -13,6 +13,17 @@ only for the Python API.
13
13
 
14
14
  ## [Unreleased]
15
15
 
16
+ ## [0.5.1] — 2026-11-25
17
+
18
+ ### Changed
19
+ - **A tree with no vault says "vault not found".** With no `.hmd/` in the
20
+ start directory or above it, and no `--root`, every command still exits 2,
21
+ and the error now reads the way git's does outside a repository. It starts
22
+ with "vault not found", names the directory searched from, and says to run
23
+ `hmd init` to initialize a vault or to pass `--root`.
24
+ - The README describes `location_path` and `hmd init --location-path`, where it
25
+ still described the `wiki` setting and the `--wiki` flag that 0.5.0 removed.
26
+
16
27
  ## [0.5.0] — 2026-11-25
17
28
 
18
29
  ### Added
@@ -161,7 +172,7 @@ only for the Python API.
161
172
  ## [0.4.0] — 2026-11-15
162
173
 
163
174
  ### Added
164
- - **Markdown files are cards** ([HMD-0029](https://github.com/ewiger/hypermarkdown/blob/main/doc/proposals/HMD-0029/README.md)).
175
+ - **Markdown files are cards** ([HMD-0029](https://github.com/ewiger/hypermarkdown/blob/main/doc/proposals/HMD-0029/index.hmd)).
165
176
  A `.md` or `.markdown` file below the namespace root loads as a Markdown card:
166
177
  `[[guide]]` resolves to `guide.md`, `[[guide#Install]]` checks its headings,
167
178
  and `![[guide]]` transcludes its body. Its body is not scanned and not
@@ -457,7 +468,8 @@ Deliberate, and tracked per proposal under `doc/proposals/HMD-NNNN/STATUS.md`:
457
468
  Both specifications — the format and the site — are still `drafted`. Expect the
458
469
  format to move before `1.0`.
459
470
 
460
- [Unreleased]: https://github.com/ewiger/hypermarkdown/compare/v0.5.0...HEAD
471
+ [Unreleased]: https://github.com/ewiger/hypermarkdown/compare/v0.5.1...HEAD
472
+ [0.5.1]: https://github.com/ewiger/hypermarkdown/compare/v0.5.0...v0.5.1
461
473
  [0.5.0]: https://github.com/ewiger/hypermarkdown/compare/v0.4.0...v0.5.0
462
474
  [0.4.0]: https://github.com/ewiger/hypermarkdown/compare/v0.3.1...v0.4.0
463
475
  [0.3.1]: https://github.com/ewiger/hypermarkdown/compare/v0.3.0...v0.3.1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hypermarkdown
3
- Version: 0.5.0
3
+ Version: 0.5.1
4
4
  Summary: A strict, machine-checkable markdown dialect for project knowledge bases.
5
5
  Author: Yauhen Yakimovich
6
6
  License-Expression: MIT
@@ -55,8 +55,8 @@ Dynamic: license-file
55
55
  HyperMarkDown (`.hmd`) is ordinary GitHub-flavored markdown plus the part HTML
56
56
  had on its first day: a link that means something, a page that can be made out
57
57
  of other pages, a document that is part of a web rather than a file in a folder.
58
- Every `.md` file is already valid `.hmd`, so a tree is adopted one rename at a
59
- time.
58
+ Every `.md` file is already valid `.hmd`. Once a tree has a `.hmd/` directory
59
+ at its top, which `hmd init` creates, it can be adopted one file at a time.
60
60
 
61
61
  This distribution is the **canonical implementation** of that format. It ships
62
62
  three things:
@@ -154,23 +154,25 @@ Every other key is yours, and nothing will inspect it.
154
154
  | `hmd info` | Show the resolved root and discovery policy |
155
155
  | `hmd --version` | Print the installed version |
156
156
 
157
- The `wiki` setting in `.hmd/config.toml` is the cards location: where inside
158
- the vault, the directory holding `.hmd/`, the cards start (`doc/wiki` by
159
- default, `.` for directly under the vault). The directory it names is the
160
- namespace root, and every command but `init` takes `--root` to override it. A
157
+ The `location_path` setting in `.hmd/config.toml` is the cards location: where
158
+ inside the vault, the directory holding `.hmd/`, the cards start. It defaults
159
+ to `.`, the vault itself, so an empty `.hmd/` directory is a complete vault. The
160
+ directory it names is the namespace root, and every command but `init` takes
161
+ `--root` to override it. A config that still sets `wiki`, the setting's name
162
+ before HyperMarkDown 0.1, is refused. A
161
163
  `.hmd/` directory doubles as the project root marker, so any subtree can be
162
164
  self-contained, and it is the only marker: a `.git` directory is not one, so a
163
165
  tree with no `.hmd/` above it needs `--root`.
164
166
 
165
167
  ```bash
166
168
  hmd init # here; the namespace is named after the directory
167
- hmd init path/to/project --wiki notes --name shared
169
+ hmd init path/to/project --location-path notes --name shared
168
170
  ```
169
171
 
170
172
  `init` writes every setting at its default rather than leaving them implicit —
171
- the file is where you find out which keys exist. It creates the wiki root
172
- alongside the config, since a `wiki` setting pointing at nothing is an error
173
- every later command reports. It refuses to replace a config it did not write;
173
+ the file is where you find out which keys exist. It creates the directory
174
+ `--location-path` names alongside the config, since a `location_path` setting
175
+ that points at nothing is an error every later command reports. It refuses to replace a config it did not write;
174
176
  `--force` overrides that.
175
177
 
176
178
  The `[namespace]` section names this tree so another project can bind to it and
@@ -17,8 +17,8 @@
17
17
  HyperMarkDown (`.hmd`) is ordinary GitHub-flavored markdown plus the part HTML
18
18
  had on its first day: a link that means something, a page that can be made out
19
19
  of other pages, a document that is part of a web rather than a file in a folder.
20
- Every `.md` file is already valid `.hmd`, so a tree is adopted one rename at a
21
- time.
20
+ Every `.md` file is already valid `.hmd`. Once a tree has a `.hmd/` directory
21
+ at its top, which `hmd init` creates, it can be adopted one file at a time.
22
22
 
23
23
  This distribution is the **canonical implementation** of that format. It ships
24
24
  three things:
@@ -116,23 +116,25 @@ Every other key is yours, and nothing will inspect it.
116
116
  | `hmd info` | Show the resolved root and discovery policy |
117
117
  | `hmd --version` | Print the installed version |
118
118
 
119
- The `wiki` setting in `.hmd/config.toml` is the cards location: where inside
120
- the vault, the directory holding `.hmd/`, the cards start (`doc/wiki` by
121
- default, `.` for directly under the vault). The directory it names is the
122
- namespace root, and every command but `init` takes `--root` to override it. A
119
+ The `location_path` setting in `.hmd/config.toml` is the cards location: where
120
+ inside the vault, the directory holding `.hmd/`, the cards start. It defaults
121
+ to `.`, the vault itself, so an empty `.hmd/` directory is a complete vault. The
122
+ directory it names is the namespace root, and every command but `init` takes
123
+ `--root` to override it. A config that still sets `wiki`, the setting's name
124
+ before HyperMarkDown 0.1, is refused. A
123
125
  `.hmd/` directory doubles as the project root marker, so any subtree can be
124
126
  self-contained, and it is the only marker: a `.git` directory is not one, so a
125
127
  tree with no `.hmd/` above it needs `--root`.
126
128
 
127
129
  ```bash
128
130
  hmd init # here; the namespace is named after the directory
129
- hmd init path/to/project --wiki notes --name shared
131
+ hmd init path/to/project --location-path notes --name shared
130
132
  ```
131
133
 
132
134
  `init` writes every setting at its default rather than leaving them implicit —
133
- the file is where you find out which keys exist. It creates the wiki root
134
- alongside the config, since a `wiki` setting pointing at nothing is an error
135
- every later command reports. It refuses to replace a config it did not write;
135
+ the file is where you find out which keys exist. It creates the directory
136
+ `--location-path` names alongside the config, since a `location_path` setting
137
+ that points at nothing is an error every later command reports. It refuses to replace a config it did not write;
136
138
  `--force` overrides that.
137
139
 
138
140
  The `[namespace]` section names this tree so another project can bind to it and
@@ -15,7 +15,7 @@ from .config import Config, ConfigError
15
15
  from .model import Diagnostic, Document, Link, Span
16
16
  from .resolve import Outcome, Resolution, Workspace
17
17
 
18
- __version__ = "0.5.0"
18
+ __version__ = "0.5.1"
19
19
 
20
20
  __all__ = [
21
21
  "Config",
@@ -140,8 +140,8 @@ def load(root_override: Path | None = None, start: Path | None = None) -> Config
140
140
  project = find_project_root(start)
141
141
  if project is None:
142
142
  raise ConfigError(
143
- f"no project root above {start}: expected a .hmd/ directory. "
144
- f"Run `hmd init`, or pass --root to name the namespace root directly."
143
+ f"vault not found: no .hmd/ directory in {start} or any directory above it. "
144
+ f"Run `hmd init` to initialize a vault, or pass --root to name the namespace root directly."
145
145
  )
146
146
 
147
147
  data, source = _read(project)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hypermarkdown
3
- Version: 0.5.0
3
+ Version: 0.5.1
4
4
  Summary: A strict, machine-checkable markdown dialect for project knowledge bases.
5
5
  Author: Yauhen Yakimovich
6
6
  License-Expression: MIT
@@ -55,8 +55,8 @@ Dynamic: license-file
55
55
  HyperMarkDown (`.hmd`) is ordinary GitHub-flavored markdown plus the part HTML
56
56
  had on its first day: a link that means something, a page that can be made out
57
57
  of other pages, a document that is part of a web rather than a file in a folder.
58
- Every `.md` file is already valid `.hmd`, so a tree is adopted one rename at a
59
- time.
58
+ Every `.md` file is already valid `.hmd`. Once a tree has a `.hmd/` directory
59
+ at its top, which `hmd init` creates, it can be adopted one file at a time.
60
60
 
61
61
  This distribution is the **canonical implementation** of that format. It ships
62
62
  three things:
@@ -154,23 +154,25 @@ Every other key is yours, and nothing will inspect it.
154
154
  | `hmd info` | Show the resolved root and discovery policy |
155
155
  | `hmd --version` | Print the installed version |
156
156
 
157
- The `wiki` setting in `.hmd/config.toml` is the cards location: where inside
158
- the vault, the directory holding `.hmd/`, the cards start (`doc/wiki` by
159
- default, `.` for directly under the vault). The directory it names is the
160
- namespace root, and every command but `init` takes `--root` to override it. A
157
+ The `location_path` setting in `.hmd/config.toml` is the cards location: where
158
+ inside the vault, the directory holding `.hmd/`, the cards start. It defaults
159
+ to `.`, the vault itself, so an empty `.hmd/` directory is a complete vault. The
160
+ directory it names is the namespace root, and every command but `init` takes
161
+ `--root` to override it. A config that still sets `wiki`, the setting's name
162
+ before HyperMarkDown 0.1, is refused. A
161
163
  `.hmd/` directory doubles as the project root marker, so any subtree can be
162
164
  self-contained, and it is the only marker: a `.git` directory is not one, so a
163
165
  tree with no `.hmd/` above it needs `--root`.
164
166
 
165
167
  ```bash
166
168
  hmd init # here; the namespace is named after the directory
167
- hmd init path/to/project --wiki notes --name shared
169
+ hmd init path/to/project --location-path notes --name shared
168
170
  ```
169
171
 
170
172
  `init` writes every setting at its default rather than leaving them implicit —
171
- the file is where you find out which keys exist. It creates the wiki root
172
- alongside the config, since a `wiki` setting pointing at nothing is an error
173
- every later command reports. It refuses to replace a config it did not write;
173
+ the file is where you find out which keys exist. It creates the directory
174
+ `--location-path` names alongside the config, since a `location_path` setting
175
+ that points at nothing is an error every later command reports. It refuses to replace a config it did not write;
174
176
  `--force` overrides that.
175
177
 
176
178
  The `[namespace]` section names this tree so another project can bind to it and
File without changes
File without changes
File without changes