Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Keywords/language reference pages #1040

Closed
wants to merge 19 commits into from
Closed

Conversation

gillenhaalb
Copy link
Contributor

@gillenhaalb gillenhaalb commented Sep 5, 2020

On hold until migration to Q# language repo is settled (links will all direct to respective pages there).

Addresses the broader discussion in #939. Creates separate pages for each Q# keyword (for searchability). Also some language constructs/symbols.

Content for pages:

To-do:

  • group main page contextually? Align with TOC folders, can lend more info than simple alphabetical order (not to mention everyone will likely ctrl+f to find anything they're looking for anyway)
  • expand EntryPoint and Test API pages because linking to them directly (i.e. add the content that will be on other pages: more explanation, links, examples)

Additional pages to be added:

  • ! unwrap operator
  • < > type parameterized callables
  • w/ <- copy-and-update expressions (array elts and named items
  • w/= <- update-and-reassign statements (used with set for named items and array items)
  • ? | conditional expression
  • (maybe) new page for each operator? (list here)

@gillenhaalb gillenhaalb linked an issue Sep 5, 2020 that may be closed by this pull request
@acrolinxatmsft1

This comment has been minimized.

@opbld32

This comment has been minimized.

@acrolinxatmsft1

This comment has been minimized.

@opbld31

This comment has been minimized.

@acrolinxatmsft1

This comment has been minimized.

@opbld31

This comment has been minimized.

@acrolinxatmsft1

This comment has been minimized.

@opbld30

This comment has been minimized.

@acrolinxatmsft1

This comment has been minimized.

@opbld33

This comment has been minimized.

@acrolinxatmsft1

This comment has been minimized.

@opbld32

This comment has been minimized.

@microsoft-github-updates microsoft-github-updates bot changed the base branch from master to main September 17, 2020 20:02
@opbld32

This comment has been minimized.

@opbld30

This comment has been minimized.

@opbld32

This comment has been minimized.

@opbld31

This comment has been minimized.

@opbld33

This comment has been minimized.

@opbld32

This comment has been minimized.

@opbld31

This comment has been minimized.

@opbld30

This comment has been minimized.

uid: microsoft.quantum.lang-ref.entrypoint
---

# `@EntryPoint`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and @Test are both attributes that are already documented in the API reference; can we link to those from the TOC rather than duplicating that content?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cgranade That's a great point, thanks. Just to clarify, it sounds like you mean keeping the links in the TOC dropdown (and the keyword list page), but simply linking direct to the API page?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that should work, yeah. If I recall, you can make href properties in toc.yml point to xrefs instead of Markdown file paths; that would allow for reusing the automatically generated references for Test and EntryPoint.

@opbld32
Copy link

opbld32 commented Oct 20, 2020

Docs Build status updates of commit 96222ea:

⚠️ Validation status: warnings

File Status Preview URL Details
articles/user-guide/language-ref/toc.yml ⚠️Warning Details
articles/user-guide/language-ref/attributes/entrypoint-ref.md ✅Succeeded View
articles/user-guide/language-ref/attributes/test-ref.md ✅Succeeded View
articles/user-guide/language-ref/binding-assignment/let-ref.md ✅Succeeded View
articles/user-guide/language-ref/binding-assignment/mutable-ref.md ✅Succeeded View
articles/user-guide/language-ref/binding-assignment/new-ref.md ✅Succeeded View
articles/user-guide/language-ref/binding-assignment/set-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/functors/adjoint-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/functors/controlled-adjoint-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/functors/controlled-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/directives/auto-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/directives/distribute-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/directives/intrinsic-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/directives/invert-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/directives/self-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/tags/adjoint-tag-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/tags/body-tag-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/tags/controlled-adjoint-tag-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/tags/controlled-tag-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/partial-app-symb-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/return-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/signature/adj-ctl-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/signature/adj-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/signature/ctl-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/signature/fn-signature-symb-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/signature/op-signature-symb-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/apply-within-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/elif-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/else-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/fail-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/fixup-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/for-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/if-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/in-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/repeat-until-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/while-ref.md ✅Succeeded View
articles/user-guide/language-ref/declaration/function-ref.md ✅Succeeded View
articles/user-guide/language-ref/declaration/internal-ref.md ✅Succeeded View
articles/user-guide/language-ref/declaration/newtype-ref.md ✅Succeeded View
articles/user-guide/language-ref/declaration/operation-ref.md ✅Succeeded View
articles/user-guide/language-ref/language-reference.md ✅Succeeded View
articles/user-guide/language-ref/namespace/as-ref.md ✅Succeeded View
articles/user-guide/language-ref/namespace/namespace-ref.md ✅Succeeded View
articles/user-guide/language-ref/namespace/open-ref.md ✅Succeeded View
articles/user-guide/language-ref/qubits/borrowing-ref.md ✅Succeeded View
articles/user-guide/language-ref/qubits/using-ref.md ✅Succeeded View
articles/user-guide/language-ref/types/bigint-ref.md ✅Succeeded View
articles/user-guide/language-ref/types/bool-ref.md ✅Succeeded View
articles/user-guide/language-ref/types/double-ref.md ✅Succeeded View
articles/user-guide/language-ref/types/false-ref.md ✅Succeeded View

This comment lists only the first 50 files in the pull request.

articles/user-guide/language-ref/toc.yml

  • Line 154, Column 13: [Warning-file-not-found] Invalid file link: 'microsoft.quantum.core.entrypoint'.
  • Line 156, Column 13: [Warning-file-not-found] Invalid file link: 'microsoft.quantum.diagnostics.test'.

For more details, please refer to the build report.

If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@opbld30
Copy link

opbld30 commented Oct 20, 2020

Docs Build status updates of commit a516dd2:

❌ Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
articles/user-guide/language-ref/toc.yml ❌Error Details

articles/user-guide/language-ref/toc.yml

  • Line 154, Column 13: [Error-yaml-syntax-error] While scanning for the next token, found character that cannot start any token.

For more details, please refer to the build report.

If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@opbld31
Copy link

opbld31 commented Oct 20, 2020

Docs Build status updates of commit 4a0e1bf:

✅ Validation status: passed

File Status Preview URL Details
articles/user-guide/language-ref/attributes/entrypoint-ref.md ✅Succeeded View
articles/user-guide/language-ref/attributes/test-ref.md ✅Succeeded View
articles/user-guide/language-ref/binding-assignment/let-ref.md ✅Succeeded View
articles/user-guide/language-ref/binding-assignment/mutable-ref.md ✅Succeeded View
articles/user-guide/language-ref/binding-assignment/new-ref.md ✅Succeeded View
articles/user-guide/language-ref/binding-assignment/set-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/functors/adjoint-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/functors/controlled-adjoint-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/functors/controlled-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/directives/auto-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/directives/distribute-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/directives/intrinsic-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/directives/invert-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/directives/self-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/tags/adjoint-tag-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/tags/body-tag-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/tags/controlled-adjoint-tag-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/op-specializations/tags/controlled-tag-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/partial-app-symb-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/return-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/signature/adj-ctl-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/signature/adj-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/signature/ctl-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/signature/fn-signature-symb-ref.md ✅Succeeded View
articles/user-guide/language-ref/callables/signature/op-signature-symb-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/apply-within-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/elif-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/else-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/fail-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/fixup-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/for-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/if-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/in-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/repeat-until-ref.md ✅Succeeded View
articles/user-guide/language-ref/control-flow/while-ref.md ✅Succeeded View
articles/user-guide/language-ref/declaration/function-ref.md ✅Succeeded View
articles/user-guide/language-ref/declaration/internal-ref.md ✅Succeeded View
articles/user-guide/language-ref/declaration/newtype-ref.md ✅Succeeded View
articles/user-guide/language-ref/declaration/operation-ref.md ✅Succeeded View
articles/user-guide/language-ref/language-reference.md ✅Succeeded View
articles/user-guide/language-ref/namespace/as-ref.md ✅Succeeded View
articles/user-guide/language-ref/namespace/namespace-ref.md ✅Succeeded View
articles/user-guide/language-ref/namespace/open-ref.md ✅Succeeded View
articles/user-guide/language-ref/qubits/borrowing-ref.md ✅Succeeded View
articles/user-guide/language-ref/qubits/using-ref.md ✅Succeeded View
articles/user-guide/language-ref/toc.yml ✅Succeeded
articles/user-guide/language-ref/types/bigint-ref.md ✅Succeeded View
articles/user-guide/language-ref/types/bool-ref.md ✅Succeeded View
articles/user-guide/language-ref/types/double-ref.md ✅Succeeded View
articles/user-guide/language-ref/types/false-ref.md ✅Succeeded View

This comment lists only the first 50 files in the pull request.
For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@geduardo
Copy link
Contributor

geduardo commented Jan 6, 2021

@gillenhaalb is this PR outdated/closeable?

@gillenhaalb
Copy link
Contributor Author

@gillenhaalb is this PR outdated/closeable?

@geduardo Its motivation is definitely still there and it will be my priority after Learn, but I would file it under "perhaps" closeable. The reason being that there wasn't too much work done on the pages themselves, but the skeleton that's setup currently is still essentially what we'll use. The only outdated part is the links to the language ref pages will be updated to xrefs now that we're hosting them in the same docset.

Since setting up the skeleton was somewhat laborious, we wouldn't want to have to re-do all of it. However, there is still a hefty amount to be done on the pages (descriptions, code examples, etc.; which will probably get a few others involved) and it shouldn't stand in the way of migration, so I'd say it would certainly be closeable provided we don't delete the branch. Should I go ahead and close?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Description of apply / within as part of control flow.
9 participants