Skip to content

Commit 7b1e727

Browse files
pikinier20romanowski
authored andcommitted
README adjustments. CLI documentation.
1 parent d0693c0 commit 7b1e727

File tree

2 files changed

+22
-33
lines changed

2 files changed

+22
-33
lines changed

scala3doc/README.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ We're aiming to support all the features Scaladoc did, plus new and exciting one
1313
- displaying project and API documentation together on one site!
1414
- and more!
1515

16+
**Yes, this page was generated using scala3doc**
17+
1618
## Running the project
1719

1820
Use the following commands to generate documentation for this project and for Dotty, respectively:
@@ -29,13 +31,26 @@ cd output
2931
python3 -m http.server 8080
3032
```
3133

32-
And afterwards point your browser to `http://localhost:8080/self` or
33-
`http://localhost:8080/stdLib` for this project and for Dotty documentation
34+
And afterwards point your browser to <http://localhost:8080/self> or
35+
<http://localhost:8080/stdLib> for this project and for Dotty documentation
3436
respectively.
3537

3638
It's not strictly necessary to go through an HTTP server, but because of CORS
3739
the documentation won't work completely if you don't.
3840

41+
## CLI Documentation
42+
43+
CLI command for running our tool is in form: `sbt main -n <name> -o <output> -t <tasty-files> -cp <classpath> -s { <sources> } -d <documentation> ` where:
44+
- `<name>`: name of module in generated documentation
45+
- `<output>`: location where documentation should be created
46+
- `<tasty-files>`: is list of dirs or jars that contains tasty files that should be documented
47+
- `<classpath>`: classpath that was used to generate tasty files
48+
- `<sources>`: links to source files of module that are used to link symbols on pages to their source file. They need to be supplied in form:
49+
`local_dir=remote_dir#line_suffix` e.g. `src/main/scala=https://github.com/lampepfl/scala3doc/tree/master/src/main/scala#L`
50+
- `<documentation>`: directory of static documentation that you would like to render with API documentation. This feature is provided by dokka-site plugin:
51+
- [GitHub](https://github.com/VirtusLab/dokka-site)
52+
- [Documentation](https://virtuslab.github.io/dokka-site/index.html)
53+
3954
## Developing
4055

4156
At least two of our contributors use [Metals](https://scalameta.org/metals/) to
@@ -44,16 +59,16 @@ work on the project.
4459
For every PR, we build documentation for Scala3doc and Dotty. For example, for
4560
PR 123 you can find them at:
4661

47-
+ https://scala3doc.s3.eu-central-1.amazonaws.com/pr-123/self/main/index.html
48-
+ https://scala3doc.s3.eu-central-1.amazonaws.com/pr-123/stdLib/main/index.html
62+
+ <https://scala3doc.s3.eu-central-1.amazonaws.com/pr-123/self/main/index.html>
63+
+ <https://scala3doc.s3.eu-central-1.amazonaws.com/pr-123/stdLib/main/index.html>
4964

5065
Note that these correspond to the contents of `output` directory - that's
5166
precisely what they are.
5267

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

55-
+ https://scala3doc.s3.eu-central-1.amazonaws.com/pr-master/self/main/index.html
56-
+ https://scala3doc.s3.eu-central-1.amazonaws.com/pr-master/stdLib/main/index.html
70+
+ <https://scala3doc.s3.eu-central-1.amazonaws.com/pr-master/self/main/index.html>
71+
+ <https://scala3doc.s3.eu-central-1.amazonaws.com/pr-master/stdLib/main/index.html>
5772

5873
### Testing
5974

scala3doc/documentation/index.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

scala3doc/documentation/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README.md

0 commit comments

Comments
 (0)