Skip to content

Docs: Research solution for reusable page meta data #10157

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

Closed
benjaoming opened this issue Mar 16, 2023 · 4 comments
Closed

Docs: Research solution for reusable page meta data #10157

benjaoming opened this issue Mar 16, 2023 · 4 comments
Labels
Needed: design decision A core team decision is required

Comments

@benjaoming
Copy link
Contributor

benjaoming commented Mar 16, 2023

Problem statement

Our how-to guides and feature reference roughly consist of 3 string data elements that are reused or used in a different context than the page itself:

  1. "TOC label"
  2. "Short title"
  3. "Lead paragraph"

image

While it's possible to be pragmatic or accept compromises regarding labels, the outcome will most certainly be less attractive: More cluttered navigation and texts that exist outside of their context and will eventually be forgotten in updates.

Possibilities

We just focus on the 3 above examples of meta data fields, but the Feature Reference could benefit from more meta data. What is a "feature"? What does it consist of? Perhaps all features could have a link to a howto guide, perhaps all features could have a screenshot etc.

We are perhaps wanting to using Sphinx as a conventional static site generator. Think of how Hugo uses front matter.

Solutions?

a) If there's an existing way to do it: We do it!
b) If it requires to write an extension, we need to decide if its worth it..

Meanwhile, the current situation of maintaining duplicate content will unfold, and we'll see how badly it goes or if its acceptable.


Branched out from #10131

@benjaoming benjaoming added the Needed: design decision A core team decision is required label Mar 16, 2023
@benjaoming
Copy link
Contributor Author

benjaoming commented Mar 16, 2023

A quick note on what we already did:

  1. We looked into https://www.sphinx-doc.org/en/master/usage/restructuredtext/field-lists.html#file-wide-metadata and it doesn't seem like we can output anything from docinfo without writing a new Sphinx role/directive

  2. We looked at https://github.com/sphinx-contrib/datatemplates but it doesn't seem to have a simple way to easily store data together with a page, we'd end up with separate YAML files and that's again fragmenting content into new locations where they will be harder to maintain, translate etc.

@benjaoming
Copy link
Contributor Author

Perhaps the way that ablog uses metadata can be used for inspiration?

.. post:: March 30, 2023
   :tags: newsletter, python
   :author: Arnold
   :location: Los Angelos
   :category: newsletter

@ericholscher
Copy link
Member

Refs #10552

@ericholscher
Copy link
Member

Going to close this, since I think we are trying to remove the number of places we're using this context, and hopefully can handle this manually going forward.

@ericholscher ericholscher closed this as not planned Won't fix, can't repro, duplicate, stale Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needed: design decision A core team decision is required
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants