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
Héctor Ramos
c99cdefd3a
Fix links in blog Atom feed ( #421 )
...
The root URL was missing the baseURL portion. This is fine when a site is hosted on a custom URL such as docusaurus.io, because the generated URL will be valid (docusaurus.io/blog), but it breaks when the site is hosted on GitHub Pages (the React Native feed was using facebook.github.io/blog as the rootURL).
* Fix link to header image
2018-01-31 20:04:35 -08:00
Harrison Shoff
c6a9848a17
Add key to stylesheet links in Head.js ( #425 )
...
* Add key to config.stylesheets.map in Head.js
* Run prettier on Head.js
2018-01-31 19:59:41 -08:00
Joel Marcey
8c71572d7a
Remove rogue console.log for the status code
2018-01-29 21:05:28 -08:00
Henry Zhu
cb2f0eda62
Also transform class properties and object rest spread ( #419 )
2018-01-26 10:47:09 -08:00
Héctor Ramos
61c5d2d8e0
Treat latest version as current version ( #418 )
...
If the site is versioned, and the latest version is displayed, the URL will not change. We need to let Algolia know this is the case.
2018-01-25 17:28:25 -08:00
Sunny Luo
43e80fcea7
Fix regex for non english versioned docs ( #412 )
2018-01-23 13:23:33 -08:00
Joel Marcey
c81609d393
Send status code to server response for redirects ( #408 )
...
Also simplified the logic a bit to reduce duplication
Closes #404
2018-01-23 13:13:25 -08:00
jonathan-cowling
a241a46669
Make font-family as configurable parameter( #220 ) ( #294 )
...
We look for fonts object within siteConfig.js
2018-01-21 19:54:52 -08:00
Rick Hanlon II
4c2558e8bd
Fix margin for right-aligned images ( #398 )
...
Update so imageAlign* has a class for all directions
2018-01-17 19:04:03 -08:00
Joel Marcey
2e17953199
Revert "Issue 254 ( #343 )"
...
This reverts commit c921b8a38c
.
The search ended up misaligned on Chrome
2018-01-11 21:08:33 -08:00
Richard Zhang
c921b8a38c
Issue 254 ( #343 )
2018-01-11 19:38:54 -08:00
Richard Zhang
e8599c05a8
Remove duplicate blog.xml route ( #364 )
2018-01-11 16:42:39 -08:00
Ika
ba99660a3c
fix(feed): add missing slash for image url ( #365 )
2018-01-11 16:40:29 -08:00
Héctor Ramos
c08142c094
s/enamed/renamed ( #393 )
2018-01-11 15:23:13 -08:00
Joel Marcey
c14a8d2e77
Always use PROJECT_NAME, even for user and org pages ( #384 )
...
* Always use PROJECT_NAME, even for user and org pages
The symptom was that if we had a user or org page (e.g., https://JoelMarcey.github.io ), we would try to copy files to a directory within a directory, getting errors like:
```
Error: Copying build assets failed with error 'Error: Cannot copy '/Users/joelm/dev/JoelMarcey.github.io/website/build' to a subdirectory of itself, '/Users/joelm/dev/JoelMarcey.github.io/website/build/JoelMarcey.github.io-master'.'
```
This is because we were setting the end of `fromPath` to empty if we were using an org or user page.
But we don't need to do that. The `PROJECT_NAME` (set in `siteConfig.js` as `projectName`) is the user or org repo
e.g., https://github.com/JoelMarcey/JoelMarcey.github.io/ has a `projectName` of `JoelMarcey.github.io` with an `organizationName` of `JoelMarcey`.
So now the `fromPath` and `toPath` look like:
`fromPath`: `build/JoelMarcey.github.io`
`toPath`: `buuid/JoelMarcey.github.io-master`
2018-01-09 09:11:07 -08:00
Dániel Tar
654916ae98
Fix build on Windows ( #381 )
...
Use `path.dirName` instead of a `file.replace` on regex'd replaced string
2018-01-08 15:44:50 -08:00
Joel Marcey
b0f26db3e1
Do not set html lang attribute if there is no language set ( #362 )
...
* Do not set html lang attribute if there is no language set
* Prettier fixes
2017-12-27 15:19:32 -08:00
Joel Marcey
5a77f186b9
Check English translation if language doesn't exist ( #361 )
...
Need this because of https://github.com/facebook/Docusaurus/pull/316
2017-12-27 15:18:58 -08:00
Joel Marcey
5bb062b6f0
Versioning ids should be based on whether translation is enabled ( #333 )
...
* Versioning ids should be based on whether translation is enabled
Ref: ff117979c6
and a5e963dba1
Tested locally on:
Docusaurus
Relay
Test site from `npm run examples`
* Prettier
2017-12-20 19:47:51 -08:00
Joel Marcey
250395a96a
Better error when parsing headerLinks.doc fields ( #337 )
...
Closes #309
2017-12-20 19:47:13 -08:00
Christian Oliff
3e2cfc27ff
No need for chromeframe tag ( #328 )
...
Remove the unneeded chromeframe tag, it has long since been retired by Google and was only ever needed for very old IE (would render the page in Chrome within IE).
REF: http://www.chromium.org/developers/how-tos/chrome-frame-getting-started
2017-12-20 10:56:00 -08:00