ESLintify Part 2 (#841)

* ESLintify Part 2

* Fix

* Fix tests

* Fix tests

* Fix tests
This commit is contained in:
Yangshun Tay 2018-07-10 21:53:08 -07:00 committed by GitHub
parent 4267337fb0
commit 5ac2cee658
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 188 additions and 190 deletions

View file

@ -8,6 +8,7 @@
const React = require('react');
const CompLibrary = require('../../core/CompLibrary.js');
const Container = CompLibrary.Container;
const GridBlock = CompLibrary.GridBlock;
@ -19,7 +20,7 @@ function docUrl(doc, language) {
class Help extends React.Component {
render() {
let language = this.props.language || '';
const language = this.props.language || '';
const supportLinks = [
{
content: `Learn more using the [documentation on this site.](${docUrl(

View file

@ -8,6 +8,7 @@
const React = require('react');
const CompLibrary = require('../../core/CompLibrary.js');
const MarkdownBlock = CompLibrary.MarkdownBlock; /* Used to read markdown */
const Container = CompLibrary.Container;
const GridBlock = CompLibrary.GridBlock;
@ -73,7 +74,7 @@ const PromoSection = props => (
class HomeSplash extends React.Component {
render() {
let language = this.props.language || '';
const language = this.props.language || '';
return (
<SplashContainer>
<Logo img_src={imgUrl('docusaurus.svg')} />
@ -179,7 +180,7 @@ const Showcase = props => {
return (
<div className="productShowcaseSection paddingBottom">
<h2>Who's Using This?</h2>
<h2>Who is Using This?</h2>
<p>This project is used by all these people</p>
<div className="logos">{showcase}</div>
<div className="more-users">
@ -193,7 +194,7 @@ const Showcase = props => {
class Index extends React.Component {
render() {
let language = this.props.language || '';
const language = this.props.language || '';
return (
<div>

View file

@ -8,6 +8,7 @@
const React = require('react');
const CompLibrary = require('../../core/CompLibrary.js');
const Container = CompLibrary.Container;
const siteConfig = require(process.cwd() + '/siteConfig.js');
@ -30,7 +31,7 @@ class Users extends React.Component {
<Container padding={['bottom', 'top']}>
<div className="showcaseSection">
<div className="prose">
<h1>Who's Using This?</h1>
<h1>Who is Using This?</h1>
<p>This project is used by many folks</p>
</div>
<div className="logos">{showcase}</div>

View file

@ -5,10 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/
// See https://docusaurus.io/docs/site-config.html for all the possible
// See https://docusaurus.io/docs/site-config for all the possible
// site configuration options.
/* List of projects/orgs using your project for the users page */
// List of projects/orgs using your project for the users page.
const users = [
{
caption: 'User1',
@ -21,10 +21,10 @@ const users = [
];
const siteConfig = {
title: 'Test Site' /* title for your website */,
title: 'Test Site', // Title for your website.
tagline: 'A website for testing',
url: 'https://your-docusaurus-test-site.com' /* your website url */,
baseUrl: '/' /* base url for your project */,
url: 'https://your-docusaurus-test-site.com', // Your website URL
baseUrl: '/', // Base URL for your project */
// For github.io type URLs, you would set the url and baseUrl like:
// url: 'https://facebook.github.io',
// baseUrl: '/test-site/',
@ -52,14 +52,15 @@ const siteConfig = {
footerIcon: 'img/docusaurus.svg',
favicon: 'img/favicon.png',
/* colors for website */
/* Colors for website */
colors: {
primaryColor: '#2E8555',
secondaryColor: '#205C3B',
},
/* custom fonts for website */
/*fonts: {
/* Custom fonts for website */
/*
fonts: {
myFont: [
"Times New Roman",
"Serif"
@ -68,26 +69,29 @@ const siteConfig = {
"-apple-system",
"system-ui"
]
},*/
},
*/
// This copyright info is used in /core/Footer.js and blog rss/atom feeds.
// This copyright info is used in /core/Footer.js and blog RSS/Atom feeds.
copyright:
'Copyright © ' +
new Date().getFullYear() +
' Your Name or Your Company Name',
highlight: {
// Highlight.js theme to use for syntax highlighting in code blocks
// Highlight.js theme to use for syntax highlighting in code blocks.
theme: 'default',
},
// Add custom scripts here that would be placed in <script> tags
// Add custom scripts here that would be placed in <script> tags.
scripts: ['https://buttons.github.io/buttons.js'],
/* On page navigation for the current documentation page */
// On page navigation for the current documentation page.
onPageNav: 'separate',
// No .html extensions for paths.
cleanUrl: true,
/* Open Graph and Twitter card images */
// Open Graph and Twitter card images.
ogImage: 'img/docusaurus.png',
twitterImage: 'img/docusaurus.png',