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
Add page for formatting customization #8868
Add page for formatting customization #8868
Conversation
fd1700c
to
199432a
Compare
199432a
to
fd1700c
Compare
fd1700c
to
7b95dcc
Compare
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
{ | ||
source: `/${redirectBase}learn/customizing-formatting`, | ||
destination: `/${redirectBase}learn/development-tutorials/source-code-dependencies/customizing-formatting`, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this add a new left nav entry as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, decided to have a separate left nav entry under source code and dependencies
#### classBraceStyle: | ||
|
||
* Placement of the opening brace of the class definition. | ||
* Values: NewLine, EndOfLine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we use backticks for NewLine, EndOfLine etc? @MaryamZi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, since these are fixed values, we should.
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
@poorna2152 Please update https://github.com/ballerina-platform/ballerina-dev-website/blob/master/components/learn/boxes/Boxes.js, to list the new page in the Learn landing page. |
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
title: Customization of formatting | ||
description: The section on providing custom configurations to the formatter. | ||
keywords: ballerina, programming language, formatting, custom configurations | ||
permalink: /learn/customizing-formatting/ | ||
active: customizing-formatting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update these also to be consistent with the rest of these pages, please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The layout
section is missing here as per @sm1990, this is no longer required
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
|
||
If the `configPath` argument is not provided in the `Ballerina.toml` or the `Format.toml` file does not exist in the project root, default formatting options will be applied. | ||
|
||
If the format `configPath` is an HTTP/HTTPS URL, a cache of the configuration file will be maintained inside the `target` directory. If the remote configuration file is modified, then make sure to delete the cached `Format.toml` file inside the `target/format/` directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the format `configPath` is an HTTP/HTTPS URL, a cache of the configuration file will be maintained inside the `target` directory. If the remote configuration file is modified, then make sure to delete the cached `Format.toml` file inside the `target/format/` directory. | |
If the format `configPath` value is an HTTP/HTTPS URL, the configuration file will be cached in the `target` directory. If the remote configuration file is modified, then make sure to delete the cached `Format.toml` file inside the `target/format/` directory. |
Did we discuss this user experience anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We did have a discussion on this in the earlier stages of the design and decided that it is a responsibility of the user to remove the cached file if it is updated
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customizing-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customize-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customize-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customize-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customize-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customize-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customize-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customize-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customize-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customize-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customize-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customize-formatting.md
Outdated
Show resolved
Hide resolved
swan-lake/development-tutorials/source-code-dependencies/customize-formatting.md
Show resolved
Hide resolved
ef7f50a
into
ballerina-platform:release-2201.9.0
Purpose
Add documentation page for formatting customization.
Documentation for ballerina-platform/ballerina-lang#41280
Checklist
Page addition
permalink
to pages.Page removal
redirect_from
on the alternative page.redirections.js
file.Page rename
redirect_from
.redirect_to:
(if applicable).Page restrcuture
permalink
to pages.redirect_from
.redirect_to:
(if applicable).