diff --git a/v2/.eslintrc.js b/v2/.eslintrc.js index af43d0d9e6..9e7e5e8016 100644 --- a/v2/.eslintrc.js +++ b/v2/.eslintrc.js @@ -16,6 +16,10 @@ module.exports = { jest: true, node: true, }, + parser: 'babel-eslint', + parserOptions: { + allowImportExportEverywhere: true, + }, extends: ['airbnb', 'prettier', 'prettier/react'], plugins: ['react-hooks'], rules: { diff --git a/v2/lib/core/App.js b/v2/lib/core/App.js index 86f60d7151..556a1a75ae 100644 --- a/v2/lib/core/App.js +++ b/v2/lib/core/App.js @@ -10,6 +10,7 @@ import {renderRoutes} from 'react-router-config'; import routes from '@generated/routes'; // eslint-disable-line import blogMetadatas from '@generated/blogMetadatas'; // eslint-disable-line import docsMetadatas from '@generated/docsMetadatas'; // eslint-disable-line +import env from '@generated/env'; // eslint-disable-line import docsSidebars from '@generated/docsSidebars'; // eslint-disable-line import pagesMetadatas from '@generated/pagesMetadatas'; // eslint-disable-line import siteConfig from '@generated/siteConfig'; //eslint-disable-line @@ -19,6 +20,7 @@ export default () => blogMetadatas, docsMetadatas, docsSidebars, + env, pagesMetadatas, siteConfig, }); diff --git a/v2/lib/load/config.js b/v2/lib/load/config.js index 8f696976ca..c822ab0cf2 100644 --- a/v2/lib/load/config.js +++ b/v2/lib/load/config.js @@ -25,6 +25,9 @@ module.exports = function loadConfig(siteDir, deleteCache = true) { 'projectName', 'baseUrl', 'url', + 'headerLinks', + 'headerIcon', + 'favicon', ]; const optionalFields = [ 'customDocsPath', @@ -36,6 +39,7 @@ module.exports = function loadConfig(siteDir, deleteCache = true) { 'docsUrl', 'customFields', 'githubHost', + 'algolia', ]; const missingFields = requiredFields.filter(field => !config[field]); if (missingFields && missingFields.length > 0) { @@ -55,6 +59,30 @@ module.exports = function loadConfig(siteDir, deleteCache = true) { } }); + /* Build final headerLinks based on siteConfig */ + const {headerLinks} = config; + // add language drop down to end if location not specified + let languages = false; + headerLinks.forEach(link => { + if (link.languages) { + languages = true; + } + }); + if (!languages) { + headerLinks.push({languages: true}); + } + let search = false; + headerLinks.forEach(link => { + // We will add search bar to end if location not specified + if (link.search) { + search = true; + } + }); + if (!search && config.algolia) { + headerLinks.push({search: true}); + } + config.headerLinks = headerLinks; + /* User's own array of custom fields, e.g: if they want to include some field so they can access it later from `props.siteConfig` diff --git a/v2/lib/load/env.js b/v2/lib/load/env.js index c41a641471..58c9f27313 100644 --- a/v2/lib/load/env.js +++ b/v2/lib/load/env.js @@ -18,6 +18,7 @@ module.exports = function loadEnv({siteDir, siteConfig}) { }; const languagesFile = path.join(siteDir, 'languages.js'); + delete require.cache[languagesFile]; if (fs.existsSync(languagesFile)) { const languages = require(languagesFile); // eslint-disable-line @@ -52,6 +53,7 @@ module.exports = function loadEnv({siteDir, siteConfig}) { }; const versionsJSONFile = path.join(siteDir, 'versions.json'); + delete require.cache[versionsJSONFile]; if (fs.existsSync(versionsJSONFile)) { versioning.enabled = true; versioning.versions = JSON.parse(fs.readFileSync(versionsJSONFile, 'utf8')); diff --git a/v2/lib/load/index.js b/v2/lib/load/index.js index 56d1530b03..9d3da0fd55 100644 --- a/v2/lib/load/index.js +++ b/v2/lib/load/index.js @@ -25,6 +25,7 @@ module.exports = async function load(siteDir) { // @tested - env const env = loadEnv({siteDir, siteConfig}); + await generate('env.js', `export default ${JSON.stringify(env, null, 2)};`); // docs const docsDir = path.resolve(siteDir, '..', siteConfig.customDocsPath); diff --git a/v2/lib/load/theme.js b/v2/lib/load/theme.js index 19b9c1786f..96123f98ed 100644 --- a/v2/lib/load/theme.js +++ b/v2/lib/load/theme.js @@ -22,6 +22,7 @@ module.exports = function loadConfig(siteDir) { 'Loading', 'NotFound', 'Markdown', + 'Search', ]; themeComponents.forEach(component => { if (!require.resolve(path.join(themePath, component))) { diff --git a/v2/lib/theme/BlogPage/index.js b/v2/lib/theme/BlogPage/index.js index 905796205f..faf083d0fb 100644 --- a/v2/lib/theme/BlogPage/index.js +++ b/v2/lib/theme/BlogPage/index.js @@ -21,12 +21,16 @@ export default class BlogPage extends React.Component { blogMetadatas, language, children, - siteConfig, + siteConfig = {}, } = this.props; const {posts} = metadata; + + const {baseUrl, favicon} = siteConfig; return ( - + + {'Blog'} + {favicon && } {language && } {language && } diff --git a/v2/lib/theme/BlogPost/index.js b/v2/lib/theme/BlogPost/index.js index 2d3830f59f..975ab06a82 100644 --- a/v2/lib/theme/BlogPost/index.js +++ b/v2/lib/theme/BlogPost/index.js @@ -80,11 +80,14 @@ export default class BlogPost extends React.Component { } render() { - const {metadata, children, siteConfig} = this.props; - const {language} = metadata; + const {metadata, children, siteConfig = {}} = this.props; + const {baseUrl, favicon} = siteConfig; + const {language, title} = metadata; return ( + {title && {title}} + {favicon && } {language && } {this.renderPostHeader()} diff --git a/v2/lib/theme/Doc/index.js b/v2/lib/theme/Doc/index.js index cc52da7dee..91cb1e1f77 100644 --- a/v2/lib/theme/Doc/index.js +++ b/v2/lib/theme/Doc/index.js @@ -22,22 +22,30 @@ class Doc extends React.Component { const { docsMetadatas, docsSidebars, + env, location, metadata, pagesMetadatas, - siteConfig, + siteConfig = {}, route, } = this.props; const {language, version} = metadata; + const {baseUrl, favicon} = siteConfig; return (
{(metadata && metadata.title) || siteConfig.title} + {favicon && } {language && } {language && } {version && } - + - + {children}
{ + if (link.search && algolia) { + // return algolia search bar + return ( +
  • + +
  • + ); + } + if (link.languages) { + // TODO in the future for like in v1 + return null; + } + if (link.doc) { + // set link to document with current page's language/version + const langPart = translationEnabled ? `${thisLanguage}-` : ''; + const versionPart = + versioningEnabled && thisVersion !== 'next' + ? `version-${thisVersion || env.versioning.defaultVersion}-` + : ''; + const id = langPart + versionPart + link.doc; + if (!docsMetadatas[id]) { + const errorStr = `We could not find the doc wih id: ${id}. Please check your headerLinks correctly\n`; + throw new Error(errorStr); + } + return ( +
  • + + {link.label} + +
  • + ); + } + if (link.page) { + // set link to page with current page's language if appropriate + const pageHref = `${baseUrl}${thisLanguage ? `${thisLanguage}/` : ''}${ + link.page + }`; + return ( +
  • + + {link.label} + +
  • + ); + } + if (link.href) { + // set link to specified href + return ( +
  • + + {link.label} + +
  • + ); + } + if (link.blog) { + // set link to blog url + const blogUrl = `${baseUrl}blog`; + return ( +
  • + + Blog + +
  • + ); + } + return null; + }; + return ( diff --git a/v2/lib/theme/NotFound.js b/v2/lib/theme/NotFound.js index 722096ae9b..e2d7f4787e 100644 --- a/v2/lib/theme/NotFound.js +++ b/v2/lib/theme/NotFound.js @@ -11,7 +11,7 @@ import Layout from '@theme/Layout'; export default class NotFound extends React.Component { render() { return ( - +
    404 Page Not Found
    + {favicon && } {language && } {language && } diff --git a/v2/lib/theme/Search/index.js b/v2/lib/theme/Search/index.js new file mode 100644 index 0000000000..52d74f6e16 --- /dev/null +++ b/v2/lib/theme/Search/index.js @@ -0,0 +1,61 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import React from 'react'; + +import './styles.css'; + +class Search extends React.Component { + constructor() { + super(); + this.state = { + enabled: true, + }; + } + + componentDidMount() { + const {siteConfig = {}, metadata = {}} = this.props; + const {version: thisVersion, language: thisLanguage} = metadata; + const {algolia} = siteConfig; + + // https://github.com/algolia/docsearch/issues/352 + const isClient = typeof window !== 'undefined'; + if (isClient) { + import('docsearch.js').then(({default: docsearch}) => { + docsearch({ + appId: algolia.appId, + apiKey: algolia.apiKey, + indexName: algolia.indexName, + inputSelector: '#search_input_react', + algoliaOptions: JSON.parse( + JSON.stringify(algolia.algoliaOptions) + .replace('VERSION', thisVersion) + .replace('LANGUAGE', thisLanguage), + ), + }); + }); + } else { + console.warn('Search has failed to load and now is being disabled'); + this.setState({enabled: false}); + } + } + + render() { + const {enabled} = this.state; + + return enabled ? ( + + ) : null; + } +} + +export default Search; diff --git a/v2/lib/theme/Search/styles.css b/v2/lib/theme/Search/styles.css new file mode 100644 index 0000000000..1c84b1eb2b --- /dev/null +++ b/v2/lib/theme/Search/styles.css @@ -0,0 +1,535 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +input#search_input_react { + align-self: center; + background-color: #c6cbd1; + border: none; + border-radius: 20px; + color: #fff; + font-size: 14px; + font-weight: 300; + line-height: 20px; + outline: none; + padding-left: 25px; + position: relative; + -webkit-transition: 0.5s width ease; + -moz-transition: 0.5s width ease; + -o-transition: 0.5s width ease; + transition: 0.5s width ease; + width: 170px; +} + +input#search_input_react:focus, +input#search_input_react:active { + color: #fff; + width: 220px; +} + +input::-webkit-input-placeholder { + color: #fff; +} + +input::-moz-placeholder { + color: #fff; +} + +input::placeholder { + color: #fff; +} + +/* Bottom border of each suggestion */ +.algolia-docsearch-suggestion { + border-bottom-color: #3A3DD1; +} +/* Main category headers */ +.algolia-docsearch-suggestion--category-header { + background-color: #4B54DE; +} +/* Highlighted search terms */ +.algolia-docsearch-suggestion--highlight { + color: #3A33D1; +} +/* Highligted search terms in the main category headers */ +.algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--highlight { + background-color: #4D47D5; +} +/* Currently selected suggestion */ +.aa-cursor .algolia-docsearch-suggestion--content { + color: #272296; +} +.aa-cursor .algolia-docsearch-suggestion { + background: #EBEBFB; +} + +/* For bigger screens, when displaying results in two columns */ +@media (min-width: 768px) { + /* Bottom border of each suggestion */ + .algolia-docsearch-suggestion { + border-bottom-color: #7671df; + } + /* Left column, with secondary category header */ + .algolia-docsearch-suggestion--subcategory-column { + border-right-color: #7671df; + background-color: #F2F2FF; + color: #4E4726; + } +} + +.searchbox { + display: inline-block; + position: relative; + width: 200px; + height: 32px !important; + white-space: nowrap; + box-sizing: border-box; + visibility: visible !important; +} + +.searchbox .algolia-autocomplete { + display: block; + width: 100%; + height: 100%; +} + +.searchbox__wrapper { + width: 100%; + height: 100%; + z-index: 999; + position: relative; +} + +.searchbox__input { + display: inline-block; + box-sizing: border-box; + -webkit-transition: box-shadow .4s ease, background .4s ease; + transition: box-shadow .4s ease, background .4s ease; + border: 0; + border-radius: 16px; + box-shadow: inset 0 0 0 1px #CCCCCC; + background: #FFFFFF !important; + padding: 0; + padding-right: 26px; + padding-left: 32px; + width: 100%; + height: 100%; + vertical-align: middle; + white-space: normal; + font-size: 12px; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; +} + +.searchbox__input::-webkit-search-decoration, .searchbox__input::-webkit-search-cancel-button, .searchbox__input::-webkit-search-results-button, .searchbox__input::-webkit-search-results-decoration { + display: none; +} + +.searchbox__input:hover { + box-shadow: inset 0 0 0 1px #b3b3b3; +} + +.searchbox__input:focus, .searchbox__input:active { + outline: 0; + box-shadow: inset 0 0 0 1px #AAAAAA; + background: #FFFFFF; +} + +.searchbox__input::-webkit-input-placeholder { + color: #AAAAAA; +} + +.searchbox__input::-moz-placeholder { + color: #AAAAAA; +} + +.searchbox__input:-ms-input-placeholder { + color: #AAAAAA; +} + +.searchbox__input::placeholder { + color: #AAAAAA; +} + +.searchbox__submit { + position: absolute; + top: 0; + margin: 0; + border: 0; + border-radius: 16px 0 0 16px; + background-color: rgba(69, 142, 225, 0); + padding: 0; + width: 32px; + height: 100%; + vertical-align: middle; + text-align: center; + font-size: inherit; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + right: inherit; + left: 0; +} + +.searchbox__submit::before { + display: inline-block; + margin-right: -4px; + height: 100%; + vertical-align: middle; + content: ''; +} + +.searchbox__submit:hover, .searchbox__submit:active { + cursor: pointer; +} + +.searchbox__submit:focus { + outline: 0; +} + +.searchbox__submit svg { + width: 14px; + height: 14px; + vertical-align: middle; + fill: #6D7E96; +} + +.searchbox__reset { + display: block; + position: absolute; + top: 8px; + right: 8px; + margin: 0; + border: 0; + background: none; + cursor: pointer; + padding: 0; + font-size: inherit; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + fill: rgba(0, 0, 0, 0.5); +} + +.searchbox__reset.hide { + display: none; +} + +.searchbox__reset:focus { + outline: 0; +} + +.searchbox__reset svg { + display: block; + margin: 4px; + width: 8px; + height: 8px; +} + +.searchbox__input:valid ~ .searchbox__reset { + display: block; + -webkit-animation-name: sbx-reset-in; + animation-name: sbx-reset-in; + -webkit-animation-duration: .15s; + animation-duration: .15s; +} + +@-webkit-keyframes sbx-reset-in { + 0% { + -webkit-transform: translate3d(-20%, 0, 0); + transform: translate3d(-20%, 0, 0); + opacity: 0; + } + 100% { + -webkit-transform: none; + transform: none; + opacity: 1; + } +} + +@keyframes sbx-reset-in { + 0% { + -webkit-transform: translate3d(-20%, 0, 0); + transform: translate3d(-20%, 0, 0); + opacity: 0; + } + 100% { + -webkit-transform: none; + transform: none; + opacity: 1; + } +} + + +.algolia-autocomplete .ds-dropdown-menu:before { + display: block; + position: absolute; + content: ''; + width: 14px; + height: 14px; + background: #373940; + z-index: 1000; + top: -7px; + border-top: 1px solid #373940; + border-right: 1px solid #373940; + -webkit-transform: rotate(-45deg); + transform: rotate(-45deg); + border-radius: 2px; +} + +.algolia-autocomplete .ds-dropdown-menu { + box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.1); +} + +@media (min-width: 601px) { + .algolia-autocomplete.algolia-autocomplete-right .ds-dropdown-menu { + right: 0 !important; + left: inherit !important; + } + + .algolia-autocomplete.algolia-autocomplete-right .ds-dropdown-menu:before { + right: 48px; + } + + .algolia-autocomplete .ds-dropdown-menu { + position: relative; + top: -6px; + border-radius: 4px; + margin: 6px 0 0; + padding: 0; + text-align: left; + height: auto; + position: relative; + background: transparent; + border: none; + z-index: 999; + max-width: 600px; + min-width: 500px; + } +} + +@media (max-width: 600px) { + .algolia-autocomplete .ds-dropdown-menu { + z-index: 100; + position: fixed !important; + top: 40px !important; + left: auto !important; + right: 1rem !important; + width: 600px; + max-width: calc(100% - 2rem); + max-height: calc(100% - 5rem); + display: block; + } + + .algolia-autocomplete .ds-dropdown-menu:before { + right: 6rem; + } +} + +.algolia-autocomplete .ds-dropdown-menu .ds-suggestions { + position: relative; + z-index: 1000; +} + +.algolia-autocomplete .ds-dropdown-menu .ds-suggestion { + cursor: pointer; +} + +.algolia-autocomplete .ds-dropdown-menu [class^="ds-dataset-"] { + position: relative; + border-radius: 4px; + overflow: auto; + padding: 0; +} + +.algolia-autocomplete .ds-dropdown-menu * { + box-sizing: border-box; +} + +.algolia-autocomplete .algolia-docsearch-suggestion { + position: relative; + padding: 0; + overflow: hidden; +} + +.algolia-autocomplete .ds-cursor .algolia-docsearch-suggestion--wrapper { + background: #f1f1f1; + box-shadow: inset -2px 0 0 #61dafb; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--highlight { + background: #ffe564; + padding: 0.1em 0.05em; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--category-header-lvl0 .algolia-docsearch-suggestion--highlight, +.algolia-autocomplete .algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--category-header-lvl1 .algolia-docsearch-suggestion--highlight { + color: inherit; + background: inherit; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight { + padding: 0 0 1px; + background: inherit; + box-shadow: inset 0 -2px 0 0 rgba(69, 142, 225, 0.8); + color: inherit; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--content { + display: block; + float: right; + width: 70%; + position: relative; + padding: 5.33333px 0 5.33333px 10.66667px; + cursor: pointer; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--content:before { + content: ''; + position: absolute; + display: block; + top: 0; + height: 100%; + width: 1px; + background: #ececec; + left: -1px; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--category-header { + position: relative; + display: none; + font-size: 14px; + letter-spacing: 0.08em; + font-weight: 700; + background-color: #373940; + text-transform: uppercase; + color: #fff; + margin: 0; + padding: 5px 8px; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--wrapper { + background-color: #fff; + width: 100%; + float: left; + padding: 8px 0 0 0; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column { + float: left; + width: 30%; + display: none; + padding-left: 0; + text-align: right; + position: relative; + padding: 5.33333px 10.66667px; + color: #777; + font-size: 0.9em; + word-wrap: break-word; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column:before { + content: ''; + position: absolute; + display: block; + top: 0; + height: 100%; + width: 1px; + background: #ececec; + right: 0; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column .algolia-docsearch-suggestion--highlight { + background-color: inherit; + color: inherit; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-inline { + display: none; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--title { + margin-bottom: 4px; + color: #02060C; + font-size: 0.9em; + font-weight: bold; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--text { + display: block; + line-height: 1.2em; + font-size: 0.85em; + color: #63676D; + padding-right: 2px; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--no-results { + width: 100%; + padding: 8px 0; + text-align: center; + font-size: 1.2em; + background-color: #373940; + margin-top: -8px; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--no-results .algolia-docsearch-suggestion--text { + color: #ffffff; + margin-top: 4px; +} + +.algolia-autocomplete .algolia-docsearch-suggestion--no-results::before { + display: none; +} + +.algolia-autocomplete .algolia-docsearch-suggestion code { + padding: 1px 5px; + font-size: 90%; + border: none; + color: #222222; + background-color: #EBEBEB; + border-radius: 3px; + font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace; +} + +.algolia-autocomplete .algolia-docsearch-suggestion code .algolia-docsearch-suggestion--highlight { + background: none; +} + +.algolia-autocomplete .algolia-docsearch-suggestion.algolia-docsearch-suggestion__main .algolia-docsearch-suggestion--category-header { + display: block; +} + +.algolia-autocomplete .algolia-docsearch-suggestion.algolia-docsearch-suggestion__secondary .algolia-docsearch-suggestion--subcategory-column { + display: block; +} + + +.algolia-autocomplete .algolia-docsearch-footer { + background-color: #fff; + width: 100%; + height: 30px; + z-index: 2000; + float: right; + font-size: 0; + line-height: 0; +} + +.algolia-autocomplete .algolia-docsearch-footer--logo { + background-image: url('data:image/svg+xml;utf8,'); + background-repeat: no-repeat; + background-position: center; + background-size: 100%; + overflow: hidden; + text-indent: -9000px; + width: 110px; + height: 100%; + display: block; + margin-left: auto; + margin-right: 5px; +} \ No newline at end of file diff --git a/v2/package.json b/v2/package.json index 01bf7ea88c..b39a67be17 100644 --- a/v2/package.json +++ b/v2/package.json @@ -34,7 +34,8 @@ }, "devDependencies": { "babel-core": "^7.0.0-bridge.0", - "eslint": "^5.8.0", + "babel-eslint": "8", + "eslint": "4.x", "eslint-config-airbnb": "17.1.0", "eslint-config-prettier": "^2.9.0", "eslint-plugin-import": "^2.14.0", @@ -63,6 +64,7 @@ "commander": "^2.16.0", "connect-history-api-fallback": "^1.5.0", "css-loader": "^1.0.0", + "docsearch.js": "^2.5.2", "escape-html": "^1.0.3", "escape-string-regexp": "^1.0.5", "front-matter": "^2.3.0", diff --git a/v2/test/__fixtures__/custom-site/sidebars.json b/v2/test/__fixtures__/custom-site/sidebars.json new file mode 100644 index 0000000000..24d61b49c7 --- /dev/null +++ b/v2/test/__fixtures__/custom-site/sidebars.json @@ -0,0 +1,11 @@ +{ + "docs": { + "Test": [ + "foo/bar", + "foo/baz" + ], + "Guides": [ + "hello" + ] + } +} diff --git a/v2/test/__fixtures__/custom-site/siteConfig.js b/v2/test/__fixtures__/custom-site/siteConfig.js index 9c92b854cf..eebd265aa2 100644 --- a/v2/test/__fixtures__/custom-site/siteConfig.js +++ b/v2/test/__fixtures__/custom-site/siteConfig.js @@ -12,4 +12,10 @@ module.exports = { projectName: 'sakura', baseUrl: '/sakura/', url: 'https://docusaurus.io', + headerLinks: [ + {doc: 'foo/bar', label: 'Docs'}, + {page: 'hello/world', label: 'Hello'}, + ], + headerIcon: 'img/docusaurus.svg', + favicon: 'img/docusaurus.ico', }; diff --git a/v2/test/__fixtures__/custom-site/static/img/docusaurus.ico b/v2/test/__fixtures__/custom-site/static/img/docusaurus.ico new file mode 100644 index 0000000000..c01d54bcd3 Binary files /dev/null and b/v2/test/__fixtures__/custom-site/static/img/docusaurus.ico differ diff --git a/v2/website/static/img/docusaurus-logo.svg b/v2/test/__fixtures__/custom-site/static/img/docusaurus.svg similarity index 100% rename from v2/website/static/img/docusaurus-logo.svg rename to v2/test/__fixtures__/custom-site/static/img/docusaurus.svg diff --git a/v2/test/__fixtures__/simple-site/pages/hello/world.js b/v2/test/__fixtures__/simple-site/pages/hello/world.js index f69e92e5b9..420ee951f4 100644 --- a/v2/test/__fixtures__/simple-site/pages/hello/world.js +++ b/v2/test/__fixtures__/simple-site/pages/hello/world.js @@ -14,7 +14,6 @@ export default class World extends React.Component {
    World -
    Hello World
    diff --git a/v2/test/__fixtures__/simple-site/siteConfig.js b/v2/test/__fixtures__/simple-site/siteConfig.js index 1bd557fa87..1da4cb79a6 100644 --- a/v2/test/__fixtures__/simple-site/siteConfig.js +++ b/v2/test/__fixtures__/simple-site/siteConfig.js @@ -12,4 +12,10 @@ module.exports = { projectName: 'hello', baseUrl: '/', url: 'https://docusaurus.io', + headerLinks: [ + {doc: 'foo/bar', label: 'Docs'}, + {page: 'hello/world', label: 'Hello'}, + ], + headerIcon: 'img/docusaurus.svg', + favicon: 'img/docusaurus.ico', }; diff --git a/v2/test/__fixtures__/simple-site/static/css/basic.css b/v2/test/__fixtures__/simple-site/static/css/basic.css deleted file mode 100644 index 36a80ef795..0000000000 --- a/v2/test/__fixtures__/simple-site/static/css/basic.css +++ /dev/null @@ -1,382 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -html, -body { - margin: 0; - padding: 0; -} - -button { - margin: 0; - padding: 0; - border: 0; - background: none; - font-size: 100%; - vertical-align: baseline; - font-family: inherit; - font-weight: inherit; - color: inherit; - -webkit-appearance: none; - appearance: none; - -webkit-font-smoothing: antialiased; - -moz-font-smoothing: antialiased; - font-smoothing: antialiased; -} - -body { - font: 14px 'Helvetica Neue', Helvetica, Arial, sans-serif; - line-height: 1.4em; - background: #f5f5f5; - color: #4d4d4d; - min-width: 230px; - max-width: 550px; - margin: 0 auto; - -webkit-font-smoothing: antialiased; - -moz-font-smoothing: antialiased; - font-smoothing: antialiased; - font-weight: 300; -} - -button, -input[type='checkbox'] { - outline: none; -} - -.hidden { - display: none; -} - -.todoapp { - background: #fff; - margin: 130px 0 40px 0; - position: relative; - box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1); -} - -.todoapp input::-webkit-input-placeholder { - font-style: italic; - font-weight: 300; - color: #e6e6e6; -} - -.todoapp input::-moz-placeholder { - font-style: italic; - font-weight: 300; - color: #e6e6e6; -} - -.todoapp input::input-placeholder { - font-style: italic; - font-weight: 300; - color: #e6e6e6; -} - -.todoapp h1 { - position: absolute; - top: -155px; - width: 100%; - font-size: 100px; - font-weight: 100; - text-align: center; - color: rgba(175, 47, 47, 0.15); - -webkit-text-rendering: optimizeLegibility; - -moz-text-rendering: optimizeLegibility; - text-rendering: optimizeLegibility; -} - -.new-todo, -.edit { - position: relative; - margin: 0; - width: 100%; - font-size: 24px; - font-family: inherit; - font-weight: inherit; - line-height: 1.4em; - border: 0; - outline: none; - color: inherit; - padding: 6px; - border: 1px solid #999; - box-shadow: inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2); - box-sizing: border-box; - -webkit-font-smoothing: antialiased; - -moz-font-smoothing: antialiased; - font-smoothing: antialiased; -} - -.new-todo { - padding: 16px 16px 16px 60px; - border: none; - background: rgba(0, 0, 0, 0.003); - box-shadow: inset 0 -2px 1px rgba(0, 0, 0, 0.03); -} - -.main { - position: relative; - z-index: 2; - border-top: 1px solid #e6e6e6; -} - -label[for='toggle-all'] { - display: none; -} - -.toggle-all { - position: absolute; - top: -55px; - left: -12px; - width: 60px; - height: 34px; - text-align: center; - border: none; /* Mobile Safari */ -} - -.toggle-all:before { - content: '❯'; - font-size: 22px; - color: #e6e6e6; - padding: 10px 27px 10px 27px; -} - -.toggle-all:checked:before { - color: #737373; -} - -.todo-list { - margin: 0; - padding: 0; - list-style: none; -} - -.todo-list li { - position: relative; - font-size: 24px; - border-bottom: 1px solid #ededed; -} - -.todo-list li:last-child { - border-bottom: none; -} - -.todo-list li.editing { - border-bottom: none; - padding: 0; -} - -.todo-list li.editing .edit { - display: block; - width: 506px; - padding: 13px 17px 12px 17px; - margin: 0 0 0 43px; -} - -.todo-list li.editing .view { - display: none; -} - -.todo-list li .toggle { - text-align: center; - width: 40px; - /* auto, since non-WebKit browsers doesn't support input styling */ - height: auto; - position: absolute; - top: 0; - bottom: 0; - margin: auto 0; - border: none; /* Mobile Safari */ - -webkit-appearance: none; - appearance: none; -} - -.todo-list li .toggle:after { - content: url('data:image/svg+xml;utf8,'); -} - -.todo-list li .toggle:checked:after { - content: url('data:image/svg+xml;utf8,'); -} - -.todo-list li label { - white-space: pre-line; - word-break: break-all; - padding: 15px 60px 15px 15px; - margin-left: 45px; - display: block; - line-height: 1.2; - transition: color 0.4s; -} - -.todo-list li.completed label { - color: #d9d9d9; - text-decoration: line-through; -} - -.todo-list li .destroy { - display: none; - position: absolute; - top: 0; - right: 10px; - bottom: 0; - width: 40px; - height: 40px; - margin: auto 0; - font-size: 30px; - color: #cc9a9a; - margin-bottom: 11px; - transition: color 0.2s ease-out; -} - -.todo-list li .destroy:hover { - color: #af5b5e; -} - -.todo-list li .destroy:after { - content: '×'; -} - -.todo-list li:hover .destroy { - display: block; -} - -.todo-list li .edit { - display: none; -} - -.todo-list li.editing:last-child { - margin-bottom: -1px; -} - -.footer { - color: #777; - padding: 10px 15px; - height: 20px; - text-align: center; - border-top: 1px solid #e6e6e6; -} - -.footer:before { - content: ''; - position: absolute; - right: 0; - bottom: 0; - left: 0; - height: 50px; - overflow: hidden; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 8px 0 -3px #f6f6f6, - 0 9px 1px -3px rgba(0, 0, 0, 0.2), 0 16px 0 -6px #f6f6f6, - 0 17px 2px -6px rgba(0, 0, 0, 0.2); -} - -.todo-count { - float: left; - text-align: left; -} - -.todo-count strong { - font-weight: 300; -} - -.filters { - margin: 0; - padding: 0; - list-style: none; - position: absolute; - right: 0; - left: 0; -} - -.filters li { - display: inline; -} - -.filters li a { - color: inherit; - margin: 3px; - padding: 3px 7px; - text-decoration: none; - border: 1px solid transparent; - border-radius: 3px; -} - -.filters li a.selected, -.filters li a:hover { - border-color: rgba(175, 47, 47, 0.1); -} - -.filters li a.selected { - border-color: rgba(175, 47, 47, 0.2); -} - -.clear-completed, -html .clear-completed:active { - float: right; - position: relative; - line-height: 20px; - text-decoration: none; - cursor: pointer; - position: relative; -} - -.clear-completed:hover { - text-decoration: underline; -} - -.info { - margin: 65px auto 0; - color: #bfbfbf; - font-size: 10px; - text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); - text-align: center; -} - -.info p { - line-height: 1; -} - -.info a { - color: inherit; - text-decoration: none; - font-weight: 400; -} - -.info a:hover { - text-decoration: underline; -} - -/* - Hack to remove background from Mobile Safari. - Can't use it globally since it destroys checkboxes in Firefox -*/ -@media screen and (-webkit-min-device-pixel-ratio: 0) { - .toggle-all, - .todo-list li .toggle { - background: none; - } - - .todo-list li .toggle { - height: 40px; - } - - .toggle-all { - -webkit-transform: rotate(90deg); - transform: rotate(90deg); - -webkit-appearance: none; - appearance: none; - } -} - -@media (max-width: 430px) { - .footer { - height: 50px; - } - - .filters { - bottom: 10px; - } -} diff --git a/v2/test/__fixtures__/simple-site/static/img/docusaurus.ico b/v2/test/__fixtures__/simple-site/static/img/docusaurus.ico new file mode 100644 index 0000000000..c01d54bcd3 Binary files /dev/null and b/v2/test/__fixtures__/simple-site/static/img/docusaurus.ico differ diff --git a/v2/test/__fixtures__/simple-site/static/img/docusaurus.svg b/v2/test/__fixtures__/simple-site/static/img/docusaurus.svg new file mode 100644 index 0000000000..9db6d0d066 --- /dev/null +++ b/v2/test/__fixtures__/simple-site/static/img/docusaurus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/v2/test/__fixtures__/translated-site/pages/hello/world.js b/v2/test/__fixtures__/translated-site/pages/hello/world.js index f69e92e5b9..420ee951f4 100644 --- a/v2/test/__fixtures__/translated-site/pages/hello/world.js +++ b/v2/test/__fixtures__/translated-site/pages/hello/world.js @@ -14,7 +14,6 @@ export default class World extends React.Component {
    World -
    Hello World
    diff --git a/v2/test/__fixtures__/translated-site/siteConfig.js b/v2/test/__fixtures__/translated-site/siteConfig.js index 783328af3f..18e5fcb09e 100644 --- a/v2/test/__fixtures__/translated-site/siteConfig.js +++ b/v2/test/__fixtures__/translated-site/siteConfig.js @@ -13,4 +13,10 @@ module.exports = { baseUrl: '/', defaultLanguage: 'en', url: 'https://docusaurus.io', + headerLinks: [ + {doc: 'foo/bar', label: 'Docs'}, + {page: 'hello/world', label: 'Hello'}, + ], + headerIcon: 'img/docusaurus.svg', + favicon: 'img/docusaurus.ico', }; diff --git a/v2/test/__fixtures__/translated-site/static/css/basic.css b/v2/test/__fixtures__/translated-site/static/css/basic.css deleted file mode 100644 index 36a80ef795..0000000000 --- a/v2/test/__fixtures__/translated-site/static/css/basic.css +++ /dev/null @@ -1,382 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -html, -body { - margin: 0; - padding: 0; -} - -button { - margin: 0; - padding: 0; - border: 0; - background: none; - font-size: 100%; - vertical-align: baseline; - font-family: inherit; - font-weight: inherit; - color: inherit; - -webkit-appearance: none; - appearance: none; - -webkit-font-smoothing: antialiased; - -moz-font-smoothing: antialiased; - font-smoothing: antialiased; -} - -body { - font: 14px 'Helvetica Neue', Helvetica, Arial, sans-serif; - line-height: 1.4em; - background: #f5f5f5; - color: #4d4d4d; - min-width: 230px; - max-width: 550px; - margin: 0 auto; - -webkit-font-smoothing: antialiased; - -moz-font-smoothing: antialiased; - font-smoothing: antialiased; - font-weight: 300; -} - -button, -input[type='checkbox'] { - outline: none; -} - -.hidden { - display: none; -} - -.todoapp { - background: #fff; - margin: 130px 0 40px 0; - position: relative; - box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1); -} - -.todoapp input::-webkit-input-placeholder { - font-style: italic; - font-weight: 300; - color: #e6e6e6; -} - -.todoapp input::-moz-placeholder { - font-style: italic; - font-weight: 300; - color: #e6e6e6; -} - -.todoapp input::input-placeholder { - font-style: italic; - font-weight: 300; - color: #e6e6e6; -} - -.todoapp h1 { - position: absolute; - top: -155px; - width: 100%; - font-size: 100px; - font-weight: 100; - text-align: center; - color: rgba(175, 47, 47, 0.15); - -webkit-text-rendering: optimizeLegibility; - -moz-text-rendering: optimizeLegibility; - text-rendering: optimizeLegibility; -} - -.new-todo, -.edit { - position: relative; - margin: 0; - width: 100%; - font-size: 24px; - font-family: inherit; - font-weight: inherit; - line-height: 1.4em; - border: 0; - outline: none; - color: inherit; - padding: 6px; - border: 1px solid #999; - box-shadow: inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2); - box-sizing: border-box; - -webkit-font-smoothing: antialiased; - -moz-font-smoothing: antialiased; - font-smoothing: antialiased; -} - -.new-todo { - padding: 16px 16px 16px 60px; - border: none; - background: rgba(0, 0, 0, 0.003); - box-shadow: inset 0 -2px 1px rgba(0, 0, 0, 0.03); -} - -.main { - position: relative; - z-index: 2; - border-top: 1px solid #e6e6e6; -} - -label[for='toggle-all'] { - display: none; -} - -.toggle-all { - position: absolute; - top: -55px; - left: -12px; - width: 60px; - height: 34px; - text-align: center; - border: none; /* Mobile Safari */ -} - -.toggle-all:before { - content: '❯'; - font-size: 22px; - color: #e6e6e6; - padding: 10px 27px 10px 27px; -} - -.toggle-all:checked:before { - color: #737373; -} - -.todo-list { - margin: 0; - padding: 0; - list-style: none; -} - -.todo-list li { - position: relative; - font-size: 24px; - border-bottom: 1px solid #ededed; -} - -.todo-list li:last-child { - border-bottom: none; -} - -.todo-list li.editing { - border-bottom: none; - padding: 0; -} - -.todo-list li.editing .edit { - display: block; - width: 506px; - padding: 13px 17px 12px 17px; - margin: 0 0 0 43px; -} - -.todo-list li.editing .view { - display: none; -} - -.todo-list li .toggle { - text-align: center; - width: 40px; - /* auto, since non-WebKit browsers doesn't support input styling */ - height: auto; - position: absolute; - top: 0; - bottom: 0; - margin: auto 0; - border: none; /* Mobile Safari */ - -webkit-appearance: none; - appearance: none; -} - -.todo-list li .toggle:after { - content: url('data:image/svg+xml;utf8,'); -} - -.todo-list li .toggle:checked:after { - content: url('data:image/svg+xml;utf8,'); -} - -.todo-list li label { - white-space: pre-line; - word-break: break-all; - padding: 15px 60px 15px 15px; - margin-left: 45px; - display: block; - line-height: 1.2; - transition: color 0.4s; -} - -.todo-list li.completed label { - color: #d9d9d9; - text-decoration: line-through; -} - -.todo-list li .destroy { - display: none; - position: absolute; - top: 0; - right: 10px; - bottom: 0; - width: 40px; - height: 40px; - margin: auto 0; - font-size: 30px; - color: #cc9a9a; - margin-bottom: 11px; - transition: color 0.2s ease-out; -} - -.todo-list li .destroy:hover { - color: #af5b5e; -} - -.todo-list li .destroy:after { - content: '×'; -} - -.todo-list li:hover .destroy { - display: block; -} - -.todo-list li .edit { - display: none; -} - -.todo-list li.editing:last-child { - margin-bottom: -1px; -} - -.footer { - color: #777; - padding: 10px 15px; - height: 20px; - text-align: center; - border-top: 1px solid #e6e6e6; -} - -.footer:before { - content: ''; - position: absolute; - right: 0; - bottom: 0; - left: 0; - height: 50px; - overflow: hidden; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 8px 0 -3px #f6f6f6, - 0 9px 1px -3px rgba(0, 0, 0, 0.2), 0 16px 0 -6px #f6f6f6, - 0 17px 2px -6px rgba(0, 0, 0, 0.2); -} - -.todo-count { - float: left; - text-align: left; -} - -.todo-count strong { - font-weight: 300; -} - -.filters { - margin: 0; - padding: 0; - list-style: none; - position: absolute; - right: 0; - left: 0; -} - -.filters li { - display: inline; -} - -.filters li a { - color: inherit; - margin: 3px; - padding: 3px 7px; - text-decoration: none; - border: 1px solid transparent; - border-radius: 3px; -} - -.filters li a.selected, -.filters li a:hover { - border-color: rgba(175, 47, 47, 0.1); -} - -.filters li a.selected { - border-color: rgba(175, 47, 47, 0.2); -} - -.clear-completed, -html .clear-completed:active { - float: right; - position: relative; - line-height: 20px; - text-decoration: none; - cursor: pointer; - position: relative; -} - -.clear-completed:hover { - text-decoration: underline; -} - -.info { - margin: 65px auto 0; - color: #bfbfbf; - font-size: 10px; - text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); - text-align: center; -} - -.info p { - line-height: 1; -} - -.info a { - color: inherit; - text-decoration: none; - font-weight: 400; -} - -.info a:hover { - text-decoration: underline; -} - -/* - Hack to remove background from Mobile Safari. - Can't use it globally since it destroys checkboxes in Firefox -*/ -@media screen and (-webkit-min-device-pixel-ratio: 0) { - .toggle-all, - .todo-list li .toggle { - background: none; - } - - .todo-list li .toggle { - height: 40px; - } - - .toggle-all { - -webkit-transform: rotate(90deg); - transform: rotate(90deg); - -webkit-appearance: none; - appearance: none; - } -} - -@media (max-width: 430px) { - .footer { - height: 50px; - } - - .filters { - bottom: 10px; - } -} diff --git a/v2/test/__fixtures__/translated-site/static/img/docusaurus.ico b/v2/test/__fixtures__/translated-site/static/img/docusaurus.ico new file mode 100644 index 0000000000..c01d54bcd3 Binary files /dev/null and b/v2/test/__fixtures__/translated-site/static/img/docusaurus.ico differ diff --git a/v2/test/__fixtures__/translated-site/static/img/docusaurus.svg b/v2/test/__fixtures__/translated-site/static/img/docusaurus.svg new file mode 100644 index 0000000000..9db6d0d066 --- /dev/null +++ b/v2/test/__fixtures__/translated-site/static/img/docusaurus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/v2/test/load/__fixtures__/translated-site/siteConfig.js b/v2/test/__fixtures__/translated-site/static/img/siteConfig.js similarity index 68% rename from v2/test/load/__fixtures__/translated-site/siteConfig.js rename to v2/test/__fixtures__/translated-site/static/img/siteConfig.js index 783328af3f..18e5fcb09e 100644 --- a/v2/test/load/__fixtures__/translated-site/siteConfig.js +++ b/v2/test/__fixtures__/translated-site/static/img/siteConfig.js @@ -13,4 +13,10 @@ module.exports = { baseUrl: '/', defaultLanguage: 'en', url: 'https://docusaurus.io', + headerLinks: [ + {doc: 'foo/bar', label: 'Docs'}, + {page: 'hello/world', label: 'Hello'}, + ], + headerIcon: 'img/docusaurus.svg', + favicon: 'img/docusaurus.ico', }; diff --git a/v2/test/__fixtures__/transversioned-site/pages/hello/world.js b/v2/test/__fixtures__/transversioned-site/pages/hello/world.js index f69e92e5b9..420ee951f4 100644 --- a/v2/test/__fixtures__/transversioned-site/pages/hello/world.js +++ b/v2/test/__fixtures__/transversioned-site/pages/hello/world.js @@ -14,7 +14,6 @@ export default class World extends React.Component {
    World -
    Hello World
    diff --git a/v2/test/__fixtures__/transversioned-site/siteConfig.js b/v2/test/__fixtures__/transversioned-site/siteConfig.js index 783328af3f..18e5fcb09e 100644 --- a/v2/test/__fixtures__/transversioned-site/siteConfig.js +++ b/v2/test/__fixtures__/transversioned-site/siteConfig.js @@ -13,4 +13,10 @@ module.exports = { baseUrl: '/', defaultLanguage: 'en', url: 'https://docusaurus.io', + headerLinks: [ + {doc: 'foo/bar', label: 'Docs'}, + {page: 'hello/world', label: 'Hello'}, + ], + headerIcon: 'img/docusaurus.svg', + favicon: 'img/docusaurus.ico', }; diff --git a/v2/test/__fixtures__/transversioned-site/static/css/basic.css b/v2/test/__fixtures__/transversioned-site/static/css/basic.css deleted file mode 100644 index 36a80ef795..0000000000 --- a/v2/test/__fixtures__/transversioned-site/static/css/basic.css +++ /dev/null @@ -1,382 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -html, -body { - margin: 0; - padding: 0; -} - -button { - margin: 0; - padding: 0; - border: 0; - background: none; - font-size: 100%; - vertical-align: baseline; - font-family: inherit; - font-weight: inherit; - color: inherit; - -webkit-appearance: none; - appearance: none; - -webkit-font-smoothing: antialiased; - -moz-font-smoothing: antialiased; - font-smoothing: antialiased; -} - -body { - font: 14px 'Helvetica Neue', Helvetica, Arial, sans-serif; - line-height: 1.4em; - background: #f5f5f5; - color: #4d4d4d; - min-width: 230px; - max-width: 550px; - margin: 0 auto; - -webkit-font-smoothing: antialiased; - -moz-font-smoothing: antialiased; - font-smoothing: antialiased; - font-weight: 300; -} - -button, -input[type='checkbox'] { - outline: none; -} - -.hidden { - display: none; -} - -.todoapp { - background: #fff; - margin: 130px 0 40px 0; - position: relative; - box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1); -} - -.todoapp input::-webkit-input-placeholder { - font-style: italic; - font-weight: 300; - color: #e6e6e6; -} - -.todoapp input::-moz-placeholder { - font-style: italic; - font-weight: 300; - color: #e6e6e6; -} - -.todoapp input::input-placeholder { - font-style: italic; - font-weight: 300; - color: #e6e6e6; -} - -.todoapp h1 { - position: absolute; - top: -155px; - width: 100%; - font-size: 100px; - font-weight: 100; - text-align: center; - color: rgba(175, 47, 47, 0.15); - -webkit-text-rendering: optimizeLegibility; - -moz-text-rendering: optimizeLegibility; - text-rendering: optimizeLegibility; -} - -.new-todo, -.edit { - position: relative; - margin: 0; - width: 100%; - font-size: 24px; - font-family: inherit; - font-weight: inherit; - line-height: 1.4em; - border: 0; - outline: none; - color: inherit; - padding: 6px; - border: 1px solid #999; - box-shadow: inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2); - box-sizing: border-box; - -webkit-font-smoothing: antialiased; - -moz-font-smoothing: antialiased; - font-smoothing: antialiased; -} - -.new-todo { - padding: 16px 16px 16px 60px; - border: none; - background: rgba(0, 0, 0, 0.003); - box-shadow: inset 0 -2px 1px rgba(0, 0, 0, 0.03); -} - -.main { - position: relative; - z-index: 2; - border-top: 1px solid #e6e6e6; -} - -label[for='toggle-all'] { - display: none; -} - -.toggle-all { - position: absolute; - top: -55px; - left: -12px; - width: 60px; - height: 34px; - text-align: center; - border: none; /* Mobile Safari */ -} - -.toggle-all:before { - content: '❯'; - font-size: 22px; - color: #e6e6e6; - padding: 10px 27px 10px 27px; -} - -.toggle-all:checked:before { - color: #737373; -} - -.todo-list { - margin: 0; - padding: 0; - list-style: none; -} - -.todo-list li { - position: relative; - font-size: 24px; - border-bottom: 1px solid #ededed; -} - -.todo-list li:last-child { - border-bottom: none; -} - -.todo-list li.editing { - border-bottom: none; - padding: 0; -} - -.todo-list li.editing .edit { - display: block; - width: 506px; - padding: 13px 17px 12px 17px; - margin: 0 0 0 43px; -} - -.todo-list li.editing .view { - display: none; -} - -.todo-list li .toggle { - text-align: center; - width: 40px; - /* auto, since non-WebKit browsers doesn't support input styling */ - height: auto; - position: absolute; - top: 0; - bottom: 0; - margin: auto 0; - border: none; /* Mobile Safari */ - -webkit-appearance: none; - appearance: none; -} - -.todo-list li .toggle:after { - content: url('data:image/svg+xml;utf8,'); -} - -.todo-list li .toggle:checked:after { - content: url('data:image/svg+xml;utf8,'); -} - -.todo-list li label { - white-space: pre-line; - word-break: break-all; - padding: 15px 60px 15px 15px; - margin-left: 45px; - display: block; - line-height: 1.2; - transition: color 0.4s; -} - -.todo-list li.completed label { - color: #d9d9d9; - text-decoration: line-through; -} - -.todo-list li .destroy { - display: none; - position: absolute; - top: 0; - right: 10px; - bottom: 0; - width: 40px; - height: 40px; - margin: auto 0; - font-size: 30px; - color: #cc9a9a; - margin-bottom: 11px; - transition: color 0.2s ease-out; -} - -.todo-list li .destroy:hover { - color: #af5b5e; -} - -.todo-list li .destroy:after { - content: '×'; -} - -.todo-list li:hover .destroy { - display: block; -} - -.todo-list li .edit { - display: none; -} - -.todo-list li.editing:last-child { - margin-bottom: -1px; -} - -.footer { - color: #777; - padding: 10px 15px; - height: 20px; - text-align: center; - border-top: 1px solid #e6e6e6; -} - -.footer:before { - content: ''; - position: absolute; - right: 0; - bottom: 0; - left: 0; - height: 50px; - overflow: hidden; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 8px 0 -3px #f6f6f6, - 0 9px 1px -3px rgba(0, 0, 0, 0.2), 0 16px 0 -6px #f6f6f6, - 0 17px 2px -6px rgba(0, 0, 0, 0.2); -} - -.todo-count { - float: left; - text-align: left; -} - -.todo-count strong { - font-weight: 300; -} - -.filters { - margin: 0; - padding: 0; - list-style: none; - position: absolute; - right: 0; - left: 0; -} - -.filters li { - display: inline; -} - -.filters li a { - color: inherit; - margin: 3px; - padding: 3px 7px; - text-decoration: none; - border: 1px solid transparent; - border-radius: 3px; -} - -.filters li a.selected, -.filters li a:hover { - border-color: rgba(175, 47, 47, 0.1); -} - -.filters li a.selected { - border-color: rgba(175, 47, 47, 0.2); -} - -.clear-completed, -html .clear-completed:active { - float: right; - position: relative; - line-height: 20px; - text-decoration: none; - cursor: pointer; - position: relative; -} - -.clear-completed:hover { - text-decoration: underline; -} - -.info { - margin: 65px auto 0; - color: #bfbfbf; - font-size: 10px; - text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); - text-align: center; -} - -.info p { - line-height: 1; -} - -.info a { - color: inherit; - text-decoration: none; - font-weight: 400; -} - -.info a:hover { - text-decoration: underline; -} - -/* - Hack to remove background from Mobile Safari. - Can't use it globally since it destroys checkboxes in Firefox -*/ -@media screen and (-webkit-min-device-pixel-ratio: 0) { - .toggle-all, - .todo-list li .toggle { - background: none; - } - - .todo-list li .toggle { - height: 40px; - } - - .toggle-all { - -webkit-transform: rotate(90deg); - transform: rotate(90deg); - -webkit-appearance: none; - appearance: none; - } -} - -@media (max-width: 430px) { - .footer { - height: 50px; - } - - .filters { - bottom: 10px; - } -} diff --git a/v2/test/__fixtures__/transversioned-site/static/img/docusaurus.ico b/v2/test/__fixtures__/transversioned-site/static/img/docusaurus.ico new file mode 100644 index 0000000000..c01d54bcd3 Binary files /dev/null and b/v2/test/__fixtures__/transversioned-site/static/img/docusaurus.ico differ diff --git a/v2/test/__fixtures__/transversioned-site/static/img/docusaurus.svg b/v2/test/__fixtures__/transversioned-site/static/img/docusaurus.svg new file mode 100644 index 0000000000..9db6d0d066 --- /dev/null +++ b/v2/test/__fixtures__/transversioned-site/static/img/docusaurus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/v2/test/load/__fixtures__/transversioned-site/siteConfig.js b/v2/test/__fixtures__/transversioned-site/static/img/siteConfig.js similarity index 68% rename from v2/test/load/__fixtures__/transversioned-site/siteConfig.js rename to v2/test/__fixtures__/transversioned-site/static/img/siteConfig.js index 783328af3f..18e5fcb09e 100644 --- a/v2/test/load/__fixtures__/transversioned-site/siteConfig.js +++ b/v2/test/__fixtures__/transversioned-site/static/img/siteConfig.js @@ -13,4 +13,10 @@ module.exports = { baseUrl: '/', defaultLanguage: 'en', url: 'https://docusaurus.io', + headerLinks: [ + {doc: 'foo/bar', label: 'Docs'}, + {page: 'hello/world', label: 'Hello'}, + ], + headerIcon: 'img/docusaurus.svg', + favicon: 'img/docusaurus.ico', }; diff --git a/v2/test/__fixtures__/versioned-site/pages/hello/world.js b/v2/test/__fixtures__/versioned-site/pages/hello/world.js index f69e92e5b9..420ee951f4 100644 --- a/v2/test/__fixtures__/versioned-site/pages/hello/world.js +++ b/v2/test/__fixtures__/versioned-site/pages/hello/world.js @@ -14,7 +14,6 @@ export default class World extends React.Component {
    World -
    Hello World
    diff --git a/v2/test/__fixtures__/versioned-site/siteConfig.js b/v2/test/__fixtures__/versioned-site/siteConfig.js index 1bd557fa87..1da4cb79a6 100644 --- a/v2/test/__fixtures__/versioned-site/siteConfig.js +++ b/v2/test/__fixtures__/versioned-site/siteConfig.js @@ -12,4 +12,10 @@ module.exports = { projectName: 'hello', baseUrl: '/', url: 'https://docusaurus.io', + headerLinks: [ + {doc: 'foo/bar', label: 'Docs'}, + {page: 'hello/world', label: 'Hello'}, + ], + headerIcon: 'img/docusaurus.svg', + favicon: 'img/docusaurus.ico', }; diff --git a/v2/test/__fixtures__/versioned-site/static/css/basic.css b/v2/test/__fixtures__/versioned-site/static/css/basic.css deleted file mode 100644 index 36a80ef795..0000000000 --- a/v2/test/__fixtures__/versioned-site/static/css/basic.css +++ /dev/null @@ -1,382 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -html, -body { - margin: 0; - padding: 0; -} - -button { - margin: 0; - padding: 0; - border: 0; - background: none; - font-size: 100%; - vertical-align: baseline; - font-family: inherit; - font-weight: inherit; - color: inherit; - -webkit-appearance: none; - appearance: none; - -webkit-font-smoothing: antialiased; - -moz-font-smoothing: antialiased; - font-smoothing: antialiased; -} - -body { - font: 14px 'Helvetica Neue', Helvetica, Arial, sans-serif; - line-height: 1.4em; - background: #f5f5f5; - color: #4d4d4d; - min-width: 230px; - max-width: 550px; - margin: 0 auto; - -webkit-font-smoothing: antialiased; - -moz-font-smoothing: antialiased; - font-smoothing: antialiased; - font-weight: 300; -} - -button, -input[type='checkbox'] { - outline: none; -} - -.hidden { - display: none; -} - -.todoapp { - background: #fff; - margin: 130px 0 40px 0; - position: relative; - box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1); -} - -.todoapp input::-webkit-input-placeholder { - font-style: italic; - font-weight: 300; - color: #e6e6e6; -} - -.todoapp input::-moz-placeholder { - font-style: italic; - font-weight: 300; - color: #e6e6e6; -} - -.todoapp input::input-placeholder { - font-style: italic; - font-weight: 300; - color: #e6e6e6; -} - -.todoapp h1 { - position: absolute; - top: -155px; - width: 100%; - font-size: 100px; - font-weight: 100; - text-align: center; - color: rgba(175, 47, 47, 0.15); - -webkit-text-rendering: optimizeLegibility; - -moz-text-rendering: optimizeLegibility; - text-rendering: optimizeLegibility; -} - -.new-todo, -.edit { - position: relative; - margin: 0; - width: 100%; - font-size: 24px; - font-family: inherit; - font-weight: inherit; - line-height: 1.4em; - border: 0; - outline: none; - color: inherit; - padding: 6px; - border: 1px solid #999; - box-shadow: inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2); - box-sizing: border-box; - -webkit-font-smoothing: antialiased; - -moz-font-smoothing: antialiased; - font-smoothing: antialiased; -} - -.new-todo { - padding: 16px 16px 16px 60px; - border: none; - background: rgba(0, 0, 0, 0.003); - box-shadow: inset 0 -2px 1px rgba(0, 0, 0, 0.03); -} - -.main { - position: relative; - z-index: 2; - border-top: 1px solid #e6e6e6; -} - -label[for='toggle-all'] { - display: none; -} - -.toggle-all { - position: absolute; - top: -55px; - left: -12px; - width: 60px; - height: 34px; - text-align: center; - border: none; /* Mobile Safari */ -} - -.toggle-all:before { - content: '❯'; - font-size: 22px; - color: #e6e6e6; - padding: 10px 27px 10px 27px; -} - -.toggle-all:checked:before { - color: #737373; -} - -.todo-list { - margin: 0; - padding: 0; - list-style: none; -} - -.todo-list li { - position: relative; - font-size: 24px; - border-bottom: 1px solid #ededed; -} - -.todo-list li:last-child { - border-bottom: none; -} - -.todo-list li.editing { - border-bottom: none; - padding: 0; -} - -.todo-list li.editing .edit { - display: block; - width: 506px; - padding: 13px 17px 12px 17px; - margin: 0 0 0 43px; -} - -.todo-list li.editing .view { - display: none; -} - -.todo-list li .toggle { - text-align: center; - width: 40px; - /* auto, since non-WebKit browsers doesn't support input styling */ - height: auto; - position: absolute; - top: 0; - bottom: 0; - margin: auto 0; - border: none; /* Mobile Safari */ - -webkit-appearance: none; - appearance: none; -} - -.todo-list li .toggle:after { - content: url('data:image/svg+xml;utf8,'); -} - -.todo-list li .toggle:checked:after { - content: url('data:image/svg+xml;utf8,'); -} - -.todo-list li label { - white-space: pre-line; - word-break: break-all; - padding: 15px 60px 15px 15px; - margin-left: 45px; - display: block; - line-height: 1.2; - transition: color 0.4s; -} - -.todo-list li.completed label { - color: #d9d9d9; - text-decoration: line-through; -} - -.todo-list li .destroy { - display: none; - position: absolute; - top: 0; - right: 10px; - bottom: 0; - width: 40px; - height: 40px; - margin: auto 0; - font-size: 30px; - color: #cc9a9a; - margin-bottom: 11px; - transition: color 0.2s ease-out; -} - -.todo-list li .destroy:hover { - color: #af5b5e; -} - -.todo-list li .destroy:after { - content: '×'; -} - -.todo-list li:hover .destroy { - display: block; -} - -.todo-list li .edit { - display: none; -} - -.todo-list li.editing:last-child { - margin-bottom: -1px; -} - -.footer { - color: #777; - padding: 10px 15px; - height: 20px; - text-align: center; - border-top: 1px solid #e6e6e6; -} - -.footer:before { - content: ''; - position: absolute; - right: 0; - bottom: 0; - left: 0; - height: 50px; - overflow: hidden; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 8px 0 -3px #f6f6f6, - 0 9px 1px -3px rgba(0, 0, 0, 0.2), 0 16px 0 -6px #f6f6f6, - 0 17px 2px -6px rgba(0, 0, 0, 0.2); -} - -.todo-count { - float: left; - text-align: left; -} - -.todo-count strong { - font-weight: 300; -} - -.filters { - margin: 0; - padding: 0; - list-style: none; - position: absolute; - right: 0; - left: 0; -} - -.filters li { - display: inline; -} - -.filters li a { - color: inherit; - margin: 3px; - padding: 3px 7px; - text-decoration: none; - border: 1px solid transparent; - border-radius: 3px; -} - -.filters li a.selected, -.filters li a:hover { - border-color: rgba(175, 47, 47, 0.1); -} - -.filters li a.selected { - border-color: rgba(175, 47, 47, 0.2); -} - -.clear-completed, -html .clear-completed:active { - float: right; - position: relative; - line-height: 20px; - text-decoration: none; - cursor: pointer; - position: relative; -} - -.clear-completed:hover { - text-decoration: underline; -} - -.info { - margin: 65px auto 0; - color: #bfbfbf; - font-size: 10px; - text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); - text-align: center; -} - -.info p { - line-height: 1; -} - -.info a { - color: inherit; - text-decoration: none; - font-weight: 400; -} - -.info a:hover { - text-decoration: underline; -} - -/* - Hack to remove background from Mobile Safari. - Can't use it globally since it destroys checkboxes in Firefox -*/ -@media screen and (-webkit-min-device-pixel-ratio: 0) { - .toggle-all, - .todo-list li .toggle { - background: none; - } - - .todo-list li .toggle { - height: 40px; - } - - .toggle-all { - -webkit-transform: rotate(90deg); - transform: rotate(90deg); - -webkit-appearance: none; - appearance: none; - } -} - -@media (max-width: 430px) { - .footer { - height: 50px; - } - - .filters { - bottom: 10px; - } -} diff --git a/v2/test/__fixtures__/versioned-site/static/img/docusaurus.ico b/v2/test/__fixtures__/versioned-site/static/img/docusaurus.ico new file mode 100644 index 0000000000..c01d54bcd3 Binary files /dev/null and b/v2/test/__fixtures__/versioned-site/static/img/docusaurus.ico differ diff --git a/v2/test/__fixtures__/versioned-site/static/img/docusaurus.svg b/v2/test/__fixtures__/versioned-site/static/img/docusaurus.svg new file mode 100644 index 0000000000..9db6d0d066 --- /dev/null +++ b/v2/test/__fixtures__/versioned-site/static/img/docusaurus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/v2/test/load/__fixtures__/simple-site/sidebars.json b/v2/test/load/__fixtures__/simple-site/sidebars.json deleted file mode 100644 index 49667e47b5..0000000000 --- a/v2/test/load/__fixtures__/simple-site/sidebars.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "docs": { - "Getting Started": [ - "installation" - ], - "Guides": [ - "blog" - ] - } -} diff --git a/v2/test/load/__fixtures__/simple-site/siteConfig.js b/v2/test/load/__fixtures__/simple-site/siteConfig.js deleted file mode 100644 index 1bd557fa87..0000000000 --- a/v2/test/load/__fixtures__/simple-site/siteConfig.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -module.exports = { - title: 'Hello', - tagline: 'Hello World', - organizationName: 'endiliey', - projectName: 'hello', - baseUrl: '/', - url: 'https://docusaurus.io', -}; diff --git a/v2/test/load/__fixtures__/translated-site/languages.js b/v2/test/load/__fixtures__/translated-site/languages.js deleted file mode 100644 index 2bb754b1a6..0000000000 --- a/v2/test/load/__fixtures__/translated-site/languages.js +++ /dev/null @@ -1,185 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -const languages = [ - { - enabled: true, - name: 'English', - tag: 'en', - }, - { - enabled: false, - name: '日本語', - tag: 'ja', - }, - { - enabled: false, - name: 'العربية', - tag: 'ar', - }, - { - enabled: false, - name: 'Bosanski', - tag: 'bs-BA', - }, - { - enabled: false, - name: 'Català', - tag: 'ca', - }, - { - enabled: false, - name: 'Čeština', - tag: 'cs', - }, - { - enabled: false, - name: 'Dansk', - tag: 'da', - }, - { - enabled: false, - name: 'Deutsch', - tag: 'de', - }, - { - enabled: false, - name: 'Ελληνικά', - tag: 'el', - }, - { - enabled: true, - name: 'Español', - tag: 'es-ES', - }, - { - enabled: false, - name: 'فارسی', - tag: 'fa-IR', - }, - { - enabled: false, - name: 'Suomi', - tag: 'fi', - }, - { - enabled: false, - name: 'Français', - tag: 'fr', - }, - { - enabled: false, - name: 'עִברִית', - tag: 'he', - }, - { - enabled: false, - name: 'Magyar', - tag: 'hu', - }, - { - enabled: false, - name: 'Bahasa Indonesia', - tag: 'id-ID', - }, - { - enabled: false, - name: 'Italiano', - tag: 'it', - }, - { - enabled: false, - name: 'Afrikaans', - tag: 'af', - }, - { - enabled: false, - name: '한국어', - tag: 'ko', - }, - { - enabled: false, - name: 'मराठी', - tag: 'mr-IN', - }, - { - enabled: false, - name: 'Nederlands', - tag: 'nl', - }, - { - enabled: false, - name: 'Norsk', - tag: 'no-NO', - }, - { - enabled: false, - name: 'Polskie', - tag: 'pl', - }, - { - enabled: false, - name: 'Português', - tag: 'pt-PT', - }, - { - enabled: false, - name: 'Português (Brasil)', - tag: 'pt-BR', - }, - { - enabled: true, - name: 'Română', - tag: 'ro', - }, - { - enabled: false, - name: 'Русский', - tag: 'ru', - }, - { - enabled: false, - name: 'Slovenský', - tag: 'sk-SK', - }, - { - enabled: false, - name: 'Српски језик (Ћирилица)', - tag: 'sr', - }, - { - enabled: false, - name: 'Svenska', - tag: 'sv-SE', - }, - { - enabled: true, - name: 'Türkçe', - tag: 'tr', - }, - { - enabled: false, - name: 'Українська', - tag: 'uk', - }, - { - enabled: false, - name: 'Tiếng Việt', - tag: 'vi', - }, - { - enabled: true, - name: '简体中文', - tag: 'zh-CN', - }, - { - enabled: false, - name: '繁體中文', - tag: 'zh-TW', - }, -]; -module.exports = languages; diff --git a/v2/test/load/__fixtures__/transversioned-site/languages.js b/v2/test/load/__fixtures__/transversioned-site/languages.js deleted file mode 100644 index 2bb754b1a6..0000000000 --- a/v2/test/load/__fixtures__/transversioned-site/languages.js +++ /dev/null @@ -1,185 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -const languages = [ - { - enabled: true, - name: 'English', - tag: 'en', - }, - { - enabled: false, - name: '日本語', - tag: 'ja', - }, - { - enabled: false, - name: 'العربية', - tag: 'ar', - }, - { - enabled: false, - name: 'Bosanski', - tag: 'bs-BA', - }, - { - enabled: false, - name: 'Català', - tag: 'ca', - }, - { - enabled: false, - name: 'Čeština', - tag: 'cs', - }, - { - enabled: false, - name: 'Dansk', - tag: 'da', - }, - { - enabled: false, - name: 'Deutsch', - tag: 'de', - }, - { - enabled: false, - name: 'Ελληνικά', - tag: 'el', - }, - { - enabled: true, - name: 'Español', - tag: 'es-ES', - }, - { - enabled: false, - name: 'فارسی', - tag: 'fa-IR', - }, - { - enabled: false, - name: 'Suomi', - tag: 'fi', - }, - { - enabled: false, - name: 'Français', - tag: 'fr', - }, - { - enabled: false, - name: 'עִברִית', - tag: 'he', - }, - { - enabled: false, - name: 'Magyar', - tag: 'hu', - }, - { - enabled: false, - name: 'Bahasa Indonesia', - tag: 'id-ID', - }, - { - enabled: false, - name: 'Italiano', - tag: 'it', - }, - { - enabled: false, - name: 'Afrikaans', - tag: 'af', - }, - { - enabled: false, - name: '한국어', - tag: 'ko', - }, - { - enabled: false, - name: 'मराठी', - tag: 'mr-IN', - }, - { - enabled: false, - name: 'Nederlands', - tag: 'nl', - }, - { - enabled: false, - name: 'Norsk', - tag: 'no-NO', - }, - { - enabled: false, - name: 'Polskie', - tag: 'pl', - }, - { - enabled: false, - name: 'Português', - tag: 'pt-PT', - }, - { - enabled: false, - name: 'Português (Brasil)', - tag: 'pt-BR', - }, - { - enabled: true, - name: 'Română', - tag: 'ro', - }, - { - enabled: false, - name: 'Русский', - tag: 'ru', - }, - { - enabled: false, - name: 'Slovenský', - tag: 'sk-SK', - }, - { - enabled: false, - name: 'Српски језик (Ћирилица)', - tag: 'sr', - }, - { - enabled: false, - name: 'Svenska', - tag: 'sv-SE', - }, - { - enabled: true, - name: 'Türkçe', - tag: 'tr', - }, - { - enabled: false, - name: 'Українська', - tag: 'uk', - }, - { - enabled: false, - name: 'Tiếng Việt', - tag: 'vi', - }, - { - enabled: true, - name: '简体中文', - tag: 'zh-CN', - }, - { - enabled: false, - name: '繁體中文', - tag: 'zh-TW', - }, -]; -module.exports = languages; diff --git a/v2/test/load/__fixtures__/transversioned-site/sidebars.json b/v2/test/load/__fixtures__/transversioned-site/sidebars.json deleted file mode 100644 index 49667e47b5..0000000000 --- a/v2/test/load/__fixtures__/transversioned-site/sidebars.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "docs": { - "Getting Started": [ - "installation" - ], - "Guides": [ - "blog" - ] - } -} diff --git a/v2/test/load/__fixtures__/transversioned-site/versioned_sidebars/version-1.0.0-sidebars.json b/v2/test/load/__fixtures__/transversioned-site/versioned_sidebars/version-1.0.0-sidebars.json deleted file mode 100644 index 7769c0cf64..0000000000 --- a/v2/test/load/__fixtures__/transversioned-site/versioned_sidebars/version-1.0.0-sidebars.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "version-1.0.0-docs": { - "Getting Started": [ - "version-1.0.0-installation" - ], - "Guides": [ - "version-1.0.0-blog" - ] - } -} diff --git a/v2/test/load/__fixtures__/transversioned-site/versioned_sidebars/version-1.0.1-sidebars.json b/v2/test/load/__fixtures__/transversioned-site/versioned_sidebars/version-1.0.1-sidebars.json deleted file mode 100644 index 386bfae67e..0000000000 --- a/v2/test/load/__fixtures__/transversioned-site/versioned_sidebars/version-1.0.1-sidebars.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "version-1.0.1-docs": { - "Getting Started": [ - "version-1.0.1-installation" - ], - "Guides": [ - "version-1.0.1-blog" - ] - } -} diff --git a/v2/test/load/__fixtures__/transversioned-site/versions.json b/v2/test/load/__fixtures__/transversioned-site/versions.json deleted file mode 100644 index 542b187dfe..0000000000 --- a/v2/test/load/__fixtures__/transversioned-site/versions.json +++ /dev/null @@ -1,4 +0,0 @@ -[ - "1.0.1", - "1.0.0" -] diff --git a/v2/test/load/__fixtures__/versioned-site/sidebars.json b/v2/test/load/__fixtures__/versioned-site/sidebars.json deleted file mode 100644 index 49667e47b5..0000000000 --- a/v2/test/load/__fixtures__/versioned-site/sidebars.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "docs": { - "Getting Started": [ - "installation" - ], - "Guides": [ - "blog" - ] - } -} diff --git a/v2/test/load/__fixtures__/versioned-site/siteConfig.js b/v2/test/load/__fixtures__/versioned-site/siteConfig.js deleted file mode 100644 index 1bd557fa87..0000000000 --- a/v2/test/load/__fixtures__/versioned-site/siteConfig.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -module.exports = { - title: 'Hello', - tagline: 'Hello World', - organizationName: 'endiliey', - projectName: 'hello', - baseUrl: '/', - url: 'https://docusaurus.io', -}; diff --git a/v2/test/load/__fixtures__/versioned-site/versioned_sidebars/version-1.0.0-sidebars.json b/v2/test/load/__fixtures__/versioned-site/versioned_sidebars/version-1.0.0-sidebars.json deleted file mode 100644 index 7769c0cf64..0000000000 --- a/v2/test/load/__fixtures__/versioned-site/versioned_sidebars/version-1.0.0-sidebars.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "version-1.0.0-docs": { - "Getting Started": [ - "version-1.0.0-installation" - ], - "Guides": [ - "version-1.0.0-blog" - ] - } -} diff --git a/v2/test/load/__fixtures__/versioned-site/versioned_sidebars/version-1.0.1-sidebars.json b/v2/test/load/__fixtures__/versioned-site/versioned_sidebars/version-1.0.1-sidebars.json deleted file mode 100644 index 386bfae67e..0000000000 --- a/v2/test/load/__fixtures__/versioned-site/versioned_sidebars/version-1.0.1-sidebars.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "version-1.0.1-docs": { - "Getting Started": [ - "version-1.0.1-installation" - ], - "Guides": [ - "version-1.0.1-blog" - ] - } -} diff --git a/v2/test/load/__fixtures__/versioned-site/versions.json b/v2/test/load/__fixtures__/versioned-site/versions.json deleted file mode 100644 index 542b187dfe..0000000000 --- a/v2/test/load/__fixtures__/versioned-site/versions.json +++ /dev/null @@ -1,4 +0,0 @@ -[ - "1.0.1", - "1.0.0" -] diff --git a/v2/test/load/__snapshots__/env.test.js.snap b/v2/test/load/__snapshots__/env.test.js.snap index cdc1ab6207..df171066da 100644 --- a/v2/test/load/__snapshots__/env.test.js.snap +++ b/v2/test/load/__snapshots__/env.test.js.snap @@ -33,23 +33,8 @@ Object { }, Object { "enabled": true, - "name": "Español", - "tag": "es-ES", - }, - Object { - "enabled": true, - "name": "Română", - "tag": "ro", - }, - Object { - "enabled": true, - "name": "Türkçe", - "tag": "tr", - }, - Object { - "enabled": true, - "name": "简体中文", - "tag": "zh-CN", + "name": "한국어", + "tag": "ko", }, ], }, @@ -79,23 +64,8 @@ Object { }, Object { "enabled": true, - "name": "Español", - "tag": "es-ES", - }, - Object { - "enabled": true, - "name": "Română", - "tag": "ro", - }, - Object { - "enabled": true, - "name": "Türkçe", - "tag": "tr", - }, - Object { - "enabled": true, - "name": "简体中文", - "tag": "zh-CN", + "name": "한국어", + "tag": "ko", }, ], }, diff --git a/v2/test/load/config.test.js b/v2/test/load/config.test.js index 622db84246..c83d899590 100644 --- a/v2/test/load/config.test.js +++ b/v2/test/load/config.test.js @@ -7,16 +7,32 @@ import path from 'path'; import loadConfig from '@lib/load/config'; +import loadSetup from '../loadSetup'; describe('loadConfig', () => { - test('website with valid siteConfig', () => { - const siteDir = path.join(__dirname, '__fixtures__', 'simple-site'); + test('website with valid siteConfig', async () => { + const {siteDir} = await loadSetup('simple'); const config = loadConfig(siteDir); expect(config).toMatchInlineSnapshot(` Object { "baseUrl": "/", "customDocsPath": "docs", "docsUrl": "docs", + "favicon": "img/docusaurus.ico", + "headerIcon": "img/docusaurus.svg", + "headerLinks": Array [ + Object { + "doc": "foo/bar", + "label": "Docs", + }, + Object { + "label": "Hello", + "page": "hello/world", + }, + Object { + "languages": true, + }, + ], "organizationName": "endiliey", "projectName": "hello", "tagline": "Hello World", @@ -32,7 +48,7 @@ Object { expect(() => { loadConfig(siteDir); }).toThrowErrorMatchingInlineSnapshot( - `"tagline, organizationName, projectName, url fields are missing in siteConfig.js"`, + `"tagline, organizationName, projectName, url, headerLinks, headerIcon, favicon fields are missing in siteConfig.js"`, ); }); @@ -41,7 +57,7 @@ Object { expect(() => { loadConfig(siteDir); }).toThrowErrorMatchingInlineSnapshot( - `"useLessField fields are useless in siteConfig.js"`, + `"headerLinks, headerIcon, favicon fields are missing in siteConfig.js"`, ); }); @@ -50,7 +66,7 @@ Object { expect(() => { loadConfig(siteDir); }).toThrowErrorMatchingInlineSnapshot( - `"title, tagline, organizationName, projectName, baseUrl, url fields are missing in siteConfig.js"`, + `"title, tagline, organizationName, projectName, baseUrl, url, headerLinks, headerIcon, favicon fields are missing in siteConfig.js"`, ); }); }); diff --git a/v2/test/load/docs/__snapshots__/sidebars.test.js.snap b/v2/test/load/docs/__snapshots__/sidebars.test.js.snap index 1aa921c64e..62485e8df6 100644 --- a/v2/test/load/docs/__snapshots__/sidebars.test.js.snap +++ b/v2/test/load/docs/__snapshots__/sidebars.test.js.snap @@ -6,17 +6,21 @@ Object { Object { "items": Array [ Object { - "id": "installation", + "id": "foo/bar", + "type": "doc", + }, + Object { + "id": "foo/baz", "type": "doc", }, ], - "label": "Getting Started", + "label": "Test", "type": "category", }, Object { "items": Array [ Object { - "id": "blog", + "id": "hello", "type": "doc", }, ], @@ -33,17 +37,21 @@ Object { Object { "items": Array [ Object { - "id": "installation", + "id": "foo/bar", + "type": "doc", + }, + Object { + "id": "foo/baz", "type": "doc", }, ], - "label": "Getting Started", + "label": "Test", "type": "category", }, Object { "items": Array [ Object { - "id": "blog", + "id": "hello", "type": "doc", }, ], @@ -55,17 +63,21 @@ Object { Object { "items": Array [ Object { - "id": "version-1.0.0-installation", + "id": "version-1.0.0-foo/bar", + "type": "doc", + }, + Object { + "id": "version-1.0.0-foo/baz", "type": "doc", }, ], - "label": "Getting Started", + "label": "Test", "type": "category", }, Object { "items": Array [ Object { - "id": "version-1.0.0-blog", + "id": "version-1.0.0-hello", "type": "doc", }, ], @@ -77,17 +89,21 @@ Object { Object { "items": Array [ Object { - "id": "version-1.0.1-installation", + "id": "version-1.0.1-foo/bar", + "type": "doc", + }, + Object { + "id": "version-1.0.1-foo/baz", "type": "doc", }, ], - "label": "Getting Started", + "label": "Test", "type": "category", }, Object { "items": Array [ Object { - "id": "version-1.0.1-blog", + "id": "version-1.0.1-hello", "type": "doc", }, ], diff --git a/v2/test/load/docs/sidebars.test.js b/v2/test/load/docs/sidebars.test.js index 2f4289767a..e422a44702 100644 --- a/v2/test/load/docs/sidebars.test.js +++ b/v2/test/load/docs/sidebars.test.js @@ -7,12 +7,12 @@ import path from 'path'; import loadSidebars from '@lib/load/docs/sidebars'; +import loadSetup from '../../loadSetup'; -describe('loadSidebars', () => { +describe('loadSidebars', async () => { const fixtures = path.join(__dirname, '..', '__fixtures__'); - test('normal site with sidebars', () => { - const env = {}; - const siteDir = path.join(fixtures, 'simple-site'); + test('normal site with sidebars', async () => { + const {env, siteDir} = await loadSetup('simple'); const result = loadSidebars({siteDir, env}); expect(result).toMatchSnapshot(); }); @@ -24,26 +24,20 @@ describe('loadSidebars', () => { expect(result).toMatchSnapshot(); }); - test('site with sidebars & versioned sidebars', () => { - const env = { - versioning: { - enabled: true, - versions: ['1.0.1', '1.0.0'], - }, - }; - const siteDir = path.join(fixtures, 'versioned-site'); + test('site with sidebars & versioned sidebars', async () => { + const {env, siteDir} = await loadSetup('versioned'); const result = loadSidebars({siteDir, env}); expect(result).toMatchSnapshot(); }); - test('site with missing versioned sidebars', () => { + test('site with missing versioned sidebars', async () => { const env = { versioning: { enabled: true, versions: ['2.0.0'], }, }; - const siteDir = path.join(fixtures, 'versioned-site'); + const {siteDir} = await loadSetup('versioned'); expect(() => { loadSidebars({siteDir, env}); }).toThrowErrorMatchingInlineSnapshot( diff --git a/v2/test/load/env.test.js b/v2/test/load/env.test.js index 55b6f7a4f8..49e164f032 100644 --- a/v2/test/load/env.test.js +++ b/v2/test/load/env.test.js @@ -7,10 +7,11 @@ import path from 'path'; import loadEnv from '@lib/load/env'; +import loadSetup from '../loadSetup'; describe('loadEnv', () => { - test('website with both versioning & translation disabled', () => { - const siteDir = path.join(__dirname, '__fixtures__', 'simple-site'); + test('website with both versioning & translation disabled', async () => { + const {siteDir} = await loadSetup('simple'); const siteConfig = { baseUrl: '/', organizationName: 'endiliey', @@ -24,8 +25,8 @@ describe('loadEnv', () => { expect(env).toMatchSnapshot(); }); - test('website with versioning enabled', () => { - const siteDir = path.join(__dirname, '__fixtures__', 'versioned-site'); + test('website with versioning enabled', async () => { + const {siteDir} = await loadSetup('versioned'); const siteConfig = { baseUrl: '/', organizationName: 'endiliey', @@ -39,8 +40,8 @@ describe('loadEnv', () => { expect(env).toMatchSnapshot(); }); - test('website with translation enabled', () => { - const siteDir = path.join(__dirname, '__fixtures__', 'translated-site'); + test('website with translation enabled', async () => { + const {siteDir} = await loadSetup('translated'); const siteConfig = { baseUrl: '/', organizationName: 'endiliey', @@ -55,8 +56,8 @@ describe('loadEnv', () => { expect(env).toMatchSnapshot(); }); - test('website with versioning & translation enabled', () => { - const siteDir = path.join(__dirname, '__fixtures__', 'transversioned-site'); + test('website with versioning & translation enabled', async () => { + const {siteDir} = await loadSetup('transversioned'); const siteConfig = { baseUrl: '/', organizationName: 'endiliey', @@ -87,8 +88,8 @@ describe('loadEnv', () => { ); }); - test('website with languages.js but no default language set', () => { - const siteDir = path.join(__dirname, '__fixtures__', 'translated-site'); + test('website with languages.js but no default language set', async () => { + const {siteDir} = await loadSetup('translated'); const siteConfig = { baseUrl: '/', organizationName: 'endiliey', diff --git a/v2/website/blog/2017-12-14-introducing-docusaurus.md b/v2/website/blog/2017-12-14-introducing-docusaurus.md index 117aaa4b39..a1c156ec3c 100644 --- a/v2/website/blog/2017-12-14-introducing-docusaurus.md +++ b/v2/website/blog/2017-12-14-introducing-docusaurus.md @@ -129,7 +129,7 @@ build ## Community -![Docusaurus](/img/docusaurus-logo.svg) +![Docusaurus](/img/docusaurus.svg) We welcome your [contributions](https://github.com/facebook/Docusaurus/blob/master/CONTRIBUTING.md) to Docusaurus, whether you want to use it for your own site, you want to [contribute](https://github.com/facebook/Docusaurus/blob/master/CONTRIBUTING.md) to the Docusaurus core or just have questions. Follow us on [GitHub](https://github.com/facebook/Docusaurus) and [Twitter](https://twitter.com/docusaurus). diff --git a/v2/website/pages/index.js b/v2/website/pages/index.js index 429fcbfb41..d3bdfdda75 100644 --- a/v2/website/pages/index.js +++ b/v2/website/pages/index.js @@ -193,7 +193,7 @@ function Home() { />

    {feature.title}

    -

    {feature.description}

    +
    {feature.description}
    ); })()} @@ -218,7 +218,7 @@ function Home() { />

    {quote.name}

    {quote.title}

    -

    {quote.text}

    +
    {quote.text}
    ))} diff --git a/v2/website/siteConfig.js b/v2/website/siteConfig.js index 9052b4917f..8d4ad25384 100644 --- a/v2/website/siteConfig.js +++ b/v2/website/siteConfig.js @@ -13,4 +13,20 @@ module.exports = { baseUrl: '/', customDocsPath: '../docs', url: 'https://docusaurus.io', + headerLinks: [ + {doc: 'installation', label: 'Docs'}, + {page: 'youtube', label: 'Youtube'}, + {blog: true, label: 'Blog'}, + { + href: 'https://github.com/facebook/docusaurus', + label: 'GitHub', + }, + ], + headerIcon: 'img/docusaurus.svg', + favicon: 'img/docusaurus.ico', + algolia: { + apiKey: '3eb9507824b8be89e7a199ecaa1a9d2c', + indexName: 'docusaurus', + algoliaOptions: {}, + }, }; diff --git a/v2/website/static/img/docusaurus.ico b/v2/website/static/img/docusaurus.ico new file mode 100644 index 0000000000..c01d54bcd3 Binary files /dev/null and b/v2/website/static/img/docusaurus.ico differ diff --git a/v2/website/static/img/docusaurus.svg b/v2/website/static/img/docusaurus.svg new file mode 100644 index 0000000000..9db6d0d066 --- /dev/null +++ b/v2/website/static/img/docusaurus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/v2/yarn.lock b/v2/yarn.lock index d658f60d2c..757b0a856a 100644 --- a/v2/yarn.lock +++ b/v2/yarn.lock @@ -2,6 +2,12 @@ # yarn lockfile v1 +"@babel/code-frame@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "http://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.44.tgz#2a02643368de80916162be70865c97774f3adbd9" + dependencies: + "@babel/highlight" "7.0.0-beta.44" + "@babel/code-frame@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0.tgz#06e2ab19bdb535385559aabb5ba59729482800f8" @@ -33,6 +39,16 @@ semver "^5.4.1" source-map "^0.5.0" +"@babel/generator@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "http://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.44.tgz#c7e67b9b5284afcf69b309b50d7d37f3e5033d42" + dependencies: + "@babel/types" "7.0.0-beta.44" + jsesc "^2.5.1" + lodash "^4.2.0" + source-map "^0.5.0" + trim-right "^1.0.1" + "@babel/generator@^7.0.0", "@babel/generator@^7.1.2": version "7.1.2" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.1.2.tgz#fde75c072575ce7abbd97322e8fef5bae67e4630" @@ -86,6 +102,14 @@ "@babel/traverse" "^7.1.0" "@babel/types" "^7.0.0" +"@babel/helper-function-name@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "http://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.44.tgz#e18552aaae2231100a6e485e03854bc3532d44dd" + dependencies: + "@babel/helper-get-function-arity" "7.0.0-beta.44" + "@babel/template" "7.0.0-beta.44" + "@babel/types" "7.0.0-beta.44" + "@babel/helper-function-name@^7.1.0": version "7.1.0" resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz#a0ceb01685f73355d4360c1247f582bfafc8ff53" @@ -94,6 +118,12 @@ "@babel/template" "^7.1.0" "@babel/types" "^7.0.0" +"@babel/helper-get-function-arity@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "http://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.44.tgz#d03ca6dd2b9f7b0b1e6b32c56c72836140db3a15" + dependencies: + "@babel/types" "7.0.0-beta.44" + "@babel/helper-get-function-arity@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz#83572d4320e2a4657263734113c42868b64e49c3" @@ -171,6 +201,12 @@ "@babel/template" "^7.1.0" "@babel/types" "^7.0.0" +"@babel/helper-split-export-declaration@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "http://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.44.tgz#c0b351735e0fbcb3822c8ad8db4e583b05ebd9dc" + dependencies: + "@babel/types" "7.0.0-beta.44" + "@babel/helper-split-export-declaration@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0.tgz#3aae285c0311c2ab095d997b8c9a94cad547d813" @@ -194,6 +230,14 @@ "@babel/traverse" "^7.1.0" "@babel/types" "^7.1.2" +"@babel/highlight@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "http://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.44.tgz#18c94ce543916a80553edcdcf681890b200747d5" + dependencies: + chalk "^2.0.0" + esutils "^2.0.2" + js-tokens "^3.0.0" + "@babel/highlight@7.0.0-beta.54": version "7.0.0-beta.54" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0-beta.54.tgz#155d507358329b8e7068970017c3fd74a9b08584" @@ -566,6 +610,15 @@ "@babel/plugin-transform-react-jsx-self" "^7.0.0" "@babel/plugin-transform-react-jsx-source" "^7.0.0" +"@babel/template@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "http://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.44.tgz#f8832f4fdcee5d59bf515e595fc5106c529b394f" + dependencies: + "@babel/code-frame" "7.0.0-beta.44" + "@babel/types" "7.0.0-beta.44" + babylon "7.0.0-beta.44" + lodash "^4.2.0" + "@babel/template@^7.1.0", "@babel/template@^7.1.2": version "7.1.2" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.1.2.tgz#090484a574fef5a2d2d7726a674eceda5c5b5644" @@ -574,6 +627,21 @@ "@babel/parser" "^7.1.2" "@babel/types" "^7.1.2" +"@babel/traverse@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "http://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.44.tgz#a970a2c45477ad18017e2e465a0606feee0d2966" + dependencies: + "@babel/code-frame" "7.0.0-beta.44" + "@babel/generator" "7.0.0-beta.44" + "@babel/helper-function-name" "7.0.0-beta.44" + "@babel/helper-split-export-declaration" "7.0.0-beta.44" + "@babel/types" "7.0.0-beta.44" + babylon "7.0.0-beta.44" + debug "^3.1.0" + globals "^11.1.0" + invariant "^2.2.0" + lodash "^4.2.0" + "@babel/traverse@^7.1.0": version "7.1.0" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.1.0.tgz#503ec6669387efd182c3888c4eec07bcc45d91b2" @@ -588,6 +656,14 @@ globals "^11.1.0" lodash "^4.17.10" +"@babel/types@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "http://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.44.tgz#6b1b164591f77dec0a0342aca995f2d046b3a757" + dependencies: + esutils "^2.0.2" + lodash "^4.2.0" + to-fast-properties "^2.0.0" + "@babel/types@^7.0.0", "@babel/types@^7.1.2": version "7.1.2" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.1.2.tgz#183e7952cf6691628afdc2e2b90d03240bac80c0" @@ -833,27 +909,41 @@ acorn-globals@^4.1.0: dependencies: acorn "^5.0.0" -acorn-jsx@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.0.0.tgz#958584ddb60990c02c97c1bd9d521fce433bb101" +acorn-jsx@^3.0.0: + version "3.0.1" + resolved "http://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b" + dependencies: + acorn "^3.0.4" + +acorn@^3.0.4: + version "3.3.0" + resolved "http://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" acorn@^5.0.0, acorn@^5.5.3, acorn@^5.6.2: version "5.7.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.1.tgz#f095829297706a7c9776958c0afc8930a9b9d9d8" -acorn@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.0.2.tgz#6a459041c320ab17592c6317abbfdf4bbaa98ca4" +acorn@^5.5.0: + version "5.7.3" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.3.tgz#67aa231bf8812974b85235a96771eb6bd07ea279" address@1.0.3, address@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/address/-/address-1.0.3.tgz#b5f50631f8d6cec8bd20c963963afb55e06cbce9" +agentkeepalive@^2.2.0: + version "2.2.0" + resolved "http://registry.npmjs.org/agentkeepalive/-/agentkeepalive-2.2.0.tgz#c5d1bd4b129008f1163f236f86e5faea2026e2ef" + +ajv-keywords@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.1.tgz#617997fc5f60576894c435f940d819e135b80762" + ajv-keywords@^3.0.0, ajv-keywords@^3.1.0: version "3.2.0" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.2.0.tgz#e86b819c602cf8821ad637413698f1dec021847a" -ajv@^5.1.0: +ajv@^5.1.0, ajv@^5.2.3, ajv@^5.3.0: version "5.5.2" resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" dependencies: @@ -871,14 +961,25 @@ ajv@^6.0.1, ajv@^6.1.0: json-schema-traverse "^0.4.1" uri-js "^4.2.1" -ajv@^6.5.3: - version "6.5.4" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.5.4.tgz#247d5274110db653706b550fcc2b797ca28cfc59" +algoliasearch@^3.24.5: + version "3.30.0" + resolved "https://registry.yarnpkg.com/algoliasearch/-/algoliasearch-3.30.0.tgz#355585e49b672e5f71d45b9c2b371ecdff129cd1" dependencies: - fast-deep-equal "^2.0.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" + agentkeepalive "^2.2.0" + debug "^2.6.8" + envify "^4.0.0" + es6-promise "^4.1.0" + events "^1.1.0" + foreach "^2.0.5" + global "^4.3.2" + inherits "^2.0.1" + isarray "^2.0.1" + load-script "^1.0.0" + object-keys "^1.0.11" + querystring-es3 "^0.2.1" + reduce "^1.0.1" + semver "^5.1.0" + tunnel-agent "^0.6.0" align-text@^0.1.1, align-text@^0.1.3: version "0.1.4" @@ -1103,6 +1204,12 @@ atob@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.1.tgz#ae2d5a729477f289d60dd7f96a6314a22dd6c22a" +autocomplete.js@^0.29.0: + version "0.29.0" + resolved "https://registry.yarnpkg.com/autocomplete.js/-/autocomplete.js-0.29.0.tgz#0185f7375ee9daf068f7d52d794bc90dcd739fd7" + dependencies: + immediate "^3.2.3" + autolinker@~0.15.0: version "0.15.3" resolved "https://registry.yarnpkg.com/autolinker/-/autolinker-0.15.3.tgz#342417d8f2f3461b14cf09088d5edf8791dc9832" @@ -1121,7 +1228,7 @@ axobject-query@^2.0.1: dependencies: ast-types-flow "0.0.7" -babel-code-frame@6.26.0, babel-code-frame@^6.26.0: +babel-code-frame@6.26.0, babel-code-frame@^6.22.0, babel-code-frame@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" dependencies: @@ -1157,6 +1264,17 @@ babel-core@^7.0.0-bridge.0: version "7.0.0-bridge.0" resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" +babel-eslint@8: + version "8.2.6" + resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-8.2.6.tgz#6270d0c73205628067c0f7ae1693a9e797acefd9" + dependencies: + "@babel/code-frame" "7.0.0-beta.44" + "@babel/traverse" "7.0.0-beta.44" + "@babel/types" "7.0.0-beta.44" + babylon "7.0.0-beta.44" + eslint-scope "3.7.1" + eslint-visitor-keys "^1.0.0" + babel-generator@^6.18.0, babel-generator@^6.26.0: version "6.26.1" resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" @@ -1288,6 +1406,10 @@ babel-types@^6.0.0, babel-types@^6.18.0, babel-types@^6.26.0: lodash "^4.17.4" to-fast-properties "^1.0.3" +babylon@7.0.0-beta.44: + version "7.0.0-beta.44" + resolved "http://registry.npmjs.org/babylon/-/babylon-7.0.0-beta.44.tgz#89159e15e6e30c5096e22d738d8c0af8a0e8ca1d" + babylon@^6.18.0: version "6.18.0" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" @@ -1616,10 +1738,6 @@ chardet@^0.4.0: version "0.4.2" resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2" -chardet@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" - cheerio@^0.22.0: version "0.22.0" resolved "https://registry.yarnpkg.com/cheerio/-/cheerio-0.22.0.tgz#a9baa860a3f9b595a6b81b1a86873121ed3a269e" @@ -1810,7 +1928,7 @@ concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" -concat-stream@^1.5.0: +concat-stream@^1.5.0, concat-stream@^1.6.0: version "1.6.2" resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" dependencies: @@ -1951,7 +2069,7 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: safe-buffer "^5.0.1" sha.js "^2.4.8" -cross-spawn@5.1.0, cross-spawn@^5.0.1: +cross-spawn@5.1.0, cross-spawn@^5.0.1, cross-spawn@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" dependencies: @@ -1959,16 +2077,6 @@ cross-spawn@5.1.0, cross-spawn@^5.0.1: shebang-command "^1.2.0" which "^1.2.9" -cross-spawn@^6.0.5: - version "6.0.5" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" - dependencies: - nice-try "^1.0.4" - path-key "^2.0.1" - semver "^5.5.0" - shebang-command "^1.2.0" - which "^1.2.9" - crypto-browserify@^3.11.0: version "3.12.0" resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" @@ -2091,12 +2199,6 @@ debug@^3.1.0: dependencies: ms "2.0.0" -debug@^4.0.1: - version "4.1.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.0.tgz#373687bffa678b38b1cd91f861b63850035ddc87" - dependencies: - ms "^2.1.1" - decamelize-keys@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.0.tgz#d171a87933252807eb3cb61dc1c1445d078df2d9" @@ -2245,6 +2347,15 @@ dir-glob@^2.0.0: arrify "^1.0.1" path-type "^3.0.0" +docsearch.js@^2.5.2: + version "2.5.2" + resolved "https://registry.yarnpkg.com/docsearch.js/-/docsearch.js-2.5.2.tgz#1a3521c92e5f252cc522c57357ef1c47b945b381" + dependencies: + algoliasearch "^3.24.5" + autocomplete.js "^0.29.0" + hogan.js "^3.0.2" + to-factory "^1.0.0" + doctrine@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" @@ -2271,6 +2382,10 @@ dom-serializer@0, dom-serializer@~0.1.0: domelementtype "~1.1.1" entities "~1.1.1" +dom-walk@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/dom-walk/-/dom-walk-0.1.1.tgz#672226dc74c8f799ad35307df936aba11acd6018" + domain-browser@^1.1.1: version "1.2.0" resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" @@ -2396,6 +2511,13 @@ entities@^1.1.1, entities@~1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.1.tgz#6e5c2d0a5621b5dadaecef80b90edfb5cd7772f0" +envify@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/envify/-/envify-4.1.0.tgz#f39ad3db9d6801b4e6b478b61028d3f0b6819f7e" + dependencies: + esprima "^4.0.0" + through "~2.3.4" + errno@^0.1.3, errno@~0.1.7: version "0.1.7" resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618" @@ -2446,6 +2568,10 @@ es6-iterator@~2.0.3: es5-ext "^0.10.35" es6-symbol "^3.1.1" +es6-promise@^4.1.0: + version "4.2.5" + resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.5.tgz#da6d0d5692efb461e082c14817fe2427d8f5d054" + es6-symbol@^3.1.1, es6-symbol@~3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77" @@ -2554,6 +2680,20 @@ eslint-restricted-globals@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/eslint-restricted-globals/-/eslint-restricted-globals-0.1.1.tgz#35f0d5cbc64c2e3ed62e93b4b1a7af05ba7ed4d7" +eslint-scope@3.7.1: + version "3.7.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8" + dependencies: + esrecurse "^4.1.0" + estraverse "^4.1.1" + +eslint-scope@^3.7.1: + version "3.7.3" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.3.tgz#bb507200d3d17f60247636160b4826284b108535" + dependencies: + esrecurse "^4.1.0" + estraverse "^4.1.1" + eslint-scope@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.0.tgz#50bf3071e9338bcdc43331794a0cb533f0136172" @@ -2561,64 +2701,59 @@ eslint-scope@^4.0.0: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-utils@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.3.1.tgz#9a851ba89ee7c460346f97cf8939c7298827e512" - eslint-visitor-keys@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d" -eslint@^5.8.0: - version "5.8.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-5.8.0.tgz#91fbf24f6e0471e8fdf681a4d9dd1b2c9f28309b" +eslint@4.x: + version "4.19.1" + resolved "http://registry.npmjs.org/eslint/-/eslint-4.19.1.tgz#32d1d653e1d90408854bfb296f076ec7e186a300" dependencies: - "@babel/code-frame" "^7.0.0" - ajv "^6.5.3" + ajv "^5.3.0" + babel-code-frame "^6.22.0" chalk "^2.1.0" - cross-spawn "^6.0.5" - debug "^4.0.1" + concat-stream "^1.6.0" + cross-spawn "^5.1.0" + debug "^3.1.0" doctrine "^2.1.0" - eslint-scope "^4.0.0" - eslint-utils "^1.3.1" + eslint-scope "^3.7.1" eslint-visitor-keys "^1.0.0" - espree "^4.0.0" - esquery "^1.0.1" + espree "^3.5.4" + esquery "^1.0.0" esutils "^2.0.2" file-entry-cache "^2.0.0" functional-red-black-tree "^1.0.1" glob "^7.1.2" - globals "^11.7.0" - ignore "^4.0.6" + globals "^11.0.1" + ignore "^3.3.3" imurmurhash "^0.1.4" - inquirer "^6.1.0" - is-resolvable "^1.1.0" - js-yaml "^3.12.0" + inquirer "^3.0.6" + is-resolvable "^1.0.0" + js-yaml "^3.9.1" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.3.0" - lodash "^4.17.5" - minimatch "^3.0.4" + lodash "^4.17.4" + minimatch "^3.0.2" mkdirp "^0.5.1" natural-compare "^1.4.0" optionator "^0.8.2" path-is-inside "^1.0.2" pluralize "^7.0.0" progress "^2.0.0" - regexpp "^2.0.1" + regexpp "^1.0.1" require-uncached "^1.0.3" - semver "^5.5.1" + semver "^5.3.0" strip-ansi "^4.0.0" - strip-json-comments "^2.0.1" - table "^5.0.2" - text-table "^0.2.0" + strip-json-comments "~2.0.1" + table "4.0.2" + text-table "~0.2.0" -espree@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/espree/-/espree-4.1.0.tgz#728d5451e0fd156c04384a7ad89ed51ff54eb25f" +espree@^3.5.4: + version "3.5.4" + resolved "http://registry.npmjs.org/espree/-/espree-3.5.4.tgz#b0f447187c8a8bed944b815a660bddf5deb5d1a7" dependencies: - acorn "^6.0.2" - acorn-jsx "^5.0.0" - eslint-visitor-keys "^1.0.0" + acorn "^5.5.0" + acorn-jsx "^3.0.0" esprima@^3.1.3: version "3.1.3" @@ -2628,7 +2763,7 @@ esprima@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" -esquery@^1.0.1: +esquery@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.1.tgz#406c51658b1f5991a5f9b62b1dc25b00e3e5c708" dependencies: @@ -2654,7 +2789,7 @@ eval@^0.1.0: dependencies: require-like ">= 0.1.1" -events@^1.0.0: +events@^1.0.0, events@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" @@ -2775,14 +2910,6 @@ external-editor@^2.0.4: iconv-lite "^0.4.17" tmp "^0.0.33" -external-editor@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.0.3.tgz#5866db29a97826dbe4bf3afd24070ead9ea43a27" - dependencies: - chardet "^0.7.0" - iconv-lite "^0.4.24" - tmp "^0.0.33" - extglob@^0.3.1: version "0.3.2" resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" @@ -3137,7 +3264,14 @@ global-prefix@^1.0.1: is-windows "^1.0.1" which "^1.2.14" -globals@^11.1.0, globals@^11.7.0: +global@^4.3.2: + version "4.3.2" + resolved "https://registry.yarnpkg.com/global/-/global-4.3.2.tgz#e76989268a6c74c38908b1305b10fc0e394e9d0f" + dependencies: + min-document "^2.19.0" + process "~0.5.1" + +globals@^11.0.1, globals@^11.1.0: version "11.8.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.8.0.tgz#c1ef45ee9bed6badf0663c5cb90e8d1adec1321d" @@ -3320,6 +3454,13 @@ hmac-drbg@^1.0.0: minimalistic-assert "^1.0.0" minimalistic-crypto-utils "^1.0.1" +hogan.js@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/hogan.js/-/hogan.js-3.0.2.tgz#4cd9e1abd4294146e7679e41d7898732b02c7bfd" + dependencies: + mkdirp "0.3.0" + nopt "1.0.10" + hoist-non-react-statics@^2.5.0: version "2.5.5" resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz#c5903cf409c0dfd908f388e619d86b9c1174cb47" @@ -3433,12 +3574,6 @@ iconv-lite@^0.4.17, iconv-lite@^0.4.4: dependencies: safer-buffer ">= 2.1.2 < 3" -iconv-lite@^0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" - dependencies: - safer-buffer ">= 2.1.2 < 3" - icss-replace-symbols@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz#06ea6f83679a7749e386cfe1fe812ae5db223ded" @@ -3463,13 +3598,13 @@ ignore-walk@^3.0.1: dependencies: minimatch "^3.0.4" -ignore@^3.3.5: +ignore@^3.3.3, ignore@^3.3.5: version "3.3.10" resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043" -ignore@^4.0.6: - version "4.0.6" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" +immediate@^3.2.3: + version "3.2.3" + resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.2.3.tgz#d140fa8f614659bd6541233097ddaac25cdd991c" import-lazy@^2.1.0: version "2.1.0" @@ -3513,7 +3648,7 @@ ini@^1.3.4, ini@~1.3.0: version "1.3.5" resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" -inquirer@3.3.0: +inquirer@3.3.0, inquirer@^3.0.6: version "3.3.0" resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.3.0.tgz#9dd2f2ad765dcab1ff0443b491442a20ba227dc9" dependencies: @@ -3532,29 +3667,11 @@ inquirer@3.3.0: strip-ansi "^4.0.0" through "^2.3.6" -inquirer@^6.1.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.2.0.tgz#51adcd776f661369dc1e894859c2560a224abdd8" - dependencies: - ansi-escapes "^3.0.0" - chalk "^2.0.0" - cli-cursor "^2.1.0" - cli-width "^2.0.0" - external-editor "^3.0.0" - figures "^2.0.0" - lodash "^4.17.10" - mute-stream "0.0.7" - run-async "^2.2.0" - rxjs "^6.1.0" - string-width "^2.1.0" - strip-ansi "^4.0.0" - through "^2.3.6" - interpret@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.1.0.tgz#7ed1b1410c6a0e0f78cf95d3b8440c63f78b8614" -invariant@^2.2.1, invariant@^2.2.2, invariant@^2.2.4: +invariant@^2.2.0, invariant@^2.2.1, invariant@^2.2.2, invariant@^2.2.4: version "2.2.4" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" dependencies: @@ -3791,7 +3908,7 @@ is-regex@^1.0.4: dependencies: has "^1.0.1" -is-resolvable@^1.1.0: +is-resolvable@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88" @@ -3835,6 +3952,10 @@ isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" +isarray@^2.0.1: + version "2.0.4" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.4.tgz#38e7bcbb0f3ba1b7933c86ba1894ddfc3781bbb7" + isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" @@ -4221,7 +4342,7 @@ js-tokens@^3.0.0, js-tokens@^3.0.2: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" -js-yaml@^3.10.0, js-yaml@^3.12.0, js-yaml@^3.7.0, js-yaml@^3.9.0: +js-yaml@^3.10.0, js-yaml@^3.7.0, js-yaml@^3.9.0, js-yaml@^3.9.1: version "3.12.0" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1" dependencies: @@ -4518,6 +4639,10 @@ load-json-file@^4.0.0: pify "^3.0.0" strip-bom "^3.0.0" +load-script@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/load-script/-/load-script-1.0.0.tgz#0491939e0bee5643ee494a7e3da3d2bac70c6ca4" + loader-runner@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.3.0.tgz#f482aea82d543e07921700d5a46ef26fdac6b8a2" @@ -4610,6 +4735,10 @@ lodash@^4.13.1, lodash@^4.17.10, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.17.5, version "4.17.10" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" +lodash@^4.2.0: + version "4.17.11" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d" + log-symbols@^2.1.0: version "2.2.0" resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" @@ -4839,6 +4968,12 @@ mimic-fn@^1.0.0: version "1.2.0" resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" +min-document@^2.19.0: + version "2.19.0" + resolved "https://registry.yarnpkg.com/min-document/-/min-document-2.19.0.tgz#7bd282e3f5842ed295bb748cdd9f1ffa2c824685" + dependencies: + dom-walk "^0.1.0" + mini-css-extract-plugin@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-0.4.1.tgz#d2bcf77bb2596b8e4bd9257e43d3f9164c2e86cb" @@ -4921,6 +5056,10 @@ mixin-deep@^1.2.0: for-in "^1.0.2" is-extendable "^1.0.1" +mkdirp@0.3.0: + version "0.3.0" + resolved "http://registry.npmjs.org/mkdirp/-/mkdirp-0.3.0.tgz#1bbf5ab1ba827af23575143490426455f481fe1e" + mkdirp@0.5.x, mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" @@ -4942,10 +5081,6 @@ ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" -ms@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" - mute-stream@0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" @@ -5026,10 +5161,6 @@ next-tick@1: version "1.0.0" resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" -nice-try@^1.0.4: - version "1.0.5" - resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" - no-case@^2.2.0: version "2.3.2" resolved "https://registry.yarnpkg.com/no-case/-/no-case-2.3.2.tgz#60b813396be39b3f1288a4c1ed5d1e7d28b464ac" @@ -5102,6 +5233,12 @@ node-version@^1.1.3: version "1.2.0" resolved "https://registry.yarnpkg.com/node-version/-/node-version-1.2.0.tgz#34fde3ffa8e1149bd323983479dda620e1b5060d" +nopt@1.0.10: + version "1.0.10" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee" + dependencies: + abbrev "1" + nopt@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" @@ -5180,7 +5317,7 @@ object-copy@^0.1.0: define-property "^0.2.5" kind-of "^3.0.3" -object-keys@^1.0.11, object-keys@^1.0.8: +object-keys@^1.0.11, object-keys@^1.0.8, object-keys@~1.0.0: version "1.0.12" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.12.tgz#09c53855377575310cca62f55bb334abff7b3ed2" @@ -5453,7 +5590,7 @@ path-is-inside@^1.0.1, path-is-inside@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" -path-key@^2.0.0, path-key@^2.0.1: +path-key@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" @@ -5642,6 +5779,10 @@ process@^0.11.10: version "0.11.10" resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" +process@~0.5.1: + version "0.5.2" + resolved "https://registry.yarnpkg.com/process/-/process-0.5.2.tgz#1638d8a8e34c2f440a91db95ab9aeb677fc185cf" + progress@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f" @@ -5717,7 +5858,7 @@ qs@~6.5.1: version "6.5.2" resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" -querystring-es3@^0.2.0: +querystring-es3@^0.2.0, querystring-es3@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" @@ -5961,6 +6102,12 @@ redent@^2.0.0: indent-string "^3.0.0" strip-indent "^2.0.0" +reduce@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/reduce/-/reduce-1.0.1.tgz#14fa2e5ff1fc560703a020cbb5fbaab691565804" + dependencies: + object-keys "~1.0.0" + regenerate-unicode-properties@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-7.0.0.tgz#107405afcc4a190ec5ed450ecaa00ed0cafa7a4c" @@ -5994,9 +6141,9 @@ regex-not@^1.0.0, regex-not@^1.0.2: extend-shallow "^3.0.2" safe-regex "^1.1.0" -regexpp@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f" +regexpp@^1.0.1: + version "1.1.0" + resolved "http://registry.npmjs.org/regexpp/-/regexpp-1.1.0.tgz#0e3516dd0b7904f413d2d4193dce4618c3a689ab" regexpu-core@^1.0.0: version "1.0.0" @@ -6257,12 +6404,6 @@ rx-lite@*, rx-lite@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444" -rxjs@^6.1.0: - version "6.3.3" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.3.3.tgz#3c6a7fa420e844a81390fb1158a9ec614f4bad55" - dependencies: - tslib "^1.9.0" - safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" @@ -6324,10 +6465,6 @@ semver-diff@^2.0.0: version "5.5.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" -semver@^5.5.1: - version "5.6.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.6.0.tgz#7e74256fbaa49c75aa7c7a205cc22799cac80004" - serialize-javascript@^1.4.0: version "1.5.0" resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-1.5.0.tgz#1aa336162c88a890ddad5384baebc93a655161fe" @@ -6703,7 +6840,7 @@ strip-indent@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68" -strip-json-comments@^2.0.1, strip-json-comments@~2.0.1: +strip-json-comments@~2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" @@ -6734,6 +6871,17 @@ symbol-tree@^3.2.2: version "3.2.2" resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" +table@4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/table/-/table-4.0.2.tgz#a33447375391e766ad34d3486e6e2aedc84d2e36" + dependencies: + ajv "^5.2.3" + ajv-keywords "^2.1.0" + chalk "^2.1.0" + lodash "^4.17.4" + slice-ansi "1.0.0" + string-width "^2.1.1" + table@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/table/-/table-4.0.3.tgz#00b5e2b602f1794b9acaf9ca908a76386a7813bc" @@ -6745,15 +6893,6 @@ table@^4.0.3: slice-ansi "1.0.0" string-width "^2.1.1" -table@^5.0.2: - version "5.1.0" - resolved "https://registry.yarnpkg.com/table/-/table-5.1.0.tgz#69a54644f6f01ad1628f8178715b408dc6bf11f7" - dependencies: - ajv "^6.5.3" - lodash "^4.17.10" - slice-ansi "1.0.0" - string-width "^2.1.1" - tapable@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.0.0.tgz#cbb639d9002eed9c6b5975eb20598d7936f1f9f2" @@ -6786,7 +6925,7 @@ test-exclude@^4.2.1: read-pkg-up "^1.0.1" require-main-filename "^1.0.1" -text-table@0.2.0, text-table@^0.2.0: +text-table@0.2.0, text-table@^0.2.0, text-table@~0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" @@ -6813,7 +6952,7 @@ through2@^2.0.0: readable-stream "^2.1.5" xtend "~4.0.1" -through@^2.3.6: +through@^2.3.6, through@~2.3.4: version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" @@ -6849,6 +6988,10 @@ to-arraybuffer@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" +to-factory@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/to-factory/-/to-factory-1.0.0.tgz#8738af8bd97120ad1d4047972ada5563bf9479b1" + to-fast-properties@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" @@ -7090,7 +7233,7 @@ upper-case@^1.1.1: version "1.1.3" resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-1.1.3.tgz#f6b4501c2ec4cdd26ba78be7222961de77621598" -uri-js@^4.2.1, uri-js@^4.2.2: +uri-js@^4.2.1: version "4.2.2" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" dependencies: