Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Section IDs/Anchors Naming Convention and Lookup-Table #7

@tajmone

Description

@tajmone

It would be really useful if the PML Reference Manual had a naming-convention for its chapters IDs, so that links targeting specific sections can rely on their anchors always being valid across updates to the RefMan.

We already have this with the specific nodes, which have anchors in the form node_<tag>, which works really great! But we lack something similar for the anchors of the sections that group similar nodes, like:

  • Block Nodes
    • Fundamental Nodes
    • Common Nodes
    • etc.
  • Inline Nodes
    • etc.

which all rely on auto-generated IDs/anchors, which makes it hard to provide links in projects READMEs, articles, etc.

I propose to adopt a simple convention that will remain unchanged even if the titles of these sections change slightly, i.e. by choosing as anchors the minimum terms that identify them:

section anchor
Block Nodes block-nodes
Fundamental Nodes fundamental-nodes
Common Nodes common-nodes
Inline Nodes inline-nodes

Unlike the naming convention for specific nodes, which uses an underscore to separate node_ from the tag name, I sugget we use hyphens so it's clear that the anchor is about a category, or a generic section, and not the anchor of a specific node or syntax element.

Whatever the final choice, it would be great to have the naming convention explained in a dedicated document, and provide a lookup table so end-users can consult it for when they need to link back their articles/docs to the PML RefMan.

Obviously, something similar would be nice to have also with the other PML manuals, although the RefMan is probably the more urgent one.

E.g. in the Sublime PML repo, as well as the PML Playground, I'm struggling to keep my links up-to-date, since the auto-generated anchors keep changing number with each updated, which means I have to revisit every link in the project(s) docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions