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

docs: move "Reserved binding keys" to "Reference guides" #5775

Merged
merged 1 commit into from
Jun 23, 2020

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Jun 19, 2020

Also remove "Overview" heading from the page. I feel the heading is redundant when there are no other headings. Before this change, the page was rendered with a single-item Table of Contents at the top, which looked weird to me. After this change, the pages is rendered as a single block with the page title as the only heading.

This is a follow-up to #5718, see also #5549.

Checklist

👉 Read and sign the CLA (Contributor License Agreement) 👈

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

@@ -4,11 +4,10 @@ title: 'Reserved binding keys'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
toc_level: 1
sidebar: lb4_sidebar
permalink: /doc/en/lb4/Reserved-binding-keys.html
permalink: /doc/en/lb4/reference-reserved-binding-keys.html
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's capitalize the first letter to be consistent with our urls.

 /doc/en/lb4/Reference-reserved-binding-keys.html

Copy link
Member Author

@bajtos bajtos Jun 22, 2020

Choose a reason for hiding this comment

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

I would like to transition our URL scheme to all-lowercase names and eventually to nested paths (/reference/reserved-binding-keys.html) to match the directory layout in docs/site.

I encountered some issues when using nested paths, so I am using - instead of / for now:

reference/reserved-binding-keys.md -> reference-reserved-binding-keys.html

We are already following the all-lowercase slug style in migration guide, see e.g. here:

https://github.com/strongloop/loopback-next/blob/ae6427322451c914ae54f44dbb656981e7fbbb81/docs/site/migration/datasources.md#L7

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's discuss in #5798

@@ -563,6 +559,10 @@ children:
url: apidocs.index.html
output: 'web, pdf'

- title: 'Reserved binding keys'
url: reference-reserved-binding-keys.html
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

Copy link
Member

@dhmlau dhmlau left a comment

Choose a reason for hiding this comment

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

LGTM once @raymondfeng's comment is addressed. Thanks.

@bajtos
Copy link
Member Author

bajtos commented Jun 22, 2020

Based on discussion with @raymondfeng, we will stick with Sentence-style.html to land my PRs and then normalize URL slugs afterwards, as this part may take a bit longer to reach consensus.

@bajtos bajtos force-pushed the docs/move-reserved-binding-keys branch from 58ada00 to ffccaf0 Compare June 22, 2020 15:03
Also remove "Overview" heading from the page. I feel the heading is
redundant when there are no other headings. Before this change,
the page was rendered with a single-item Table of Contents at the top,
which looked weird to me. After this change, the pages is rendered
as a single block with the page title as the only heading.

Signed-off-by: Miroslav Bajtoš <[email protected]>
@bajtos bajtos force-pushed the docs/move-reserved-binding-keys branch from ffccaf0 to 95606b2 Compare June 22, 2020 17:58
@bajtos bajtos merged commit 061769a into master Jun 23, 2020
@bajtos bajtos deleted the docs/move-reserved-binding-keys branch June 23, 2020 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants