qiskit-documentation/public/images/guides
Arnau Casau 679617cc5d Organize guides images (#1600)
Part of #154

This PR, following the idea of this
[comment](https://github.com/Qiskit/documentation/issues/154#issuecomment-2104751884),
moves all the images in the folders `start`, `build`, `transpile`,
`verify`, and `run` to a new folder called `guides`, updating all the
docs to point to that new folder.

To change the links, I used the following script that updates all but 3
links that are missed by the regex. I changed them manually.

<details>
<summary>Script</summary>

```python
from __future__ import annotations
import re
import glob
from pathlib import Path
from main import OLD_FOLDERS

def update_link(markdown: str, image_folder: str, link: str) -> str:
    new_link = link.replace(f"/images/{image_folder}/", "/images/guides/")
    return markdown.replace(link, new_link)

def main() -> None:
    inline_link_re = re.compile(r"\!\[([^\]]+)\]\(([^)]+)\)")

    for folder in [*OLD_FOLDERS, "api/migration-guides"]:
        image_folder = folder if folder != "api/migration-guides" else "run"
        for file_path in glob.glob(f"docs/{folder}/*"):
            file = Path(file_path)
            markdown = file.read_text()
            new_markdown = re.sub(
                inline_link_re,
                lambda m: update_link(m[0], image_folder, m[2]),
                markdown,
            )
            if markdown != new_markdown:
                file.write_text(new_markdown)

if __name__ == "__main__":
    main()
```
</details>
2024-06-27 14:55:39 +00:00
..
custom-transpiler-pass Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
error-mitigation-explanation Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
execution-modes Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
hello-world Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
install Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
interoperate-qiskit-qasm3 Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
processor-types Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
sessions Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
simulate-with-qiskit-primitives Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
transpiler-stages Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
unitary-synthesis Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
batch.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
broadcasting.svg Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
circuits_shots_matrix1.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
exp-card.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
exp-card@dark.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
find-providers1.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
fixed_batch_circuit1.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
fixed_single_circuit1.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
graph-view1.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
graph-view1@dark.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
leaving1.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
normal_queue_with_providers1.jpg Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
paulibasis.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
pre-transpiled.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
providers1.jpg Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
qasm2.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
rta-architecture.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
table-view.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
table-view@dark.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
transpiled.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
transpiler-11.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
transpiler-16.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
transpiler-17.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00
view-switcher1.png Organize guides images (#1600) 2024-06-27 14:55:39 +00:00