Skip to content

Commit ccb76da

Browse files
committed
Fix incorrect renames and spelling
1 parent f75e6fb commit ccb76da

File tree

15 files changed

+48
-44
lines changed

15 files changed

+48
-44
lines changed

.github/workflows/scaladoc.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ jobs:
6464
with:
6565
inlineScript: |
6666
DOC_DEST=pr-${PR_NUMBER:-${GITHUB_REF##*/}}
67-
echo uplading docs to https://scaladoc.virtuslab.com/$DOC_DEST
68-
az storage container create --name $DOC_DEST --account-name scaladocstorage --public-access container
69-
az storage blob sync -s scaladoc/output -c $DOC_DEST --account-name scaladocstorage
67+
echo uplading docs to https://scala3doc.virtuslab.com/$DOC_DEST
68+
az storage container create --name $DOC_DEST --account-name scala3docstorage --public-access container
69+
az storage blob sync -s scaladoc/output -c $DOC_DEST --account-name scala3docstorage
7070
7171
community-docs:
7272
env:
@@ -77,6 +77,7 @@ jobs:
7777
&& !contains(github.event.pull_request.body, '[skip docs]')
7878
)
7979
|| contains(github.event.ref, 'scaladoc')
80+
|| contains(github.event.ref, 'scala3doc')
8081
|| contains(github.event.ref, 'master')"
8182

8283
steps:
@@ -102,6 +103,6 @@ jobs:
102103
with:
103104
inlineScript: |
104105
DOC_DEST=pr-${PR_NUMBER:-${GITHUB_REF##*/}}-docs
105-
echo uplading docs to https://scaladoc.virtuslab.com/$DOC_DEST
106-
az storage container create --name $DOC_DEST --account-name scaladocstorage --public-access container
107-
az storage blob sync -s community-build/docsOutput -c $DOC_DEST --account-name scaladocstorage
106+
echo uplading docs to https://scala3doc.virtuslab.com/$DOC_DEST
107+
az storage container create --name $DOC_DEST --account-name scala3docstorage --public-access container
108+
az storage blob sync -s community-build/docsOutput -c $DOC_DEST --account-name scala3docstorage

docs/blog/_posts/2020-12-18-scala3-m3.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ You can read the discussion of this change in the [PR #10670](https://github.com
133133
# Tooling improvements
134134
As we are getting closer to a stable release of Scala 3, the focus increasingly shifts on the tooling available to get started with Scala 3.
135135

136-
For a while now, we are not using the old dottydoc documentation tool for building the documentation. We are developing an entirely new tool, scaladoc, from scratch. This new documentation tool is more robust and faster than the old one.
136+
For a while now, we are not using the old dottydoc documentation tool for building the documentation. We are developing an entirely new tool, scala3doc, from scratch. This new documentation tool is more robust and faster than the old one.
137137

138-
As part of the tooling effort, this new Scala 3 documentation tool is rapidly improved. [PR #10522](https://github.com/lampepfl/dotty/pull/10522) proves that the doctool can generate documentation for the community build projects. You can access this documentation via the following [link](https://scaladoc.virtuslab.com/pr-master-docs/index.html).
138+
As part of the tooling effort, this new Scala 3 documentation tool is rapidly improved. [PR #10522](https://github.com/lampepfl/dotty/pull/10522) proves that the doctool can generate documentation for the community build projects. You can access this documentation via the following [link](https://scala3doc.virtuslab.com/pr-master-docs/index.html).
139139

140140
[PR #10491](https://github.com/lampepfl/dotty/pull/10491) introduced scripting support in Scala 3. Consider the following source named `Main.scala`:
141141

docs/docs/usage/scaladoc/blog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ title: Built-in blog
44

55
# {{page.title}}
66

7-
scaladoc allows you to include a simple blog in your documentation. For now, it
7+
Scaladoc allows you to include a simple blog in your documentation. For now, it
88
provides only basic features. In the future, we plan to include more advanced
99
features like tagging or author pages.

docs/docs/usage/scaladoc/docComments.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: API Documentation
44

55
# {{ page.title }}
66

7-
scaladoc's main feature is creating API documentation from code comments.
7+
Scaladoc's main feature is creating API documentation from code comments.
88

99
By default, the code comments are understood as Markdown, though we also support
1010
Scaladoc's old [Wiki syntax](https://docs.scala-lang.org/style/scaladoc.html).
@@ -74,8 +74,8 @@ closer together. The new features are:
7474
/** TODO: Figure out what [[`([.abusive.])`]] is. */
7575
def foo = `([.abusive.])`
7676
```
77-
Scaladoc required backslash-escaping to reference such identifiers. Instead,
78-
scaladoc allows using the familiar Scala backtick quotation.
77+
Previously (versions 2.x), Scaladoc required backslash-escaping to reference such identifiers. Now (3.x versions),
78+
Scaladoc allows using the familiar Scala backtick quotation.
7979
8080
#### Why keep the Wiki syntax for links?
8181

docs/docs/usage/scaladoc/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: scaladoc
44

55
![scaladoc logo](/images/scaladoc-logo.png)
66

7-
scaladoc is tool to generate documentation for your Scala 3 projects. It provies similar features to `javadoc` or `scaladoc` as well as `jekyll` or `docusaurus`.
7+
scaladoc is tool to generate documentation for your Scala 3 projects. It provies similar features to `javadoc` as well as `jekyll` or `docusaurus`.
88

99
As you probably have guessed, this whole site was created using scaladoc.
1010

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
2-
title: scaladoc-specific Tags and Features
2+
title: Scaladoc-specific Tags and Features
33
---
44

55
# {{page.title}}
66

7-
scaladoc extends Markdown with additional features, such as linking
7+
Scaladoc extends Markdown with additional features, such as linking
88
to API definitions. This can be used from within static documentation and blog
99
posts to provide blend-in content.
1010

1111
## Linking to API
1212

13-
scaladoc allows linking to API documentation with Wiki-style links. Linking to
13+
Scaladoc allows linking to API documentation with Wiki-style links. Linking to
1414
`scala.collection.immutable.List` is as simple as
1515
`[[scala.collection.immutable.List]]`. For more information on the exact syntax, see [doc comment documentation](./docComments.html#definition-links).

docs/docs/usage/scaladoc/staticSite.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Static documentation
44

55
# {{ page.title}}
66

7-
scaladoc is able to generate static sites, known from [Jekyll](http://jekyllrb.com/) or [Docusaurus](https://docusaurus.io/).
7+
Scaladoc is able to generate static sites, known from [Jekyll](http://jekyllrb.com/) or [Docusaurus](https://docusaurus.io/).
88
Having a combined tool allows to provide interaction between static documentation and API, thus allowing the two to blend naturally.
99

1010
Creating a site is just as simple as in Jekyll. The site root contains the
@@ -29,18 +29,18 @@ index.html
2929
docs/getting-started.html
3030
```
3131

32-
scaladoc can transform both files and directories (to organize your documentation into tree-like structure). By default directories has title based on file name and has empty content. There is an option to include `index.html` or `index.md` (not both) to provide both content and properties like title (see [Properties](#properties)).
32+
Scaladoc can transform both files and directories (to organize your documentation into tree-like structure). By default directories has title based on file name and has empty content. There is an option to include `index.html` or `index.md` (not both) to provide both content and properties like title (see [Properties](#properties)).
3333

3434
## Properties
3535

36-
scaladoc uses the [Liquid](https://shopify.github.io/liquid/) templating engine
36+
Scaladoc uses the [Liquid](https://shopify.github.io/liquid/) templating engine
3737
and provides a number of custom filters and tags specific to Scala
3838
documentation.
3939

40-
In scaladoc, all templates can contain YAML front-matter. The front-matter
40+
In Scaladoc, all templates can contain YAML front-matter. The front-matter
4141
is parsed and put into the `page` variable available in templates via Liquid.
4242

43-
scaladoc uses some predefined properties to controls some aspect of page.
43+
Scaladoc uses some predefined properties to controls some aspect of page.
4444

4545
Predefined properties:
4646

@@ -94,7 +94,7 @@ Layouts must be placed in a `_layouts` directory in the site root:
9494

9595
Sidebar
9696
=======
97-
scaladoc by default uses layout of files in `docs` directory to create table of content. There is also ability to override it by providing a `sidebar.yml` file in the site root:
97+
Scaladoc by default uses layout of files in `docs` directory to create table of content. There is also ability to override it by providing a `sidebar.yml` file in the site root:
9898

9999
```yaml
100100
sidebar:

docs/sidebar.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sidebar:
1515
url: docs/usage/language-versions.html
1616
- title: cbt-projects
1717
url: docs/usage/cbt-projects.html
18-
- title: scaladoc
18+
- title: Scaladoc
1919
url: docs/usage/scaladoc
2020
- title: Dottydoc [Legacy]
2121
url: docs/usage/dottydoc.html

project/Build.scala

+5-2
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,10 @@ object Build {
15351535
def generateDocumentation(targets: String, name: String, outDir: String, ref: String, params: String = "") = Def.taskDyn {
15361536
val projectVersion = version.value
15371537
IO.createDirectory(file(outDir))
1538-
val sourceLinks = "-source-links:github://lampepfl/dotty "
1538+
val scala3version = stdlibVersion(Bootstrapped)
1539+
// TODO add versions etc.
1540+
val srcManaged = s"out/bootstrap/stdlib-bootstrapped/scala-$baseVersion/src_managed/main/scala-library-src"
1541+
val sourceLinks = s"-source-links:$srcManaged=github://scala/scala/v$scala3version#src/library -source-links:github://lampepfl/dotty"
15391542
val revision = s"-revision $ref -project-version $projectVersion"
15401543
val cmd = s""" -d $outDir -project "$name" $sourceLinks $revision $params $targets"""
15411544
run.in(Compile).toTask(cmd)
@@ -1611,7 +1614,7 @@ object Build {
16111614
}.dependsOn(generateDocumentation(
16121615
roots, "Scala 3", dest.getAbsolutePath, "master",
16131616
// contains special definitions which are "transplanted" elsewhere
1614-
// and which therefore confuse scaladoc when accessed from this pkg
1617+
// and which therefore confuse Scaladoc when accessed from this pkg
16151618
"-skip-by-id:scala.runtime.stdLibPatches " +
16161619
// MatchCase is a special type that represents match type cases,
16171620
// Reflect doesn't expect to see it as a standalone definition
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
scalaVersion := sys.props("plugin.scalaVersion")
22

3-
lazy val assertUsingscaladoc = taskKey[Unit]("")
3+
lazy val assertUsingScaladoc = taskKey[Unit]("")
44

5-
assertUsingscaladoc := {
5+
assertUsingScaladoc := {
66
assert(useScaladoc.value)
77
}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
> assertUsingscaladoc
1+
> assertUsingScaladoc
22
> doc
33

scaladoc/README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# scaladoc
1+
# Scaladoc
22

3-
scaladoc (name subject to change) is the documentation tool for
4-
[Dotty](https://github.com/lampepfl/dotty), which is scheduled to become
3+
Scaladoc is the documentation tool for
4+
[Scala 3](https://github.com/lampepfl/dotty), which is scheduled to become
55
Scala 3. It uses the TastyInspector to access definitions,
6-
which is an officially supported way to access Dotty's perspective of a
6+
which is an officially supported way to access Scala 3's perspective of a
77
codebase.
88

99
We're aiming to support all the features Scaladoc did, plus new and exciting ones such as:
@@ -57,24 +57,24 @@ work on the project.
5757
For every PR, we build documentation for scaladoc and Dotty. For example, for
5858
PR 123 you can find them at:
5959

60-
- <https://scaladoc.virtuslab.com/pr-123/self/main/index.html>
61-
- <https://scaladoc.virtuslab.com/pr-123/scala3/main/index.html>
62-
- <https://scaladoc.virtuslab.com/pr-123/testcases/main/index.html>
60+
- <https://scala3doc.virtuslab.com/pr-123/self/main/index.html>
61+
- <https://scala3doc.virtuslab.com/pr-123/scala3/main/index.html>
62+
- <https://scala3doc.virtuslab.com/pr-123/testcases/main/index.html>
6363

6464
Note that these correspond to the contents of `output` directory - that's
6565
precisely what they are.
6666

6767
You can also find the result of building the same sites for latest `master` at:
6868

69-
- <https://scaladoc.virtuslab.com/master/self/main/index.html>
70-
- <https://scaladoc.virtuslab.com/master/scala3/main/index.html>
71-
- <https://scaladoc.virtuslab.com/master/testcases/main/index.html>
69+
- <https://scala3doc.virtuslab.com/master/self/main/index.html>
70+
- <https://scala3doc.virtuslab.com/master/scala3/main/index.html>
71+
- <https://scala3doc.virtuslab.com/master/testcases/main/index.html>
7272

7373
### Testing
7474

7575
Most tests rely on comparing signatures (of classes, methods, objects etc.) extracted from the generated documentation
76-
to signatures found in source files. Such tests are defined using [MultipleFileTest](test/dotty/tools/scaladoc/MultipleFileTest.scala) class
77-
and its subtypes (such as [SingleFileTest](test/dotty/tools/scaladoc/SingleFileTest.scala))
76+
to signatures found in source files. Such tests are defined using [MultipleFileTest](test/dotty/tools/scala3doc/MultipleFileTest.scala) class
77+
and its subtypes (such as [SingleFileTest](test/dotty/tools/scala3doc/SingleFileTest.scala))
7878

7979
WARNING: As the classes mentioned above are likely to evolve, the description below might easily get out of date.
8080
In case of any discrepancies rely on the source files instead.

scaladoc/e2e/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## scaladoc e2e test suite
1+
## Scaladoc e2e test suite
22

33
### Prerequisites
44

scaladoc/src/dotty/tools/scaladoc/DocContext.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private def sourcePostionFor(f: File)(using CompilerContext) =
4444
val sourceFile = new SourceFile(virtualFile, Codec.UTF8)
4545
SourcePosition(sourceFile, Spans.NoSpan)
4646

47-
// TODO (https://github.com/lampepfl/scaladoc/issues/238): provide proper error handling
47+
// TODO (https://github.com/lampepfl/scala3doc/issues/238): provide proper error handling
4848
private def createMessage(
4949
msg: String, file: File, e: Throwable | Null)(using CompilerContext): String =
5050
val localizedMessage = s"$file: $msg"

scaladoc/src/dotty/tools/scaladoc/SourceLinks.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ object SourceLinks:
143143
| - <scaladoc-template>
144144
|
145145
|<scaladoc-template> is a format for `doc-source-url` parameter scaladoc.
146-
|NOTE: We only supports `€{FILE_PATH_EXT}` and €{FILE_LINE} patterns
147-
|
146+
|NOTE: We only supports `€{FILE_PATH_EXT}`, `€{TPL_NAME}`, `€{FILE_EXT}`,
147+
| €{FILE_PATH}, and €{FILE_LINE} patterns
148148
|
149149
|
150150
|Template can defined only by subset of sources defined by path prefix represented by `<sub-path>`.

0 commit comments

Comments
 (0)