Skip to content

tabs: URL referencing #123

Open
Open

Description

@casperdcl

Given:

<!-- /some/page.md -->
<toggle>
<tab title="Foo">
</tab>
<tab title="Bar">

some text

### sub section

</tab>
</toggle>

Should be able to use:

  • /some/page?tab=Bar (or /some/page#Bar?) to auto-open the appropriate tab (p1-important, Update markdown tabs #130)
    • /some/page/?tab=Bar#sub-section (or /some/page#Bar-sub-section?) to auto-open the tab and scroll to containing section (p2-nice-to-have)
  • remember the ?tab=<arg> when navigating to a different page (p2-nice-to-have)

Other tasks:


Activity

  1. added
    p1-important
    A: website
    on Oct 11, 2021
  2. julieg18 commented on Oct 18, 2021

    @julieg18
    Contributor

    /some/page?tab=Bar (or /some/page#Bar?) to auto-open the appropriate tab (p1-important)

    Do we want the tab query to be automatically added to the url when the user clicks on a tab?

  3. casperdcl commented on Oct 18, 2021

    @casperdcl
    ContributorAuthor
  4. julieg18 commented on Oct 18, 2021

    @julieg18
    Contributor

    @julieg18 yes

    Do you think this could make urls look lengthy if we had multiple different sets of tabs on one page? For example: https://cml.dev/doc/cml-with-dvc?tab=google-cloud-storage&tab=windows.

  5. casperdcl commented on Oct 18, 2021

    @casperdcl
    ContributorAuthor

    For now I think we should only support 1 ?tab= (i.e. replace not add upon subsequent clicks)

  6. added
    p2-nice-to-have
    and removed
    p1-important
    on Oct 28, 2021
  7. julieg18 commented on Dec 1, 2021

    @julieg18
    Contributor

    remember the ?tab= when navigating to a different page (p2-nice-to-have)

    Are we sure we want this behavior? Currently it seems like we don't have many similiar tab names minus github, gitlab, and bitbucket 🤔

  8. added
    epic
    on Dec 1, 2021
  9. casperdcl commented on Dec 1, 2021

    @casperdcl
    ContributorAuthor

    Are we sure we want this

    yes, the GH/GL/BB tabs are important and frequent enough to make this desirable on https://cml.dev/doc. Potentially could clear ?tab=X only when navigating to a page that doesn't contain an X tab.

  10. removed their assignment
    on Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: websiteepicp2-nice-to-have

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions