Skip to content

Conversation

@rakeshAlgo
Copy link
Contributor

Hi @amarantha-k ,

I remove the SDK languages from the version drop-down and place it on the left menu. By default, it is open while going on any SDK landing page.
Please look into this and provide your feedback.

And for the main menu button, the SDK landing page menu link is not rendered over this page that why when we click on the back menu button it will not go to the SDK landing page.
Please look into in screenshot below.

leftMenu1
leftMenuAfterClickMainMenuBtn

So, main idea is SDK landing page URL is not available on this page as you can see on the screenshot.
So @mojavelinux , can you suggest to me it will be handled by my side or backend.

@amarantha-k amarantha-k requested a review from mojavelinux June 20, 2020 21:42
@mojavelinux
Copy link
Contributor

@rakeshAlgo Can you rebase this so there's only one commit instead of all the commits from your local merge?

src/js/01-nav.js Outdated
navMenuControl.addEventListener('click', function () {
// navWrap.style.display = 'none'
for (var i = 0; i < navItems.length; i++) {
console.log(navItems[i], 85)
Copy link
Contributor

Choose a reason for hiding this comment

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

All debug statements should be removed before submitting a PR.

{{/each}}
</ul>
{{#if (ends-with page.component.name '-sdk')}}
{{!-- {{#if (ends-with page.component.name '-sdk')}}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove old code instead of commenting out when submitting a PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, Sure. I"ll remove all commented code and console things as well.

@mojavelinux
Copy link
Contributor

mojavelinux commented Jun 22, 2020

SDK landing page URL is not available on this page as you can see on the screenshot.

Are you asking about the URL to make "SDK" a link?

You can use resolvePageURL to resolve the URL of an arbitrary page, such as resolvePageURL 'home::sdk.adoc' or whatever the page ID of the landing page is.

@rakeshAlgo
Copy link
Contributor Author

Yes @mojavelinux , I'm asking about the URL to make the SDK link when we click on the main menu button.

@amarantha-k
Copy link
Contributor

@mojavelinux FYI - we discussed this in the call tonight and I clarified the SDK nav behavior. @rakeshAlgo will be updating the behavior of SDK nav and the "< Main Menu" link too.

@amarantha-k amarantha-k requested a review from mojavelinux June 24, 2020 05:54
@rakeshAlgo
Copy link
Contributor Author

Hi @amarantha-k ,
In the new changes, I worked on making the SDK menu with a two-column layout in version dropdown. Please find below the screenshot.

image

In this PR border is present under the dropdown link, In the next PR it will be removed.

Copy link
Contributor

@amarantha-k amarantha-k left a comment

Choose a reason for hiding this comment

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

Noted that SDK lang switch UI will continue to be updated and expect more changes in the next PR.

@amarantha-k amarantha-k merged commit c1cc431 into couchbase:cloud Jun 24, 2020
@mojavelinux
Copy link
Contributor

I noticed that the UI project is not configured to allow the SDK menu to be tested in the UI preview. Would you like me to set that up to avoid having to bundle the UI and build the real site to test it? If you'd like me to do that task, please let me know what the priority is.

@amarantha-k
Copy link
Contributor

@mojavelinux That would be a good enhancement. However, given the current tasks & priorities, I would say this is low on the priority list.

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.

3 participants