question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve documentation about custom roles

See original GitHub issue

Context

reStructuredText lets us easily define Custom Interpreted Text Roles, say .. role:: custom, which can be used automatically in every document thanks to rst_prolog (to be inserted in the conf.py file):

rst_prolog = """
.. role:: custom
"""

Then if a .rst file contains :custom:`foo`, the corresponding html built file contains:

<span class="custom">foo</span>

It is not clear from the MyST documentation if such a feature is provided by MyST and, if so, how to proceed.

Proposal

Could you clarify the MyST documentation from this point of view?

Related discussion: https://github.com/executablebooks/MyST-Parser/discussions/634.

Tasks and updates

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisjsewellcommented, Dec 13, 2022

I believe the more “Markdown centric” way to do this is in #654

There you can now add any number of classes to both verbatim text and (nested) spans:

`verbatim`{.class1 .class2} [*span*]{.class3 .class4}
0reactions
dbitouzecommented, Dec 1, 2022

@jessicah Many thanks for your insights!

Your workaround indeed does the trick 😄. But the point is, my documentation (in fact a ((La)TeX) FAQ) contains 1240 source files…

Hence, as you said, it would be helpful for MyST to support the rst_prolog key, or even an equivalent which would be proper to MyST.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating and managing custom roles - IAM - Google Cloud
This page describes how to create and manage Identity and Access Management (IAM) custom roles. Managing roles includes modifying, disabling, listing, ...
Read more >
Custom roles | Firebase Documentation - Google
Custom roles are fully customized IAM roles that you create to tailor a set of permissions that meet the specific requirements of your...
Read more >
Create or update Azure custom roles using the Azure portal
Learn how to create Azure custom roles using the Azure portal and Azure role-based access control (Azure RBAC). This includes how to list, ......
Read more >
Manage Custom Roles | Sysdig Documentation
If the default user and team roles don't meet the specific needs of your organization, you can create your own custom roles. Select...
Read more >
Customizing User Roles - Sisense Documentation
You can customize the default roles with Sisense's REST API, ... Include the Advanced menu option for creating custom filters.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found