-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Many updates to the docs gen tool: - Generates docs for `@Config(Unrestricted)` items. - Moves Unstable namespaces to the bottom of the Table of Contents. - Generates docs for reexported Core items. - Generates index.md files for namespaces. - Generates a top-level index.md file. - Trims datetime to just be the date. - Adds description metadata field. fixes #1998 fixes #1866
- Loading branch information
1 parent
093ccfe
commit 61a4720
Showing
9 changed files
with
618 additions
and
183 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
|
||
pub mod display; | ||
pub mod generate_docs; | ||
mod table_of_contents; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
/// Returns the string of the table of contents for the standard library. | ||
/// This table of contents will be the content of the top-level index.md | ||
/// created during documentation generation. | ||
pub(super) fn table_of_contents() -> String { | ||
"# Q# standard library | ||
The Q# standard library contains the following namespaces: | ||
| Namespace | Description | | ||
| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | | ||
| [`Microsoft.Quantum.Core`](xref:Qdk.Microsoft.Quantum.Core-toc) | Re-exported functions. | | ||
| [`Std.Arrays`](xref:Qdk.Std.Arrays-toc) | Items for working with arrays. | | ||
| [`Std.Canon`](xref:Qdk.Std.Canon-toc) | Canonical implementations of common classical and quantum utilities.| | ||
| [`Std.Convert`](xref:Qdk.Std.Convert-toc) | Items for converting between different types. | | ||
| [`Std.Core`](xref:Qdk.Std.Core-toc) | Items for language built-in operations. | | ||
| [`Std.Diagnostics`](xref:Qdk.Std.Diagnostics-toc) | Items for debugging and testing quantum programs. | | ||
| [`Std.Intrinsic`](xref:Qdk.Std.Intrinsic-toc) | Items that provide core quantum operations. | | ||
| [`Std.Logical`](xref:Qdk.Std.Logical-toc) | Boolean Logic functions. | | ||
| [`Std.Math`](xref:Qdk.Std.Math-toc) | Items for classical math operations. | | ||
| [`Std.Measurement`](xref:Qdk.Std.Measurement-toc) | Items for measuring quantum results. | | ||
| [`Std.Random`](xref:Qdk.Std.Random-toc) | Items for creating random values. | | ||
| [`Std.Range`](xref:Qdk.Std.Range-toc) | Items for working with ranges. | | ||
| [`Std.ResourceEstimation`](xref:Qdk.Std.ResourceEstimation-toc) | Items for working with the Azure Quantum Resource Estimator. | | ||
| [`Microsoft.Quantum.Unstable.Arithmetic`](xref:Qdk.Microsoft.Quantum.Unstable.Arithmetic-toc) | Items for working with quantum arithmetic operations. | | ||
| [`Microsoft.Quantum.Unstable.StatePreparation`](xref:Qdk.Microsoft.Quantum.Unstable.StatePreparation-toc) | Items for preparing a quantum state. | | ||
| [`Microsoft.Quantum.Unstable.TableLookup`](xref:Qdk.Microsoft.Quantum.Unstable.TableLookup-toc) | Items for performing quantum table lookups. | | ||
".to_string() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters