Commit graph

19 commits

Author SHA1 Message Date
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
Happy-Ferret
37c699e8bd Use siteConfig properties inside Example pages (#497)
Replace hardcoded values inside "footer",
"help" and "users" with properties
from siteConfig.

Fixes #488
2018-03-16 14:07:09 -07:00
Aimee Pierce
8c2145585c support optional siteConfig.users (#484)
Fixes Issue #402 caused by removing optional users array from siteConfig file. Users array is now validated before using its properties.
2018-03-07 14:21:12 -08:00
Richard Zhang
a5e963dba1 Issue 305 broken link because of language fixes (#322)
* without having having to worry about site design.

Let me know if double having is intentional

* distinguish case of no translation and en lang

* prettier recommends

* distinguish case of no translation and en lang

* prettier recommends

* merge with latest origin/master changes

* typo

* link with language fixes

* do not show language dropdown if only one enabled

* check translation outside of LanguageDropDown.render
2017-12-19 17:44:43 -08:00
Joel Marcey
18c9a2ab31 Revert "Fixing Issue 305 - broken links because of language (#316)"
This reverts commit 7dc6c6c2da.
2017-12-19 09:23:41 -08:00
Richard Zhang
7dc6c6c2da Fixing Issue 305 - broken links because of language (#316)
* without having having to worry about site design.

Let me know if double having is intentional

* distinguish case of no translation and en lang

* prettier recommends

* distinguish case of no translation and en lang

* prettier recommends

* merge with latest origin/master changes

* typo
2017-12-19 09:20:32 -08:00
Joel Marcey
9c7836979f Fixes from prettier
Yeah, we should get this running apriori for pull requests :)
2017-12-18 09:29:45 -08:00
António Afonso
829508797e A bunch of tiny little fixes for issues I found while setting up docusaurus (#312)
* Do not show users related UI if no users have been specified

* Fixed typo in Docusaurus homepage link

* Allow projects without icons

Not every project has an icon, so avoid showing a broken image in that case.

* Do not show project icon in the footer if there's no footer icon
2017-12-18 09:26:33 -08:00
Joel Marcey
ef8ee5bf6c Run Prettier 2017-12-17 16:10:23 -08:00
Richard Zhang
73c6da0b8f Index page composition (#293)
* without having having to worry about site design.

Let me know if double having is intentional

* index page composition
2017-12-17 16:07:11 -08:00
Joel Marcey
d33489cf16 Update example URLs 2017-12-13 15:37:46 -08:00
Héctor Ramos
65421db62e Add Prettier Formatting (#258)
* Add Prettier formatting to source files and example files, and check that Prettier formatting is maintained on PRs

* Remove trailing-comma as we are using Node 6 on Circle

* Use latest Node 6 LTS version in Circle

* Remove unused test
2017-12-04 19:21:02 -08:00
Héctor Ramos
09354ab738 [BREAKING] Rename Marked to MarkdownBlock (#162)
* Switch to Remarkable

* Clean up references to custom code blocks

* Remove valdiateDOMNesting warning

* Add syntax highlighting

* Add Reason support

* Breaking change: prismColor to codeColor, remove CompLibrary.Prism, expose hljs

* Completely remove Prism and associated CSS rules

* Support loading plugins and scripts

* Remove CSS rules, allowing Highlight.js theme to be used entirely

* Remove unnecessary webplayer script

* Rename Marked to MarkdownBlock

* Rename Marked to MarkdownBlock

* Remove Marked.js
2017-10-30 15:47:13 -07:00
Eric Nakagawa
fa1ec70432 Bug fixes in generatejs (#169)
* Misc cleanups related to console.log messages in yarn build

* Fixes https://github.com/facebookexperimental/Docusaurus/issues/96
2017-10-26 16:13:56 -07:00
Joel Marcey
77535d80f2 The complete move to MIT license (#115)
- headers in .js files
- update README and LICENSE year

Testing:

grep BSD, Patents, patents turned up nothing
2017-10-05 11:14:49 -07:00
Ricky Vetter
c72da0c225 Fix link for logo
On projects where baseUrl is "/", the extra slash causes issues.
2017-09-25 23:08:06 -07:00
Ricky Vetter
2c108d36cb Use project title for example (#84)
Small change to keep the example file usable for whichever project it's inserted into.

* do baseUrl too
2017-09-22 06:58:07 -07:00
Frank Li
9e412f6bd7 Remove license headers from example files (#68) 2017-08-16 13:41:20 -07:00
Frank Li
c3a971f2eb Update example files and examples script 2017-08-09 14:18:17 -07:00