Commit graph

405 commits

Author SHA1 Message Date
huang.xinghui
aa32ff4a55 Add customize highlight.theme custom path support (#517)
* add themeUrl option to support custom theme file path

* Update api-site-config.md
2018-04-19 08:04:49 -07:00
Amy Lam
57cddb4d08 Allow customizing of blog author image URL documentation (#577)
* Rename authorImage to authorImageURL for clarity

Update documentation

* Fix typo

* Add documentation for authorImageURL

* Add support for authorImage

We will remove support for authorImage in favor of authorImageURL, after we remove authorImage from react-native-website

* Update guides-blog.md

* Update guides-blog.md
2018-04-17 23:15:27 -07:00
Joel Marcey
e738bbd99e
Add twitterImage to siteConfig options (#580) 2018-04-17 21:04:39 -07:00
Yangshun Tay
b23b0def1d Fix CSS media queries (#576) 2018-04-17 09:47:04 -07:00
Sviatoslav
1642c078a7 Support for non-latin characters in heading anchor links (#492) 2018-04-17 09:33:10 -07:00
Yangshun Tay
ba024a25c7 Fix search bar width for mobile nav (#575)
* Shorten search bar width for mobile nav

* Remove min-device-width

* Use max-width
2018-04-17 08:17:20 -07:00
Yangshun Tay
159b80df94
Use cssnano to minify main CSS file (#569)
* Add cssnano to CSS generation

* Add babel-polyfill

* Call cssnano at the end

* Fix tests

* Add babelrc
2018-04-16 21:31:01 -07:00
Yangshun Tay
946e2cef90
Add <doctype HTML> to HTML pages (#566)
* Add doctype to static rendering

* Set content-type for CSS
2018-04-15 15:50:43 -07:00
Limon Monte
858b6f347f Fix body height by changing CSS height property to min-height (#556) 2018-04-13 08:40:58 -07:00
Joel Marcey
86edbec1d0
Split out @generated string (#553)
Nuclide treats files with @generated as read-only. This can fix that.
2018-04-12 14:11:01 -07:00
Joel Marcey
0e3f3e3013
Fix header nav display for current language (#550)
Even if we were on Spanish pages, it still showed English in the Header nav.
This makes it so that the Header nav shows the currently selected language.
2018-04-12 08:45:02 -07:00
Joel Marcey
71278431f1 Add hide_title to metadata check whitelist 2018-04-11 18:02:25 -07:00
Jason Gauci
6dd6ead19f Add hide_title metadata that hides the title text on the top of the doc (#540) 2018-04-11 17:56:56 -07:00
António Afonso
ad5b8b92b4 Ignore and warn about unsupported header fields (#347)
Unsupported header fields might mess up the creation of metadata.js (e.g.: next).
Skip unknown header fields and log a warn about them.
2018-04-11 17:45:03 -07:00
Yangshun Tay
1db939b119 Revert yarn prettier addition in yarn ci-check (#543) 2018-04-10 10:30:29 -07:00
Kaveh Khorram
bbbe311004 Dynamic port switching (#516) 2018-04-10 08:48:44 -07:00
Amy Lam
80ece69a10 Add form field title for a11y (#542)
* Add input title to improve a11y

Resolves pa11y error:

```
 • Error: This form field should be labelled in some way. Use the label element (either with a "for" attribute or wrapped around the form field), or "title", "aria-label" or "aria-labelledby" attributes as appropriate.
   ├── WCAG2AA.Principle1.Guideline1_3.1_3_1.F68
   ├── #search_input_react
   └── <input type="text" id="search_input_react" placeholder="Search" aria-label="Search" class="aa-input" autocomplete="off" spellcheck="false" role="combobox" aria-autocomplete="list" aria-expanded="false" aria-labelledby="search_input_react" aria-owns="...
```

* Fix Prettier failure on Circle CI
2018-04-10 08:46:08 -07:00
Yangshun Tay
099875a01a Display CompLibrary component in tabular format (#537) 2018-04-08 20:22:13 -07:00
Joel Marcey
fc051acde5
Fix .gitignore placement when running example script or docusaurus-init (#533)
Fixes #415
2018-04-08 07:35:35 -07:00
Yangshun Tay
6500f9bacf More doc improvements (#532)
* Generic doc improvements

* Convert to Markdown

* Remove whitespace

* More typo fixes
2018-04-07 21:16:29 -07:00
Yangshun Tay
e19b9ac56e Add rel="noreferrer noopener" to <a> with target="_blank" (#531)
* Add rel="noreferrer noopener" to <a> with target="_blank"

* Run Prettier
2018-04-07 19:14:28 -07:00
Amy Lam
c2cd169b64 Add alt tags to images for a11y (#529)
- Add imageAlt to GridBlock
- Set alt equal to `user.caption` for mapped users
- Set alt equal to `post.author` for blog posts
- Update documentation
2018-04-07 19:13:12 -07:00
John Eismeier
fc6e3b7311 Fix two typos (#530) 2018-04-06 10:26:31 -07:00
Elian Ibaj
c437f7be37 Use markdown-toc (#524) 2018-04-04 10:19:03 -07:00
Elian Ibaj
1a674885ae Fix body class (#521) 2018-03-28 10:55:00 -07:00
Ujjwal Sharma
d16d2aa4b3 Fix problems with a horizontal scrollbar (#518) 2018-03-19 08:45:53 -07:00
Ujjwal Sharma
a7acc7d794 Make sure the sitemap in footer is left aligned (#509)
* Make sure the sitemap in footer is left align

Fixes: https://github.com/facebook/Docusaurus/issues/485

* Restore original max-width and change width inside media query
2018-03-18 20:40:24 -07:00
Pablo Estevez
508090377e Add Facebook Pixel ID setting (#507) 2018-03-14 18:01:23 -07:00
Elian Ibaj
56bae1d70c Fix on-page nav height css bug (#505) 2018-03-14 12:42:38 -07:00
Joel Marcey
bc777a8e65
Remove slash from join path in server.js 2018-03-13 09:12:30 -07:00
Sunny Luo
4a4fea7d8a Fix wrong versioned_docs file path (#501) 2018-03-13 09:05:26 -07:00
Joel Marcey
cbdab2ba11
Use Path module functions and properties in server and generate (#490) 2018-03-12 16:01:40 -07:00
Ronen Amiel
c800870fef use id attribute instead of name for in page anchors and remove redundant anchors (#449) 2018-03-07 14:25:48 -08:00
Elian Ibaj
48ee457ec9 Add active link classes to site navigation menu (#463) 2018-03-04 08:53:31 -08:00
atroncy
4ea8158c0c feat(): add appId into algoliaConfig (#481) 2018-03-03 21:45:52 -08:00
cheercroaker
4553afda2b Add missing i18n support in side nav breadcrumb (#482) 2018-03-03 21:40:57 -08:00
cheercroaker
f8486e02ae Add missing i18n support in header link (#477)
* Add missing i18n support in header link

* Format file with prettier
2018-03-03 21:27:04 -08:00
Elian Ibaj
4ff2fe280e Add separate on-page navigation sidebar (#475) 2018-03-03 21:23:59 -08:00
Elian Ibaj
6eb658009b Add function to generate TOC from document headings (#474) 2018-02-27 16:33:48 -08:00
Juan Picado @jotadeveloper
d2bff6929e Fix #374 environment variables have precedent over conf (#473) 2018-02-27 08:50:57 -08:00
Sunny Luo
4a10be8002 Fix wrong latestVersion in server.js (#464) 2018-02-19 19:50:05 -08:00
Joel Marcey
ec6ff9284c
Allow multiple - in a version string (#457)
* Allow multiple `-` in a version string

Right now we were assuming that there would be no `-` in a version.
That was breaking things.

This allows more flexibility for versions like:

1.0.0-beta.2

Ref #455
Fixes #450

* Check more specific strings - need to look for the original_id
2018-02-17 12:25:46 -08:00
Joel Marcey
1388e13795
Don't throw if a doc hasn't been versioned yet (#455)
Instead of throwing, return `null` because that means we have a
new doc in our versioning sequence

(Also, cleaned up a bit of code as I researched this)

Partial Fix To #450
2018-02-16 19:16:38 -08:00
Maaz Syed Adeeb
0dad6d562f Adding scrollbar to header, only on mobile (#452) 2018-02-14 16:39:41 -08:00
Joel Marcey
69603c968e Revert "Adding scrollbar to header when it overflows (#444)"
This reverts commit 5e39b2e01f.
2018-02-12 07:30:37 -08:00
Glavin Wiechert
41750667cd Allow edit URL to be customized with doc metadata (#443) 2018-02-11 16:43:37 -08:00
Maaz Syed Adeeb
5e39b2e01f Adding scrollbar to header when it overflows (#444) 2018-02-11 16:39:10 -08:00
Tom Auger
2d7274f6fe Blog feed fixes #370 (#407)
* Refactor markdown rendering into separate module

* Render blog feed description in html
2018-02-11 08:05:58 -08:00
Samina Fu
a08b3cc921 Remove dead code in sitemap.js, close #429 (#430)
Closes #429
2018-02-02 19:45:00 -08:00
Eric Nakagawa
dfb70e1829 Allow controlling number of blog posts in Recent Blogs sidebar. (#432)
New feature. Allow controlling number of blog posts in Recent Blogs sidebar. Can have qty or ALL.
2018-02-02 08:11:51 -08:00