From 999229edecc7819916541e39f5cf2b11a08dbb78 Mon Sep 17 00:00:00 2001 From: Nancy Date: Mon, 27 Aug 2018 19:32:12 -0700 Subject: [PATCH] Fixed css bug for Facebook sign up text in site footer --- lib/static/css/main.css | 206 ++++++++--------- .../2016-03-11-blog-post.md | 18 ++ .../2017-04-10-blog-post-two.md | 18 ++ .../2017-09-25-testing-rss.md | 11 + .../2017-09-26-adding-rss.md | 10 + .../2017-10-24-new-version-1.0.0.md | 8 + website/website/core/Footer.js | 101 ++++++++ website/website/package.json | 14 ++ website/website/pages/en/help.js | 58 +++++ website/website/pages/en/index.js | 215 ++++++++++++++++++ website/website/pages/en/users.js | 49 ++++ website/website/sidebars.json | 10 + website/website/siteConfig.js | 100 ++++++++ website/website/static/css/custom.css | 16 ++ website/website/static/img/docusaurus.svg | 1 + website/website/static/img/favicon.png | Bin 0 -> 984 bytes .../website/static/img/favicon/favicon.ico | Bin 0 -> 9662 bytes website/website/static/img/oss_logo.png | Bin 0 -> 4370 bytes 18 files changed, 724 insertions(+), 111 deletions(-) create mode 100755 website/website/blog-examples-from-docusaurus/2016-03-11-blog-post.md create mode 100644 website/website/blog-examples-from-docusaurus/2017-04-10-blog-post-two.md create mode 100644 website/website/blog-examples-from-docusaurus/2017-09-25-testing-rss.md create mode 100644 website/website/blog-examples-from-docusaurus/2017-09-26-adding-rss.md create mode 100644 website/website/blog-examples-from-docusaurus/2017-10-24-new-version-1.0.0.md create mode 100644 website/website/core/Footer.js create mode 100644 website/website/package.json create mode 100755 website/website/pages/en/help.js create mode 100755 website/website/pages/en/index.js create mode 100644 website/website/pages/en/users.js create mode 100644 website/website/sidebars.json create mode 100644 website/website/siteConfig.js create mode 100644 website/website/static/css/custom.css create mode 100644 website/website/static/img/docusaurus.svg create mode 100644 website/website/static/img/favicon.png create mode 100644 website/website/static/img/favicon/favicon.ico create mode 100644 website/website/static/img/oss_logo.png diff --git a/lib/static/css/main.css b/lib/static/css/main.css index 322673ebd2af..185a38bb5b4b 100644 --- a/lib/static/css/main.css +++ b/lib/static/css/main.css @@ -6,6 +6,7 @@ */ /* Reset */ + html, body, div, @@ -96,10 +97,10 @@ video { } /* Base scaffolding taken from Markswatch theme */ + body { color: #24292e; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, - sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px; line-height: 1.5; -ms-text-size-adjust: 100%; @@ -219,11 +220,11 @@ li { word-wrap: break-all; } -li > p { +li>p { margin-top: 1em; } -li + li { +li+li { margin-top: 0.25em; } @@ -284,11 +285,11 @@ blockquote { padding: 0 1em; } -blockquote > :first-child { +blockquote> :first-child { margin-top: 0; } -blockquote > :last-child { +blockquote> :last-child { margin-bottom: 0; } @@ -296,8 +297,7 @@ code { background-color: rgba(27, 31, 35, 0.05); border-radius: 3px; color: inherit; - font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', - 'Courier New', monospace; + font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 85%; margin: 0; padding: 3.2px 6.4px; @@ -330,8 +330,7 @@ kbd { box-shadow: inset 0 -1px 0 #c6cbd1; color: #444d56; display: inline-block; - font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', - 'Courier New', monospace; + font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 68.75%; line-height: 10px; padding: 3px 5px; @@ -364,6 +363,7 @@ hr:after { */ /* Base */ + body { min-height: 100vh; text-rendering: optimizeLegibility; @@ -387,11 +387,11 @@ article:after { display: table; } -article > :first-child { +article> :first-child { margin-top: 0; } -article > :last-child { +article> :last-child { margin-bottom: 0; } @@ -404,6 +404,7 @@ article iframe { } /* Links */ + .anchor { display: block; position: relative; @@ -428,6 +429,7 @@ article iframe { } /* Buttons */ + .button { border: 1px solid $primaryColor; border-radius: 3px; @@ -448,6 +450,7 @@ article iframe { } /* Headers */ + h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, @@ -457,6 +460,7 @@ h4:hover .hash-link { } /* Blockquotes */ + blockquote { background-color: rgba(255, 229, 100, 0.3); border-left: 8px solid #ffe564; @@ -464,13 +468,14 @@ blockquote { } /* Utils */ + .wrapper { margin: 0px auto; max-width: 1100px; padding: 0 20px; } -.wrapper blockquote > p:first-child { +.wrapper blockquote>p:first-child { padding-top: 0; } @@ -478,9 +483,11 @@ blockquote { display: block; text-align: center; } + /* End of Utils */ /* Home Container */ + .homeContainer { text-align: center; } @@ -517,7 +524,6 @@ blockquote { .homeContainer .homeWrapper { position: relative; } - .homeContainer .homeWrapper #inner { max-width: 600px; padding-right: 40px; @@ -544,7 +550,7 @@ blockquote { line-height: 1em; } -.projectTitle > small { +.projectTitle>small { display: block; font-weight: normal; font-size: 50%; @@ -557,12 +563,10 @@ blockquote { font-size: 300%; margin: 0.3em 0; } - .projectLogo img { height: 200px; margin-bottom: 10px; } - .homeContainer .homeWrapper { padding-left: 10px; padding-right: 10px; @@ -573,7 +577,6 @@ blockquote { .homeContainer .homeWrapper { position: relative; } - .homeContainer .homeWrapper #inner { max-width: 600px; padding-right: 40px; @@ -584,7 +587,6 @@ blockquote { .homeContainer .homeWrapper #inner { max-width: 750px; } - .homeContainer .homeWrapper .projectLogo { align-items: center; bottom: 0; @@ -608,14 +610,15 @@ blockquote { padding-bottom: 40px; padding-top: 40px; } - .wrapper { max-width: 1400px; } } + /* End of Home Container */ /* Main Container */ + .mainContainer { flex: 1 1 auto; max-width: 100%; @@ -698,7 +701,6 @@ blockquote { .mainContainer .wrapper .post .docPagination a .pagerLabel { display: none; } - .mainContainer .wrapper .post .docPagination a .pagerTitle { display: inline; } @@ -708,14 +710,15 @@ blockquote { .mainContainer .wrapper .post { display: block; } - .mainContainer .wrapper .posts .post { width: 100%; } } + /* End of Main Container */ /* Navbar */ + .fixedHeaderContainer { background: $primaryColor; color: #fff; @@ -780,14 +783,15 @@ blockquote { .headerTitle { font-size: 17px; } - .headerTitleWithLogo { display: none !important; } } + /* End of Navbar */ /* Promo section */ + .promoSection { display: flex; flex-flow: column wrap; @@ -825,9 +829,11 @@ blockquote { margin-left: 2px; margin-top: 5px; } + /* End of Promo Section */ /* Search */ + input[type='search'] { -moz-appearance: none; -webkit-appearance: none; @@ -880,38 +886,25 @@ input[type='search'] { right: 0 !important; } -.navSearchWrapper - .aa-dropdown-menu - .algolia-docsearch-suggestion--category-header { +.navSearchWrapper .aa-dropdown-menu .algolia-docsearch-suggestion--category-header { background: $primaryColor; color: white; font-size: 14px; font-weight: 400; } -.navSearchWrapper - .aa-dropdown-menu - .algolia-docsearch-suggestion--category-header - .algolia-docsearch-suggestion--highlight { +.navSearchWrapper .aa-dropdown-menu .algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--highlight { background-color: $primaryColor; color: #fff; } -.navSearchWrapper - .aa-dropdown-menu - .algolia-docsearch-suggestion--title - .algolia-docsearch-suggestion--highlight, -.navSearchWrapper - .aa-dropdown-menu - .algolia-docsearch-suggestion--subcategory-column - .algolia-docsearch-suggestion--highlight { +.navSearchWrapper .aa-dropdown-menu .algolia-docsearch-suggestion--title .algolia-docsearch-suggestion--highlight, +.navSearchWrapper .aa-dropdown-menu .algolia-docsearch-suggestion--subcategory-column .algolia-docsearch-suggestion--highlight { color: $primaryColor; } .navSearchWrapper .aa-dropdown-menu .algolia-docsearch-suggestion__secondary, -.navSearchWrapper - .aa-dropdown-menu - .algolia-docsearch-suggestion--subcategory-column { +.navSearchWrapper .aa-dropdown-menu .algolia-docsearch-suggestion--subcategory-column { border-color: rgba(57, 57, 57, 0.3); } @@ -960,14 +953,16 @@ input::placeholder { .hljs { padding: 1.25rem 1.5rem; } + /* End of Search */ /* GridBlock */ + .gridBlock { padding: 0; } -.gridBlock > * { +.gridBlock>* { box-sizing: border-box; } @@ -993,32 +988,25 @@ input::placeholder { flex-direction: row; flex-wrap: wrap; } - - .gridBlock > * { + .gridBlock>* { margin: 0 12px; } - - .gridBlock > *:first-child { + .gridBlock>*:first-child { margin-left: 0; } - - .gridBlock > *:last-child { + .gridBlock>*:last-child { margin-right: 0; } - .gridBlock .twoByGridBlock { flex: 1 0 40%; } - .gridBlock .threeByGridBlock { flex: 1 0 26%; } - .gridBlock .fourByGridBlock { flex: 1 0 20%; } - - h2 + .gridBlock { + h2+.gridBlock { padding-top: 20px; } } @@ -1090,9 +1078,11 @@ input::placeholder { .imageAlignLeft .blockImage { margin-right: 40px; } + /* End of GridBlock */ /* Start of Container */ + .container .gridBlock .blockContent p { padding: 0; } @@ -1181,7 +1171,6 @@ input::placeholder { .container.paddingBottom { padding-bottom: 40px; } - .container.paddingTop { padding-top: 20px; } @@ -1191,19 +1180,19 @@ input::placeholder { .responsiveList .blockContent { position: relative; } - - .responsiveList .blockContent > div { + .responsiveList .blockContent>div { padding-left: 20px; } - .responsiveList .blockContent:before { content: '\2022'; position: absolute; } } + /* End of Container */ /* Navigation Slider */ + .navigationSlider .navSlideout { cursor: pointer; padding-top: 4px; @@ -1273,9 +1262,11 @@ input::placeholder { .navigationSlider .slidingNav ul li.siteNavGroupActive a { background: $primaryColor; } + /* End of Navigation Slider */ /* Languages Dropdown */ + .languages-icon { width: 20px; } @@ -1290,6 +1281,7 @@ input::placeholder { #languages-dropdown.visible { display: flex; } + #languages-dropdown.hide { display: none; } @@ -1335,9 +1327,8 @@ input::placeholder { min-height: calc(100vh - 50px); padding-top: 50px; } - /* those make the footer sticky and work even in IE 11 */ - .navPusher > :first-child { + .navPusher> :first-child { flex-grow: 1; } } @@ -1363,25 +1354,20 @@ input::placeholder { outline: none; padding-left: 25px; position: relative; - transition: background-color 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55), - width 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55), color 0.2s ease; + transition: background-color 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55), width 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55), color 0.2s ease; width: 100%; } - .reactNavSearchWrapper input#search_input_react:focus, .reactNavSearchWrapper input#search_input_react:active { background-color: $primaryColor; color: #fff; } - .reactNavSearchWrapper .algolia-docsearch-suggestion--subcategory-inline { display: none; } - - .reactNavSearchWrapper > span { + .reactNavSearchWrapper>span { width: 100%; } - .reactNavSearchWrapper .aa-dropdown-menu { background: #f9f9f9; border: 0px solid #f9f9f9; @@ -1397,12 +1383,10 @@ input::placeholder { position: relative !important; width: 100%; } - #languages-dropdown { left: 0px; top: 50px; } - #languages-dropdown-items { background-color: $primaryColor; display: flex; @@ -1417,21 +1401,17 @@ input::placeholder { right: auto; top: auto; } - .navSearchWrapper .algolia-autocomplete { display: block; } - .navigationSlider { height: 34px; margin-left: auto; position: relative; } - .navigationSlider .navSlideout { display: none; } - .navigationSlider nav.slidingNav { background: none; height: auto; @@ -1440,7 +1420,6 @@ input::placeholder { top: auto; width: auto; } - .navigationSlider .slidingNav ul { background: none; display: flex; @@ -1449,7 +1428,6 @@ input::placeholder { padding: 0; width: auto; } - .navigationSlider .slidingNav ul li a { border: 0; color: rgba(255, 255, 255, 0.8); @@ -1463,7 +1441,6 @@ input::placeholder { padding: 0; padding: 6px 10px; } - .navigationSlider .slidingNav ul li a:hover, .navigationSlider .slidingNav ul li.siteNavItemActive a, .navigationSlider .slidingNav ul li.siteNavGroupActive a { @@ -1481,6 +1458,7 @@ input::placeholder { } /* Start of Docs Main */ + .docMainWrapper .wrapper { padding-left: 0; padding-right: 0; @@ -1491,21 +1469,18 @@ input::placeholder { .docMainWrapper { width: 100%; } - - .docMainWrapper > * { + .docMainWrapper>* { margin: 0 24px; } - - .docMainWrapper > *:first-child { + .docMainWrapper>*:first-child { margin-left: 0; } - - .docMainWrapper > *:last-child { + .docMainWrapper>*:last-child { margin-right: 0; } - .docMainWrapper .mainContainer { - min-width: 0; /* Hack needed for flex-basis to work properly. */ + min-width: 0; + /* Hack needed for flex-basis to work properly. */ } } @@ -1523,9 +1498,11 @@ input::placeholder { display: none; } } + /* End of Docs Main */ /* Start of Docs Navigation */ + .docs-prevnext { margin: 20px 0; } @@ -1533,7 +1510,8 @@ input::placeholder { .docs-prevnext:after { clear: both; content: ' '; - display: table; /* clearfix */ + display: table; + /* clearfix */ } .docs-next { @@ -1549,9 +1527,11 @@ input::placeholder { height: 40px; } } + /* End of Docs Navigation */ /* Start of Docs Sidebar */ + @media only screen and (max-width: 1023px) { .docsNavContainer { background: #fff; @@ -1569,7 +1549,8 @@ input::placeholder { position: -webkit-sticky; position: sticky; overflow-y: auto; - top: 50px; /* Height of navbar */ + top: 50px; + /* Height of navbar */ } } @@ -1601,11 +1582,9 @@ input::placeholder { .docsNavContainer .toc .navBreadcrumb { display: none; } - .navBreadcrumb h2 { padding: 0 10px; } - .separateOnPageNav .docsNavContainer { flex: 0 0 240px; } @@ -1747,7 +1726,8 @@ input::placeholder { } .docsSliderActive .toc .toggleNav ul { - padding-left: 0; /* Remove indentation on mobile */ + padding-left: 0; + /* Remove indentation on mobile */ } .toc .toggleNav ul li { @@ -1865,7 +1845,6 @@ input::placeholder { display: flex; flex-flow: row nowrap; } - .docMainWrapper .wrapper { padding-top: 0; padding-left: 0; @@ -1874,6 +1853,7 @@ input::placeholder { } /* Inner page navigation */ + .onPageNav { display: none; } @@ -1910,7 +1890,6 @@ input::placeholder { padding: 0px; padding-top: 8px; } - .navBreadcrumb h2 { padding: 0 10px; } @@ -1931,49 +1910,42 @@ input::placeholder { top: 148px; z-index: 10; } - .tocActive .navToggle, .tocActive .navBreadcrumb h2 { visibility: hidden; } - - .tocActive .onPageNav > .toc-headings { + .tocActive .onPageNav>.toc-headings { padding: 12px 0; } } - @media only screen and (min-width: 1024px) { .separateOnPageNav .wrapper, .separateOnPageNav .headerWrapper.wrapper { max-width: 1400px; } - .separateOnPageNav .toc { width: auto; } - .separateOnPageNav.sideNavVisible .navPusher .mainContainer { flex: 1 auto; max-width: 100%; min-width: 0; } - .onPageNav { align-self: flex-start; display: block; flex: 0 0 240px; - max-height: calc(100vh - 90px); /* Sync with top */ + max-height: calc(100vh - 90px); + /* Sync with top */ overflow-y: auto; position: -webkit-sticky; position: sticky; top: 90px; } - - .onPageNav > .toc-headings { + .onPageNav>.toc-headings { border-left: 1px solid #e0e0e0; padding: 10px 0 2px 15px; } - .tocToggler { display: none; } @@ -1981,6 +1953,7 @@ input::placeholder { } /* Blog */ + .blog .wrapper { max-width: 1100px; } @@ -2037,7 +2010,7 @@ input::placeholder { margin: 20px 0; } -.blog-recent > a { +.blog-recent>a { float: left; } @@ -2062,7 +2035,15 @@ input::placeholder { width: 100%; } +/* Facebook sign up text */ + +#u_0_0>tbody>tr>td>table>tbody>tr>td._51m-._2pir._51mw>div { + width: 200px; + color: #eee; +} + /* Homepage */ + .more-users { margin: 0 auto; max-width: 560px; @@ -2120,6 +2101,7 @@ input::placeholder { } /* Start of Showcase */ + .showcaseSection { margin: 0 auto; max-width: 900px; @@ -2156,9 +2138,11 @@ input::placeholder { width: 64px; } } + /* End of Showcase */ /* Start of Footer */ + .nav-footer { background: #20232a; border: none; @@ -2212,8 +2196,7 @@ input::placeholder { margin: 0 2em 3em; width: calc(100% - 4em); } - - .nav-footer .sitemap > div { + .nav-footer .sitemap>div { margin-bottom: 18px; } } @@ -2231,8 +2214,8 @@ input::placeholder { text-decoration: none; } -.nav-footer .sitemap h5 > a:hover, -.nav-footer .sitemap h5 > a:focus { +.nav-footer .sitemap h5>a:hover, +.nav-footer .sitemap h5>a:focus { color: white; text-decoration: none; } @@ -2247,13 +2230,13 @@ input::placeholder { } .nav-footer .sitemap h6, -.nav-footer .sitemap h5 > a, -.nav-footer .sitemap h6 > a { +.nav-footer .sitemap h5>a, +.nav-footer .sitemap h6>a { color: white; } -.nav-footer .sitemap h5 > a, -.nav-footer .sitemap h6 > a { +.nav-footer .sitemap h5>a, +.nav-footer .sitemap h6>a { margin: 0 -10px; } @@ -2277,4 +2260,5 @@ input::placeholder { .nav-footer .social { padding: 5px 0; } -/* End of Footer */ + +/* End of Footer */ \ No newline at end of file diff --git a/website/website/blog-examples-from-docusaurus/2016-03-11-blog-post.md b/website/website/blog-examples-from-docusaurus/2016-03-11-blog-post.md new file mode 100755 index 000000000000..cf2ba2960679 --- /dev/null +++ b/website/website/blog-examples-from-docusaurus/2016-03-11-blog-post.md @@ -0,0 +1,18 @@ +--- +title: Blog Title +author: Blog Author +authorURL: http://twitter.com/ +authorFBID: 100002976521003 +--- + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus elementum massa eget nulla aliquet sagittis. Proin odio tortor, vulputate ut odio in, ultrices ultricies augue. Cras ornare ultrices lorem malesuada iaculis. Etiam sit amet libero tempor, pulvinar mauris sed, sollicitudin sapien. + + + +Mauris vestibulum ullamcorper nibh, ut semper purus pulvinar ut. Donec volutpat orci sit amet mauris malesuada, non pulvinar augue aliquam. Vestibulum ultricies at urna ut suscipit. Morbi iaculis, erat at imperdiet semper, ipsum nulla sodales erat, eget tincidunt justo dui quis justo. Pellentesque dictum bibendum diam at aliquet. Sed pulvinar, dolor quis finibus ornare, eros odio facilisis erat, eu rhoncus nunc dui sed ex. Nunc gravida dui massa, sed ornare arcu tincidunt sit amet. Maecenas efficitur sapien neque, a laoreet libero feugiat ut. + +Nulla facilisi. Maecenas sodales nec purus eget posuere. Sed sapien quam, pretium a risus in, porttitor dapibus erat. Sed sit amet fringilla ipsum, eget iaculis augue. Integer sollicitudin tortor quis ultricies aliquam. Suspendisse fringilla nunc in tellus cursus, at placerat tellus scelerisque. Sed tempus elit a sollicitudin rhoncus. Nulla facilisi. Morbi nec dolor dolor. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Cras et aliquet lectus. Pellentesque sit amet eros nisi. Quisque ac sapien in sapien congue accumsan. Nullam in posuere ante. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Proin lacinia leo a nibh fringilla pharetra. + +Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin venenatis lectus dui, vel ultrices ante bibendum hendrerit. Aenean egestas feugiat dui id hendrerit. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur in tellus laoreet, eleifend nunc id, viverra leo. Proin vulputate non dolor vel vulputate. Curabitur pretium lobortis felis, sit amet finibus lorem suscipit ut. Sed non mollis risus. Duis sagittis, mi in euismod tincidunt, nunc mauris vestibulum urna, at euismod est elit quis erat. Phasellus accumsan vitae neque eu placerat. In elementum arcu nec tellus imperdiet, eget maximus nulla sodales. Curabitur eu sapien eget nisl sodales fermentum. + +Phasellus pulvinar ex id commodo imperdiet. Praesent odio nibh, sollicitudin sit amet faucibus id, placerat at metus. Donec vitae eros vitae tortor hendrerit finibus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Quisque vitae purus dolor. Duis suscipit ac nulla et finibus. Phasellus ac sem sed dui dictum gravida. Phasellus eleifend vestibulum facilisis. Integer pharetra nec enim vitae mattis. Duis auctor, lectus quis condimentum bibendum, nunc dolor aliquam massa, id bibendum orci velit quis magna. Ut volutpat nulla nunc, sed interdum magna condimentum non. Sed urna metus, scelerisque vitae consectetur a, feugiat quis magna. Donec dignissim ornare nisl, eget tempor risus malesuada quis. diff --git a/website/website/blog-examples-from-docusaurus/2017-04-10-blog-post-two.md b/website/website/blog-examples-from-docusaurus/2017-04-10-blog-post-two.md new file mode 100644 index 000000000000..3ab4637bd5bf --- /dev/null +++ b/website/website/blog-examples-from-docusaurus/2017-04-10-blog-post-two.md @@ -0,0 +1,18 @@ +--- +title: New Blog Post +author: Blog Author +authorURL: http://twitter.com/ +authorFBID: 100002976521003 +--- + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus elementum massa eget nulla aliquet sagittis. Proin odio tortor, vulputate ut odio in, ultrices ultricies augue. Cras ornare ultrices lorem malesuada iaculis. Etiam sit amet libero tempor, pulvinar mauris sed, sollicitudin sapien. + + + +Mauris vestibulum ullamcorper nibh, ut semper purus pulvinar ut. Donec volutpat orci sit amet mauris malesuada, non pulvinar augue aliquam. Vestibulum ultricies at urna ut suscipit. Morbi iaculis, erat at imperdiet semper, ipsum nulla sodales erat, eget tincidunt justo dui quis justo. Pellentesque dictum bibendum diam at aliquet. Sed pulvinar, dolor quis finibus ornare, eros odio facilisis erat, eu rhoncus nunc dui sed ex. Nunc gravida dui massa, sed ornare arcu tincidunt sit amet. Maecenas efficitur sapien neque, a laoreet libero feugiat ut. + +Nulla facilisi. Maecenas sodales nec purus eget posuere. Sed sapien quam, pretium a risus in, porttitor dapibus erat. Sed sit amet fringilla ipsum, eget iaculis augue. Integer sollicitudin tortor quis ultricies aliquam. Suspendisse fringilla nunc in tellus cursus, at placerat tellus scelerisque. Sed tempus elit a sollicitudin rhoncus. Nulla facilisi. Morbi nec dolor dolor. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Cras et aliquet lectus. Pellentesque sit amet eros nisi. Quisque ac sapien in sapien congue accumsan. Nullam in posuere ante. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Proin lacinia leo a nibh fringilla pharetra. + +Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin venenatis lectus dui, vel ultrices ante bibendum hendrerit. Aenean egestas feugiat dui id hendrerit. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur in tellus laoreet, eleifend nunc id, viverra leo. Proin vulputate non dolor vel vulputate. Curabitur pretium lobortis felis, sit amet finibus lorem suscipit ut. Sed non mollis risus. Duis sagittis, mi in euismod tincidunt, nunc mauris vestibulum urna, at euismod est elit quis erat. Phasellus accumsan vitae neque eu placerat. In elementum arcu nec tellus imperdiet, eget maximus nulla sodales. Curabitur eu sapien eget nisl sodales fermentum. + +Phasellus pulvinar ex id commodo imperdiet. Praesent odio nibh, sollicitudin sit amet faucibus id, placerat at metus. Donec vitae eros vitae tortor hendrerit finibus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Quisque vitae purus dolor. Duis suscipit ac nulla et finibus. Phasellus ac sem sed dui dictum gravida. Phasellus eleifend vestibulum facilisis. Integer pharetra nec enim vitae mattis. Duis auctor, lectus quis condimentum bibendum, nunc dolor aliquam massa, id bibendum orci velit quis magna. Ut volutpat nulla nunc, sed interdum magna condimentum non. Sed urna metus, scelerisque vitae consectetur a, feugiat quis magna. Donec dignissim ornare nisl, eget tempor risus malesuada quis. diff --git a/website/website/blog-examples-from-docusaurus/2017-09-25-testing-rss.md b/website/website/blog-examples-from-docusaurus/2017-09-25-testing-rss.md new file mode 100644 index 000000000000..b7ff8129ceb7 --- /dev/null +++ b/website/website/blog-examples-from-docusaurus/2017-09-25-testing-rss.md @@ -0,0 +1,11 @@ +--- +title: Adding RSS Support - RSS Truncation Test +author: Eric Nakagawa +authorURL: http://twitter.com/ericnakagawa +authorFBID: 661277173 +--- +1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 + +This should be truncated. + +This line should never render in XML. diff --git a/website/website/blog-examples-from-docusaurus/2017-09-26-adding-rss.md b/website/website/blog-examples-from-docusaurus/2017-09-26-adding-rss.md new file mode 100644 index 000000000000..eeb4f0477e59 --- /dev/null +++ b/website/website/blog-examples-from-docusaurus/2017-09-26-adding-rss.md @@ -0,0 +1,10 @@ +--- +title: Adding RSS Support +author: Eric Nakagawa +authorURL: http://twitter.com/ericnakagawa +authorFBID: 661277173 +--- + +This is a test post. + +A whole bunch of other information. diff --git a/website/website/blog-examples-from-docusaurus/2017-10-24-new-version-1.0.0.md b/website/website/blog-examples-from-docusaurus/2017-10-24-new-version-1.0.0.md new file mode 100644 index 000000000000..60761c02dc6b --- /dev/null +++ b/website/website/blog-examples-from-docusaurus/2017-10-24-new-version-1.0.0.md @@ -0,0 +1,8 @@ +--- +title: New Version 1.0.0 +author: Eric Nakagawa +authorURL: http://twitter.com/ericnakagawa +authorFBID: 661277173 +--- + +This blog post will test file name parsing issues when periods are present. diff --git a/website/website/core/Footer.js b/website/website/core/Footer.js new file mode 100644 index 000000000000..a9595b6f3eb6 --- /dev/null +++ b/website/website/core/Footer.js @@ -0,0 +1,101 @@ +/** + * 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 React = require('react'); + +class Footer extends React.Component { + docUrl(doc, language) { + const baseUrl = this.props.config.baseUrl; + return `${baseUrl}docs/${language ? `${language}/` : ''}${doc}`; + } + + pageUrl(doc, language) { + const baseUrl = this.props.config.baseUrl; + return baseUrl + (language ? `${language}/` : '') + doc; + } + + render() { + return ( + + ); + } +} + +module.exports = Footer; diff --git a/website/website/package.json b/website/website/package.json new file mode 100644 index 000000000000..642b5dabd954 --- /dev/null +++ b/website/website/package.json @@ -0,0 +1,14 @@ +{ + "scripts": { + "examples": "docusaurus-examples", + "start": "docusaurus-start", + "build": "docusaurus-build", + "publish-gh-pages": "docusaurus-publish", + "write-translations": "docusaurus-write-translations", + "version": "docusaurus-version", + "rename-version": "docusaurus-rename-version" + }, + "devDependencies": { + "docusaurus": "^1.3.3" + } +} diff --git a/website/website/pages/en/help.js b/website/website/pages/en/help.js new file mode 100755 index 000000000000..f50dbbb94c83 --- /dev/null +++ b/website/website/pages/en/help.js @@ -0,0 +1,58 @@ +/** + * 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 React = require('react'); + +const CompLibrary = require('../../core/CompLibrary.js'); + +const Container = CompLibrary.Container; +const GridBlock = CompLibrary.GridBlock; + +const siteConfig = require(`${process.cwd()}/siteConfig.js`); + +function docUrl(doc, language) { + return `${siteConfig.baseUrl}docs/${language ? `${language}/` : ''}${doc}`; +} + +class Help extends React.Component { + render() { + const language = this.props.language || ''; + const supportLinks = [ + { + content: `Learn more using the [documentation on this site.](${docUrl( + 'doc1.html', + language + )})`, + title: 'Browse Docs', + }, + { + content: 'Ask questions about the documentation and project', + title: 'Join the community', + }, + { + content: "Find out what's new with this project", + title: 'Stay up to date', + }, + ]; + + return ( +
+ +
+
+

Need help?

+
+

This project is maintained by a dedicated group of people.

+ +
+
+
+ ); + } +} + +module.exports = Help; diff --git a/website/website/pages/en/index.js b/website/website/pages/en/index.js new file mode 100755 index 000000000000..62f284c8a462 --- /dev/null +++ b/website/website/pages/en/index.js @@ -0,0 +1,215 @@ +/** + * 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 React = require('react'); + +const CompLibrary = require('../../core/CompLibrary.js'); + +const MarkdownBlock = CompLibrary.MarkdownBlock; /* Used to read markdown */ +const Container = CompLibrary.Container; +const GridBlock = CompLibrary.GridBlock; + +const siteConfig = require(`${process.cwd()}/siteConfig.js`); + +function imgUrl(img) { + return `${siteConfig.baseUrl}img/${img}`; +} + +function docUrl(doc, language) { + return `${siteConfig.baseUrl}docs/${language ? `${language}/` : ''}${doc}`; +} + +function pageUrl(page, language) { + return siteConfig.baseUrl + (language ? `${language}/` : '') + page; +} + +class Button extends React.Component { + render() { + return ( +
+ + {this.props.children} + +
+ ); + } +} + +Button.defaultProps = { + target: '_self', +}; + +const SplashContainer = props => ( +
+
+
{props.children}
+
+
+); + +const Logo = props => ( +
+ Project Logo +
+); + +const ProjectTitle = () => ( +

+ {siteConfig.title} + {siteConfig.tagline} +

+); + +const PromoSection = props => ( +
+
+
{props.children}
+
+
+); + +class HomeSplash extends React.Component { + render() { + const language = this.props.language || ''; + return ( + + +
+ + + + + + +
+
+ ); + } +} + +const Block = props => ( + + + +); + +const Features = () => ( + + {[ + { + content: 'This is the content of my feature', + image: imgUrl('docusaurus.svg'), + imageAlign: 'top', + title: 'Feature One', + }, + { + content: 'The content of my second feature', + image: imgUrl('docusaurus.svg'), + imageAlign: 'top', + title: 'Feature Two', + }, + ]} + +); + +const FeatureCallout = () => ( +
+

Feature Callout

+ These are features of this project +
+); + +const LearnHow = () => ( + + {[ + { + content: 'Talk about learning how to use this', + image: imgUrl('docusaurus.svg'), + imageAlign: 'right', + title: 'Learn How', + }, + ]} + +); + +const TryOut = () => ( + + {[ + { + content: 'Talk about trying this out', + image: imgUrl('docusaurus.svg'), + imageAlign: 'left', + title: 'Try it Out', + }, + ]} + +); + +const Description = () => ( + + {[ + { + content: 'This is another description of how this project is useful', + image: imgUrl('docusaurus.svg'), + imageAlign: 'right', + title: 'Description', + }, + ]} + +); + +const Showcase = props => { + if ((siteConfig.users || []).length === 0) { + return null; + } + + const showcase = siteConfig.users.filter(user => user.pinned).map(user => ( + + {user.caption} + + )); + + return ( +
+

Who is Using This?

+

This project is used by all these people

+
{showcase}
+
+ + More {siteConfig.title} Users + +
+
+ ); +}; + +class Index extends React.Component { + render() { + const language = this.props.language || ''; + + return ( +
+ +
+ + + + + + +
+
+ ); + } +} + +module.exports = Index; diff --git a/website/website/pages/en/users.js b/website/website/pages/en/users.js new file mode 100644 index 000000000000..b03fb812addf --- /dev/null +++ b/website/website/pages/en/users.js @@ -0,0 +1,49 @@ +/** + * 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 React = require('react'); + +const CompLibrary = require('../../core/CompLibrary.js'); + +const Container = CompLibrary.Container; + +const siteConfig = require(`${process.cwd()}/siteConfig.js`); + +class Users extends React.Component { + render() { + if ((siteConfig.users || []).length === 0) { + return null; + } + + const editUrl = `${siteConfig.repoUrl}/edit/master/website/siteConfig.js`; + const showcase = siteConfig.users.map(user => ( + + {user.caption} + + )); + + return ( +
+ +
+
+

Who is Using This?

+

This project is used by many folks

+
+
{showcase}
+

Are you using this project?

+ + Add your company + +
+
+
+ ); + } +} + +module.exports = Users; diff --git a/website/website/sidebars.json b/website/website/sidebars.json new file mode 100644 index 000000000000..7a1d0540185d --- /dev/null +++ b/website/website/sidebars.json @@ -0,0 +1,10 @@ +{ + "docs": { + "Docusaurus": ["doc1"], + "First Category": ["doc2"], + "Second Category": ["doc3"] + }, + "docs-other": { + "First Category": ["doc4", "doc5"] + } +} diff --git a/website/website/siteConfig.js b/website/website/siteConfig.js new file mode 100644 index 000000000000..627fa24ef963 --- /dev/null +++ b/website/website/siteConfig.js @@ -0,0 +1,100 @@ +/** + * 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. + */ + +// See https://docusaurus.io/docs/site-config for all the possible +// site configuration options. + +// List of projects/orgs using your project for the users page. +const users = [ + { + caption: 'User1', + // You will need to prepend the image path with your baseUrl + // if it is not '/', like: '/test-site/img/docusaurus.svg'. + image: '/img/docusaurus.svg', + infoLink: 'https://www.facebook.com', + pinned: true, + }, +]; + +const siteConfig = { + title: 'Test Site', // Title for your website. + tagline: 'A website for testing', + url: 'https://your-docusaurus-test-site.com', // Your website URL + baseUrl: '/', // Base URL for your project */ + // For github.io type URLs, you would set the url and baseUrl like: + // url: 'https://facebook.github.io', + // baseUrl: '/test-site/', + + // Used for publishing and more + projectName: 'test-site', + organizationName: 'facebook', + // For top-level user or org sites, the organization is still the same. + // e.g., for the https://JoelMarcey.github.io site, it would be set like... + // organizationName: 'JoelMarcey' + + // For no header links in the top nav bar -> headerLinks: [], + headerLinks: [ + {doc: 'doc1', label: 'Docs'}, + {doc: 'doc4', label: 'API'}, + {page: 'help', label: 'Help'}, + {blog: true, label: 'Blog'}, + ], + + // If you have users set above, you add it here: + users, + + /* path to images for header/footer */ + headerIcon: 'img/docusaurus.svg', + footerIcon: 'img/docusaurus.svg', + favicon: 'img/favicon.png', + + /* Colors for website */ + colors: { + primaryColor: '#2E8555', + secondaryColor: '#205C3B', + }, + + /* Custom fonts for website */ + /* + fonts: { + myFont: [ + "Times New Roman", + "Serif" + ], + myOtherFont: [ + "-apple-system", + "system-ui" + ] + }, + */ + + // This copyright info is used in /core/Footer.js and blog RSS/Atom feeds. + copyright: `Copyright © ${new Date().getFullYear()} Your Name or Your Company Name`, + + highlight: { + // Highlight.js theme to use for syntax highlighting in code blocks. + theme: 'default', + }, + + // Add custom scripts here that would be placed in