-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix snippets in Scala 3 documentation #12967
Labels
Comments
I take three last parts |
Fixing snippets in static site is currently suspended because of docs migration |
Checklist:
|
i10416
added a commit
to i10416/dotty
that referenced
this issue
Jan 20, 2024
- Fix build settings to make the snippet compiler to work properly - Tweak some doc snippets so that they pass snippet compiker check Related to: scala#12967
i10416
added a commit
to i10416/dotty
that referenced
this issue
Jan 20, 2024
- Fix build settings to make the snippet compiler to work properly - Tweak some doc snippets so that they pass snippet compiker check Related to: scala#12967
For someone interested in this issue, see the following guide to find advanced usages like |
i10416
added a commit
to i10416/dotty
that referenced
this issue
Jan 22, 2024
This commit addresses a part of scala#12967. To make documents pass snippet checking, I modified some Scala code blocks while keeping original code as much as possible. Snippet check for docs raises "dotty.tools.dotc.MissingCoreLibraryException: Could not find package scala from compiler core libraries." on CI(not on my local machine), so I skip adding docs to Build.scala for now.
sjrd
added a commit
that referenced
this issue
Jan 23, 2024
- Fix build settings to make the snippet compiler to work properly - Before this change, snippet compiler read from `library/scala` instead of `library/src/scala` - Tweak some doc snippets so that they pass snippet compiker check Related to: #12967
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
<style type="text/css"></style>
Instruction
generateScalaDocumentation
task inBuild.scala
generateDocumentation
call inside task definitiondottyLibRoot
variablescala.quoted
, add$dottyLibRoot/scala/quoted=compile
docs/contributing
, adddocs/docs/contributing=compile
sc:flag
after "```scala" in snippet.The text was updated successfully, but these errors were encountered: