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

API Change: siteConfig headerLinks #47

Closed
ericvicenti opened this issue Aug 8, 2017 · 1 comment
Closed

API Change: siteConfig headerLinks #47

ericvicenti opened this issue Aug 8, 2017 · 1 comment

Comments

@ericvicenti
Copy link
Contributor

ericvicenti commented Aug 8, 2017

headerLinksInternal and headerLinksExternal should be replaced with one array in siteConfig: headerLinks.

Each headerLink is one of the following:

Link to Doc:

{
  doc: 'foo',
  label: 'Foo Doc',
}

Link to Page:

{
  page: 'foo/bar',
  label: 'Foo Page',
}

This is the page located at website/pages/[en/]foo/bar.js

Manual/External Link

{
  href: 'https://github.com/facebookexperimental/Docusaurus',
  label: 'GitHub',
  external: true,
}

Search Box

Specifies the location of the search box in the header

{search: true}
@deltice
Copy link
Contributor

deltice commented Aug 8, 2017

Changed in #53. Also added a way to specify locations of the languages dropdown using:

{ languages: true }

If translations is enabled and the languages dropdown location is not specified, it will default to be all the way to the right (left of the search bar if the search bar location is also not specified).

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

No branches or pull requests

2 participants