Add WarriorJS to Docusaurus users (#656)

* Separate users data from code

* Add WarriorJS to Docusaurus users
This commit is contained in:
Matías Olivera 2018-05-09 15:30:05 -03:00 committed by Yangshun Tay
parent e3b4f3945e
commit ac718dd7c4
4 changed files with 251 additions and 155 deletions

156
website/data/users.json Normal file
View file

@ -0,0 +1,156 @@
[
{
"caption": "Almin",
"image": "/img/almin.png",
"infoLink": "https://almin.js.org/",
"fbOpenSource": false,
"pinned": false
},
{
"caption": "BlueWhale",
"image": "/img/BlueWhale.png",
"infoLink": "https://facebookresearch.github.io/BlueWhale/",
"fbOpenSource": true,
"pinned": true
},
{
"caption": "BuckleScript",
"image": "/img/bucklescript.svg",
"infoLink": "https://bucklescript.github.io/",
"fbOpenSource": false,
"pinned": true
},
{
"caption": "Dep",
"image": "/img/golang-dep.svg",
"infoLink": "https://golang.github.io/dep/",
"fbOpenSource": false,
"pinned": false
},
{
"caption": "Docusaurus",
"image": "/img/docusaurus.svg",
"infoLink": "https://www.docusaurus.io",
"fbOpenSource": true,
"pinned": true
},
{
"caption": "FastText",
"image": "/img/fasttext.png",
"infoLink": "https://fasttext.cc",
"fbOpenSource": true,
"pinned": true
},
{
"caption": "Facebook Instant Articles Rules Editor",
"image": "/img/facebook-instant-articles-rules-editor.svg",
"infoLink": "https://facebook.github.io/facebook-instant-articles-rules-editor/",
"fbOpenSource": true,
"pinned": false
},
{
"caption": "Goby",
"image": "https://goby-lang.org/img/goby-logo.svg",
"infoLink": "https://goby-lang.org",
"fbOpenSource": false,
"pinned": false
},
{
"caption": "Home Assistant",
"image": "https://developers.home-assistant.io/img/logo-responsive.svg",
"infoLink": "https://developers.home-assistant.io/",
"fbOpenSource": false,
"pinned": false
},
{
"caption": "Jest",
"image": "/img/jest.png",
"infoLink": "https://facebook.github.io/jest/",
"fbOpenSource": true,
"pinned": true
},
{
"caption": "MakeItOpen",
"image": "/img/makeitopen.png",
"infoLink": "http://makeitopen.com/",
"fbOpenSource": true,
"pinned": true
},
{
"caption": "Prettier",
"image": "/img/prettier.png",
"infoLink": "https://www.prettier.io",
"fbOpenSource": false,
"pinned": true
},
{
"caption": "React Native",
"image": "/img/react-native.svg",
"infoLink": "https://facebook.github.io/react-native",
"fbOpenSource": true,
"pinned": true
},
{
"caption": "React Native Elements",
"image": "/img/react-native-elements.png",
"infoLink": "https://react-native-training.github.io/react-native-elements/",
"fbOpenSource": false,
"pinned": false
},
{
"caption": "react-native-ios-kit",
"image": "/img/react-native-ios-kit.svg",
"infoLink": "https://callstack.github.io/react-native-ios-kit",
"fbOpenSource": false,
"pinned": false
},
{
"caption": "Reason",
"image": "/img/reason.svg",
"infoLink": "https://reasonml.github.io/",
"fbOpenSource": true,
"pinned": true
},
{
"caption": "ReasonReact",
"image": "/img/reason-react.svg",
"infoLink": "https://reasonml.github.io/reason-react/",
"fbOpenSource": true,
"pinned": true
},
{
"caption": "Rejoiner",
"image": "/img/rejoiner.svg",
"infoLink": "http://rejoiner.io/",
"fbOpenSource": false,
"pinned": false
},
{
"caption": "Relay",
"image": "/img/relay.svg",
"infoLink": "https://facebook.github.io/relay/",
"fbOpenSource": true,
"pinned": true
},
{
"caption": "Verdaccio",
"image": "http://www.verdaccio.org/img/verdaccio-tiny@2x.png",
"infoLink": "http://www.verdaccio.org/",
"fbOpenSource": false,
"pinned": false
},
{
"caption": "Vuls",
"image": "https://vuls.io/img/docs/vuls_logo.png",
"infoLink": "https://vuls.io/",
"fbOpenSource": false,
"pinned": false
},
{
"caption": "WarriorJS",
"image": "/img/warriorjs.svg",
"infoLink": "https://warrior.js.org/",
"fbOpenSource": false,
"pinned": false
}
]

View file

@ -9,7 +9,7 @@ const React = require('react');
const CompLibrary = require('../../core/CompLibrary.js');
const Container = CompLibrary.Container;
const siteConfig = require(process.cwd() + '/siteConfig.js');
const translate = require("../../server/translate.js").translate;
const translate = require('../../server/translate.js').translate;
class Users extends React.Component {
render() {
@ -42,7 +42,9 @@ class Users extends React.Component {
<Container padding={['bottom', 'top']}>
<div className="showcaseSection">
<div className="prose">
<h1><translate>Who is using Docusaurus?</translate></h1>
<h1>
<translate>Who is using Docusaurus?</translate>
</h1>
<p>
Docusaurus powers some of Facebook's popular{' '}
<a href="https://code.facebook.com/projects/">
@ -53,15 +55,19 @@ class Users extends React.Component {
<div className="logos">{fbShowcase}</div>
<div className="prose">
<p>
<translate>Docusaurus is also used by open source projects of all sizes.</translate>
<translate>
Docusaurus is also used by open source projects of all sizes.
</translate>
</p>
</div>
<div className="logos">{showcase}</div>
<div className="prose">
<p><translate>Is your project using Docusaurus?</translate></p>
<p>
<translate>Is your project using Docusaurus?</translate>
</p>
<p>
Edit this page with a{' '}
<a href="https://github.com/facebook/docusaurus/edit/master/website/siteConfig.js">
<a href="https://github.com/facebook/docusaurus/edit/master/website/data/users.json">
Pull Request
</a>{' '}
to add your logo.

View file

@ -5,156 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/
// List of projects/orgs using your project for the users page.
const users = [
{
caption: "Almin",
image: "/img/almin.png",
infoLink: "https://almin.js.org/",
fbOpenSource: false,
pinned: false,
},
{
caption: "BlueWhale",
image: "/img/BlueWhale.png",
infoLink: "https://facebookresearch.github.io/BlueWhale/",
fbOpenSource: true,
pinned: true,
},
{
caption: 'BuckleScript',
image: '/img/bucklescript.svg',
infoLink: 'https://bucklescript.github.io/',
fbOpenSource: false,
pinned: true,
},
{
caption: 'Dep',
image: '/img/golang-dep.svg',
infoLink: 'https://golang.github.io/dep/',
fbOpenSource: false,
pinned: false,
},
{
caption: 'Docusaurus',
image: '/img/docusaurus.svg',
infoLink: 'https://www.docusaurus.io',
fbOpenSource: true,
pinned: true,
},
{
caption: 'FastText',
image: '/img/fasttext.png',
infoLink: 'https://fasttext.cc',
fbOpenSource: true,
pinned: true,
},
{
caption: 'Facebook Instant Articles Rules Editor',
image: '/img/facebook-instant-articles-rules-editor.svg',
infoLink: 'https://facebook.github.io/facebook-instant-articles-rules-editor/',
fbOpenSource: true,
pinned: false,
},
{
caption: 'Goby',
image: 'https://goby-lang.org/img/goby-logo.svg',
infoLink: 'https://goby-lang.org',
fbOpenSource: false,
pinned: false,
},
{
caption: 'Home Assistant',
image: 'https://developers.home-assistant.io/img/logo-responsive.svg',
infoLink: 'https://developers.home-assistant.io/',
fbOpenSource: false,
pinned: false,
},
{
caption: 'Jest',
image: '/img/jest.png',
infoLink: 'https://facebook.github.io/jest/',
fbOpenSource: true,
pinned: true,
},
{
caption: 'MakeItOpen',
image: '/img/makeitopen.png',
infoLink: 'http://makeitopen.com/',
fbOpenSource: true,
pinned: true,
},
{
caption: 'Prettier',
image: '/img/prettier.png',
infoLink: 'https://www.prettier.io',
fbOpenSource: false,
pinned: true,
},
{
caption: 'React Native',
image: '/img/react-native.svg',
infoLink: 'https://facebook.github.io/react-native',
fbOpenSource: true,
pinned: true,
},
{
caption: 'React Native Elements',
image: '/img/react-native-elements.png',
infoLink: 'https://react-native-training.github.io/react-native-elements/',
fbOpenSource: false,
pinned: false,
},
{
caption: 'react-native-ios-kit',
image: '/img/react-native-ios-kit.svg',
infoLink: 'https://callstack.github.io/react-native-ios-kit',
fbOpenSource: false,
pinned: false,
},
{
caption: 'Reason',
image: '/img/reason.svg',
infoLink: 'https://reasonml.github.io/',
fbOpenSource: true,
pinned: true,
},
{
caption: 'ReasonReact',
image: '/img/reason-react.svg',
infoLink: 'https://reasonml.github.io/reason-react/',
fbOpenSource: true,
pinned: true,
},
{
caption: 'Rejoiner',
image: '/img/rejoiner.svg',
infoLink: 'http://rejoiner.io/',
fbOpenSource: false,
pinned: false,
},
{
caption: 'Relay',
image: '/img/relay.svg',
infoLink: 'https://facebook.github.io/relay/',
fbOpenSource: true,
pinned: true,
},
{
caption: 'Verdaccio',
image: 'http://www.verdaccio.org/img/verdaccio-tiny@2x.png',
infoLink: 'http://www.verdaccio.org/',
fbOpenSource: false,
pinned: false,
},
{
caption: 'Vuls',
image: 'https://vuls.io/img/docs/vuls_logo.png',
infoLink: 'https://vuls.io/',
fbOpenSource: false,
pinned: false,
},
];
/* List of projects/orgs using your project for the users page */
const users = require('./data/users.json');
const siteConfig = {
title: 'Docusaurus',

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="250px" height="250px" viewBox="0 0 250 250" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="background: #2E3440;">
<!-- Generator: Sketch 49 (51002) - http://www.bohemiancoding.com/sketch -->
<title>warriorjs-avatar-dark</title>
<desc>Created with Sketch.</desc>
<defs>
<path d="M11,15 C14.5852031,15 17.3148054,16.4584946 19.1888889,19.3755274 C21.0629723,22.2925603 22,26.4927058 22,31.97609 C22,37.4913543 21.0629723,41.7074397 19.1888889,44.6244726 C17.3148054,47.5415054 14.5852031,49 11,49 C7.41479689,49 4.68519456,47.5415054 2.81111111,44.6244726 C0.937027667,41.7074397 0,37.4913543 0,31.97609 C0,26.4927058 0.937027667,22.2925603 2.81111111,19.3755274 C4.68519456,16.4584946 7.41479689,15 11,15 Z M11,19 C6.33331,19 4,23.3257538 4,31.9773913 C4,40.6591738 6.33331,45 11,45 C15.66669,45 18,40.6591738 18,31.9773913 C18,23.3257538 15.66669,19 11,19 Z" id="path-1"></path>
<path d="M10.9770992,29 C11.8320653,29 12.5496154,29.2900734 13.129771,29.870229 C13.7099266,30.4503846 14,31.1526676 14,31.9770992 C14,32.8320653 13.7099266,33.5496154 13.129771,34.129771 C12.5496154,34.7099266 11.8320653,35 10.9770992,35 C10.1221331,35 9.41221656,34.7099266 8.84732824,34.129771 C8.28243992,33.5496154 8,32.8320653 8,31.9770992 C8,31.1526676 8.28243992,30.4503846 8.84732824,29.870229 C9.41221656,29.2900734 10.1221331,29 10.9770992,29 Z" id="path-2"></path>
<polygon id="path-3" points="57 40 32 40 32 35 57 35"></polygon>
<polygon id="path-4" points="57 29 32 29 32 24 57 24"></polygon>
<path d="M89,4.41152263 C83.1596514,4.41152263 80.4151679,6.16733498 80.7664671,9.67901235 L82.0838323,23.1769547 C82.1277447,23.5720184 82.1497006,24.1426574 82.1497006,24.8888889 C82.1497006,26.9958953 81.6447156,28.6090479 80.6347305,29.7283951 C79.6247454,30.8477422 78.0658788,31.6049363 75.9580838,32 C78.1097912,32.3950637 79.6796358,33.1303101 80.6676647,34.2057613 C81.6556936,35.2812125 82.1497006,36.8943651 82.1497006,39.0452675 C82.1497006,39.7914989 82.1277447,40.3840856 82.0838323,40.8230453 L80.7664671,54.3209877 C80.5908175,56.2524102 81.2494935,57.6131648 82.742515,58.4032922 C84.2355364,59.1934196 86.3213439,59.5884774 89,59.5884774 L89,64 C85.0478844,64 81.8203718,63.3196227 79.3173653,61.9588477 C76.8143587,60.5980728 75.5628743,58.2935691 75.5628743,55.0452675 C75.5628743,54.4746199 75.5848301,54.0356668 75.6287425,53.7283951 L77.011976,41.218107 C77.0558884,40.9108352 77.0778443,40.4718821 77.0778443,39.9012346 C77.0778443,37.969812 76.3533007,36.5432145 74.9041916,35.6213992 C73.4550826,34.6995839 70.8203784,34.2386831 67,34.2386831 L67,29.7613169 C70.8203784,29.7613169 73.4550826,29.31139 74.9041916,28.4115226 C76.3533007,27.5116553 77.0778443,26.0960316 77.0778443,24.1646091 C77.0778443,23.6378574 77.0558884,23.220852 77.011976,22.9135802 L75.6287425,10.2716049 C75.5848301,9.96433317 75.5628743,9.52538008 75.5628743,8.95473251 C75.5628743,5.70643095 76.8143587,3.40192724 79.3173653,2.04115226 C81.8203718,0.680377284 85.0478844,0 89,0 L89,4.41152263 Z" id="path-5"></path>
<path d="M94,42.9382716 C94,41.5802401 94.4761857,40.4177003 95.4285714,39.4506173 C96.3809571,38.4835343 97.5610696,38 98.9689441,38 C100.418227,38 101.619043,38.4835343 102.571429,39.4506173 C103.523814,40.4177003 104,41.5802401 104,42.9382716 C104,44.3374556 103.523814,45.5308593 102.571429,46.5185185 C101.619043,47.5061778 100.418227,48 98.9689441,48 C97.5610696,48 96.3809571,47.5061778 95.4285714,46.5185185 C94.4761857,45.5308593 94,44.3374556 94,42.9382716 Z" id="path-6"></path>
<path d="M94,21 C94,19.6419685 94.4761857,18.4691407 95.4285714,17.4814815 C96.3809571,16.4938222 97.5610696,16 98.9689441,16 C100.418227,16 101.619043,16.4835343 102.571429,17.4506173 C103.523814,18.4177003 104,19.600816 104,21 C104,22.4403364 103.523814,23.6337401 102.571429,24.5802469 C101.619043,25.5267537 100.418227,26 98.9689441,26 C97.5610696,26 96.3809571,25.5267537 95.4285714,24.5802469 C94.4761857,23.6337401 94,22.4403364 94,21 Z" id="path-7"></path>
<path d="M114,42.9382716 C114,41.5802401 114.476186,40.4177003 115.428571,39.4506173 C116.380957,38.4835343 117.56107,38 118.968944,38 C120.418227,38 121.619043,38.4835343 122.571429,39.4506173 C123.523814,40.4177003 124,41.5802401 124,42.9382716 C124,44.3374556 123.523814,45.5308593 122.571429,46.5185185 C121.619043,47.5061778 120.418227,48 118.968944,48 C117.56107,48 116.380957,47.5061778 115.428571,46.5185185 C114.476186,45.5308593 114,44.3374556 114,42.9382716 Z" id="path-8"></path>
<path d="M114,21 C114,19.6419685 114.476186,18.4691407 115.428571,17.4814815 C116.380957,16.4938222 117.56107,16 118.968944,16 C120.418227,16 121.619043,16.4835343 122.571429,17.4506173 C123.523814,18.4177003 124,19.600816 124,21 C124,22.4403364 123.523814,23.6337401 122.571429,24.5802469 C121.619043,25.5267537 120.418227,26 118.968944,26 C117.56107,26 116.380957,25.5267537 115.428571,24.5802469 C114.476186,23.6337401 114,22.4403364 114,21 Z" id="path-9"></path>
<path d="M134,42.9382716 C134,41.5802401 134.476186,40.4177003 135.428571,39.4506173 C136.380957,38.4835343 137.56107,38 138.968944,38 C140.418227,38 141.619043,38.4835343 142.571429,39.4506173 C143.523814,40.4177003 144,41.5802401 144,42.9382716 C144,44.3374556 143.523814,45.5308593 142.571429,46.5185185 C141.619043,47.5061778 140.418227,48 138.968944,48 C137.56107,48 136.380957,47.5061778 135.428571,46.5185185 C134.476186,45.5308593 134,44.3374556 134,42.9382716 Z" id="path-10"></path>
<path d="M134,21 C134,19.6419685 134.476186,18.4691407 135.428571,17.4814815 C136.380957,16.4938222 137.56107,16 138.968944,16 C140.418227,16 141.619043,16.4835343 142.571429,17.4506173 C143.523814,18.4177003 144,19.600816 144,21 C144,22.4403364 143.523814,23.6337401 142.571429,24.5802469 C141.619043,25.5267537 140.418227,26 138.968944,26 C137.56107,26 136.380957,25.5267537 135.428571,24.5802469 C134.476186,23.6337401 134,22.4403364 134,21 Z" id="path-11"></path>
<path d="M154,42.9382716 C154,41.5802401 154.476186,40.4177003 155.428571,39.4506173 C156.380957,38.4835343 157.56107,38 158.968944,38 C160.418227,38 161.619043,38.4835343 162.571429,39.4506173 C163.523814,40.4177003 164,41.5802401 164,42.9382716 C164,44.3374556 163.523814,45.5308593 162.571429,46.5185185 C161.619043,47.5061778 160.418227,48 158.968944,48 C157.56107,48 156.380957,47.5061778 155.428571,46.5185185 C154.476186,45.5308593 154,44.3374556 154,42.9382716 Z" id="path-12"></path>
<path d="M154,21 C154,19.6419685 154.476186,18.4691407 155.428571,17.4814815 C156.380957,16.4938222 157.56107,16 158.968944,16 C160.418227,16 161.619043,16.4835343 162.571429,17.4506173 C163.523814,18.4177003 164,19.600816 164,21 C164,22.4403364 163.523814,23.6337401 162.571429,24.5802469 C161.619043,25.5267537 160.418227,26 158.968944,26 C157.56107,26 156.380957,25.5267537 155.428571,24.5802469 C154.476186,23.6337401 154,22.4403364 154,21 Z" id="path-13"></path>
<polygon id="path-14" points="198 29.5757576 198 34.4812834 176.541176 48 174 44.4634581 193.934118 32.0285205 174 19.6506239 176.315294 16"></polygon>
</defs>
<g id="warriorjs-avatar-dark" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Sword-(Dark)" transform="translate(125.000000, 125.000000) rotate(90.000000) translate(-125.000000, -125.000000) translate(26.000000, 93.000000)">
<g id="Combined-Shape">
<use fill="#4D566A" xlink:href="#path-1"></use>
<use fill="#8FBCBB" xlink:href="#path-1"></use>
</g>
<g id="Path">
<use fill="#4D566A" xlink:href="#path-2"></use>
<use fill="#8FBCBB" xlink:href="#path-2"></use>
</g>
<g id="Path">
<use fill="#4D566A" xlink:href="#path-3"></use>
<use fill="#8FBCBB" xlink:href="#path-3"></use>
</g>
<g id="Path">
<use fill="#4D566A" xlink:href="#path-4"></use>
<use fill="#8FBCBB" xlink:href="#path-4"></use>
</g>
<g id="Path">
<use fill="#4D566A" xlink:href="#path-5"></use>
<use fill="#8FBCBB" xlink:href="#path-5"></use>
</g>
<g id="Path">
<use fill="#4D566A" xlink:href="#path-6"></use>
<use fill="#8FBCBB" xlink:href="#path-6"></use>
</g>
<g id="Path">
<use fill="#4D566A" xlink:href="#path-7"></use>
<use fill="#8FBCBB" xlink:href="#path-7"></use>
</g>
<g id="Path">
<use fill="#4D566A" xlink:href="#path-8"></use>
<use fill="#8FBCBB" xlink:href="#path-8"></use>
</g>
<g id="Path">
<use fill="#4D566A" xlink:href="#path-9"></use>
<use fill="#8FBCBB" xlink:href="#path-9"></use>
</g>
<g id="Path">
<use fill="#4D566A" xlink:href="#path-10"></use>
<use fill="#8FBCBB" xlink:href="#path-10"></use>
</g>
<g id="Path">
<use fill="#4D566A" xlink:href="#path-11"></use>
<use fill="#8FBCBB" xlink:href="#path-11"></use>
</g>
<g id="Path">
<use fill="#4D566A" xlink:href="#path-12"></use>
<use fill="#8FBCBB" xlink:href="#path-12"></use>
</g>
<g id="Path">
<use fill="#4D566A" xlink:href="#path-13"></use>
<use fill="#8FBCBB" xlink:href="#path-13"></use>
</g>
<g id="Path">
<use fill="#4D566A" xlink:href="#path-14"></use>
<use fill="#8FBCBB" xlink:href="#path-14"></use>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.7 KiB