Skip to content
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

feature-request: Render page titles when using page references #1303

Open
davesnx opened this issue Feb 6, 2025 · 0 comments
Open

feature-request: Render page titles when using page references #1303

davesnx opened this issue Feb 6, 2025 · 0 comments

Comments

@davesnx
Copy link

davesnx commented Feb 6, 2025

Currently referencing a page is done via {{!page-"name_of_the_mld_file"}Some random text}, would be nice to render the title of that name_of_the_mld_file.mld when no text is being added as reference.

It currently works like this on the sidebar, where the title ({0 }) of the page gets rendered on the sidebar.

Example

{ol
  {li {{!page-"get-started"}}}
  {li {{!page-"basic-usage"}}}
  {li {{!page-"universal-code"}}}
  {li {{!page-"how-to-organise-universal-code"}}}
  {li {{!page-"browser_ppx"}}}
  {li {{!page-"externals-melange-attributes"}}}
}

should be equivalent of (assuming that those texts are the titles of the pages)

{ol
  {li {{!page-"get-started"}Get started}}
  {li {{!page-"basic-usage"}Basic usage}}
  {li {{!page-"universal-code"}What does universal code mean?}}
  {li {{!page-"how-to-organise-universal-code"}How to organise universal code}}
  {li {{!page-"browser_ppx"}Exclude client code from the native build}}
  {li {{!page-"externals-melange-attributes"}Externals and melange attributes}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant