Skip to content

Commit 13f1e35

Browse files
Fix workflow index page for Execute on Hardware (Qiskit#1475)
Before: ``` ### Configure runtime options * [Configure runtime compilation](./configure-runtime-compilation) * [Configure runtime error mitigation](./configure-error-mitigation) * [Advanced runtime options](./advanced-runtime-options) * [Introduction to execution modes](./execution-modes-intro) * [Introduction to sessions](./sessions) * [Run jobs in a session](./run-jobs-in-session) * [Run jobs in a batch](./run-jobs-batch) ### Manage jobs * [Monitor or cancel a job](./monitor-job) * [Estimate job run time](./estimate-job-run-time) * [Minimize job run time](./minimize-time) * [Maximum execution time](./max-execution-time) * [Execution modes FAQs](./execution-modes-faq) ``` After: ``` ### Configure runtime options * [Configure runtime compilation](./configure-runtime-compilation) * [Configure runtime error mitigation](./configure-error-mitigation) * [Advanced runtime options](./advanced-runtime-options) ### Execution modes * [Introduction to execution modes](./execution-modes-intro) * [Introduction to sessions](./sessions) * [Run jobs in a session](./run-jobs-in-session) * [Run jobs in a batch](./run-jobs-batch) * [Execution modes FAQs](./execution-modes-faq) ### Manage jobs * [Monitor or cancel a job](./monitor-job) * [Estimate job run time](./estimate-job-run-time) * [Minimize job run time](./minimize-time) * [Maximum execution time](./max-execution-time) ```
1 parent 3805223 commit 13f1e35

File tree

1 file changed

+43
-36
lines changed

1 file changed

+43
-36
lines changed

scripts/patterns-reorg/entries.py

Lines changed: 43 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,34 @@
360360
),
361361
)
362362

363-
EXECUTION_MODES = (
363+
MANAGE_JOBS_FOLDER = Entry(
364+
"Manage jobs",
365+
children=(
366+
Entry(
367+
"Monitor or cancel a job",
368+
slug="monitor-job",
369+
from_file="run/monitor-job.mdx",
370+
),
371+
Entry(
372+
"Estimate job run time",
373+
slug="estimate-job-run-time",
374+
from_file="run/estimate-job-run-time.mdx",
375+
),
376+
Entry(
377+
"Minimize job run time",
378+
slug="minimize-time",
379+
from_file="run/minimize-time.mdx",
380+
),
381+
Entry(
382+
"Maximum execution time",
383+
slug="max-execution-time",
384+
from_file="run/max-execution-time.mdx",
385+
),
386+
RETRIEVE_RESULTS_PAGE,
387+
),
388+
)
389+
390+
EXECUTION_MODES_CHILDREN = (
364391
Entry(
365392
"Introduction to execution modes",
366393
slug="execution-modes-intro",
@@ -381,32 +408,7 @@
381408
slug="run-jobs-batch",
382409
from_file="run/run-jobs-batch.mdx",
383410
),
384-
Entry(
385-
"Manage jobs",
386-
children=(
387-
Entry(
388-
"Monitor or cancel a job",
389-
slug="monitor-job",
390-
from_file="run/monitor-job.mdx",
391-
),
392-
Entry(
393-
"Estimate job run time",
394-
slug="estimate-job-run-time",
395-
from_file="run/estimate-job-run-time.mdx",
396-
),
397-
Entry(
398-
"Minimize job run time",
399-
slug="minimize-time",
400-
from_file="run/minimize-time.mdx",
401-
),
402-
Entry(
403-
"Maximum execution time",
404-
slug="max-execution-time",
405-
from_file="run/max-execution-time.mdx",
406-
),
407-
RETRIEVE_RESULTS_PAGE,
408-
),
409-
),
411+
MANAGE_JOBS_FOLDER,
410412
Entry(
411413
"Execution modes FAQs",
412414
slug="execution-modes-faq",
@@ -478,16 +480,21 @@
478480
slug="execute-on-hardware",
479481
page_content=execute_index_content(
480482
entries_as_markdown_list(
481-
filter_entries(
482-
(
483-
*PRIMITIVES,
484-
*EXECUTION_MODES,
485-
Entry(
486-
"Systems and platform information",
487-
children=SYSTEMS_CHILDREN,
483+
(
484+
*PRIMITIVES,
485+
Entry(
486+
"Execution modes",
487+
children=filter_entries(
488+
EXECUTION_MODES_CHILDREN, ignore={MANAGE_JOBS_FOLDER}
488489
),
489490
),
490-
ignore={RETRIEVE_RESULTS_PAGE},
491+
*filter_entries(
492+
(MANAGE_JOBS_FOLDER,), ignore={RETRIEVE_RESULTS_PAGE}
493+
),
494+
Entry(
495+
"Systems and platform information",
496+
children=SYSTEMS_CHILDREN,
497+
),
491498
)
492499
)
493500
),
@@ -513,7 +520,7 @@
513520
children=filter_entries(SIMULATORS, ignore={PLOT_QUANTUM_STATES_PAGE}),
514521
),
515522
Entry("Primitives", children=PRIMITIVES),
516-
Entry("Execution modes", children=EXECUTION_MODES),
523+
Entry("Execution modes", children=EXECUTION_MODES_CHILDREN),
517524
Entry("IBM Quantum systems", children=SYSTEMS_CHILDREN),
518525
Entry(
519526
"Visualization",

0 commit comments

Comments
 (0)