Skip to content
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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions components/learn/boxes/Boxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,14 @@ export default function Boxes(props) {
</p>
<p className={styles.description}>Best practices to follow when formatting Ballerina code.</p>
</div>
<div className={styles.content}>
<p className={styles.title}>
<a href={`${prefix}/learn/customize-formatting`} className={styles.titleLink}>
Customize formatting
</a>
</p>
<p className={styles.description}>Provide custom formatting options to Ballerina formatter.</p>
</div>
</div>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ const nextConfig = {
source: `/${redirectBase}learn/package-references`,
destination: `/${redirectBase}learn/development-tutorials/source-code-dependencies/package-references`,
},
{
source: `/${redirectBase}learn/customize-formatting`,
destination: `/${redirectBase}learn/development-tutorials/source-code-dependencies/customize-formatting`,
},
Copy link
Contributor

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?

Copy link
Contributor Author

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

{
source: `/${redirectBase}learn/cli-commands/`,
destination: `/${redirectBase}learn/development-tutorials/build-and-run/cli-commands/`,
Expand Down