Skip to content

New format of source links #10274

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

Merged
merged 2 commits into from
Nov 12, 2020
Merged

Conversation

romanowski
Copy link
Contributor

Now we use liquid templates to generate link to source file.
We use our custom-build support for handling this instead of one from dokka.

This commit also adds predefined templates for github and gitlab as well ass 'revision setting' that allows users to specify revision of documented code (and source link)

@romanowski
Copy link
Contributor Author

cc @BarkingBad @pikinier20 @Kordyjan

@romanowski romanowski force-pushed the scala3doc/source-links1 branch 2 times, most recently from c012ad1 to 2b20382 Compare November 11, 2020 01:47
…k to source file.We use our custom-build support for handling this instead of one from dokka.This commit also adds predefined templates for github and gitlab as well ass 'revision setting' that allows users to specify revision of documented code (and source link)
@romanowski romanowski force-pushed the scala3doc/source-links1 branch from 2b20382 to c1ef7d0 Compare November 11, 2020 14:33
Copy link
Contributor

@BarkingBad BarkingBad left a comment

Choose a reason for hiding this comment

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

Looks ok

Copy link
Contributor

@abgruszecki abgruszecki left a comment

Choose a reason for hiding this comment

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

LGTM.

@romanowski romanowski merged commit 7131651 into scala:master Nov 12, 2020
s"""https://gitlab.com/$organization/$repo/-/{{ operation | replace: "view", "blob" }}/$revision/{{ path }}#L{{ line }}"""


private def parseLinkDefinition(s: String): Option[SourceLink] = ???

Choose a reason for hiding this comment

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

I dont think it is used :D

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

Successfully merging this pull request may close these issues.

4 participants