-
Notifications
You must be signed in to change notification settings - Fork 0
Restore the Interdefinables heading hierarchy #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7825d8a
Preserve Interdefinables heading hierarchy
erinepshovel-code 0cf6fc9
Test Interdefinables nested hierarchy
erinepshovel-code 16964ed
Render nested canon heading levels
erinepshovel-code c010acf
Style nested canon outline levels
erinepshovel-code 2515f4d
Gate canonical heading hierarchy
erinepshovel-code 9abd22c
Assert generated canon heading parents
erinepshovel-code 445b8a8
Verify rendered Interdefinables hierarchy
erinepshovel-code 7c72aab
Document canonical heading hierarchy
erinepshovel-code 8fe9938
Expose immediate canon heading parent
erinepshovel-code File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,30 @@ | ||
| # Content model | ||
|
|
||
| - Canon units: parsed headings with stable IDs, line ranges, and SHA-256 hashes. | ||
| ## Canon hierarchy | ||
|
|
||
| Canon units are parsed headings with stable IDs, line ranges, SHA-256 hashes, major-section membership, and immediate heading-parent relationships. | ||
|
|
||
| The opening hierarchy is load-bearing: | ||
|
|
||
| ```text | ||
| Awakening | ||
| The Interdefinables | ||
| Human consciousness emerges from | ||
| Binary essences... | ||
| Trinary perceptual focal states... | ||
| Trinary states of social perception... | ||
| Archetype passions of possession... | ||
| Preamble | ||
| Rights and Definitions of The Way | ||
| ``` | ||
|
|
||
| `Human consciousness emerges from` is not a peer section. It is a subheading beneath `The Interdefinables`; its binary, trinary, and archetype headings are nested beneath it. `Preamble` is the next major section after `The Interdefinables`. | ||
|
|
||
| ## Other records | ||
|
|
||
| - Project records: public GitHub facts plus visible `hmmm` when editorial metadata is missing. | ||
| - Lab records: generated per canon unit, with reviewed research gaps explicitly shown. | ||
|
|
||
| ## Usage guidance | ||
|
|
||
| Run `npm run validate` after a canon refresh. The validation gate rejects a build that promotes `Human consciousness emerges from` to a section, assigns it outside `The Interdefinables`, loses its immediate parent, or places another major section between `The Interdefinables` and `Preamble` in the controlling remote canon. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| --- | ||
| layout: layouts/base.njk | ||
| title: Explore The Way | ||
| description: A sectioned companion map of The Interdependent Way, with exact source available one deliberate layer deeper. | ||
| description: A sectioned and nested companion map of The Interdependent Way, with exact source available one deliberate layer deeper. | ||
| --- | ||
| <header class="page-head"><p class="eyebrow">Canon-derived map</p><h1>Explore The Way</h1><p class="lede">This layer identifies the shape and relations of the source. It does not replace the canon. Open a unit for orientation, then choose its Lab conversation or exact source.</p></header> | ||
| <header class="page-head"><p class="eyebrow">Canon-derived map</p><h1>Explore The Way</h1><p class="lede">This layer identifies the shape and relations of the source. Major sections, subheadings, and nested headings remain visibly distinct. It does not replace the canon. Open a unit for orientation, then choose its Lab conversation or exact source.</p></header> | ||
| {% for section in generated.canon.sections %} | ||
| <section class="category"><p class="eyebrow">{{ section.id }}</p><h2>{{ section.title }}</h2><ul class="index-list">{% for unit in generated.canon.units %}{% if unit.section == section.id %}<li><a href="/way/{{ unit.routeSlug }}/"><small>lines {{ unit.startLine }}–{{ unit.endLine }}</small><strong>{{ unit.title }}</strong><span class="status status-canon">canon-derived</span></a></li>{% endif %}{% endfor %}</ul></section> | ||
| <section class="category"><p class="eyebrow">{{ section.id }}</p><h2>{{ section.title }}</h2><ul class="index-list canon-outline">{% for unit in generated.canon.units %}{% if unit.section == section.id %}<li class="unit-level-{{ unit.level }}" data-parent-id="{{ unit.parentId or '' }}"><a href="/way/{{ unit.routeSlug }}/"><small>lines {{ unit.startLine }}–{{ unit.endLine }} · {% if unit.level <= 2 %}section{% elif unit.level == 3 %}subheading{% else %}nested heading{% endif %}</small><strong>{{ unit.title }}</strong><span class="status status-canon">canon-derived</span></a></li>{% endif %}{% endfor %}</ul></section> | ||
| {% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a refreshed canon repeats a heading slug within the same section and either copy has lower-level children, this stores the pre-deduplicated
idinheadingStack; the duplicate pass later suffixesunit.idvalues but never rewrites existingparentIds. Those children then get danglingheading-parentedges and the new unit page parent lookup renders an empty “Parent heading” despite the parent unit existing under its suffixed ID.Useful? React with 👍 / 👎.