The MDX Pipeline should handle links between the Qiskit Python API and the C API

Open
#3,375 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c, markdown, python

Research direction

Start by reviewing the workaround introduced in Qiskit/documentation#3372 and trace how the MDX Pipeline processes the two example links. Compare the Python-to-C and C-to-Python cases, then define a generic fix or an upstream input-HTML improvement; done means both cross-API links are handled sustainably without the workaround.

Written by the indexing model from the issue text.

Description

infra 🏗️ tech debt 💩

Our MDX Pipeline was having problems with the links between the Qiskit APIs (Python and C). This is because we are using the same artifact for them both and therefore, the links look like:

Examples:
Link from the Python API to the C API -> cdoc/qk-complex64.html#_CPPv411QkComplex64
Link from the C API to the Python API -> ../stubs/qiskit.circuit.library.UnitaryGate.html#qiskit.circuit.library.UnitaryGate

https://github.com/Qiskit/documentation/pull/3372 introduced a workaround to handle this case, but we should investigate more sustainable fixes like:

  • Improve Qiskit/qiskit to handle the links better so that we get valid input HTML, or
  • Refactor the code in a more generic way
Dominant language
Jupyter Notebook
Stars
106
Forks
223
Avg merge
1d 8h
Merged PRs (30d)
72

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Qiskit/documentation

All issues in Qiskit/documentation

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.