Import internal pages from wiki
Summary: This is the unadulterated output from running: `yarn start static-docs-from-wiki --wiki_name Flipper --site_dir xplat/sonar/website` Reviewed By: passy Differential Revision: D23241773 fbshipit-source-id: 136e99130c77bedfb66bb31e31a7b331278857bb
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4228e0dd26
commit
c6569470f4
@@ -6,17 +6,18 @@
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
function FBInternalWithOssFallback(elements, fallback) {
|
||||
return process.env.FB_INTERNAL ? elements : fallback;
|
||||
}
|
||||
|
||||
const repoUrl = 'https://github.com/facebook/flipper';
|
||||
|
||||
const siteConfig = {
|
||||
title: FBInternalWithOssFallback('Flipper @FB', 'Flipper'),
|
||||
tagline: 'Extensible mobile app debugging',
|
||||
url: FBInternalWithOssFallback('https://flipper.thefacebook.com/', 'https://fbflipper.com/'),
|
||||
url: FBInternalWithOssFallback(
|
||||
'https://flipper.thefacebook.com/',
|
||||
'https://fbflipper.com/',
|
||||
),
|
||||
baseUrl: '/',
|
||||
projectName: 'flipper',
|
||||
// TODO: T69061026 enable once sandy docs are complete: external_domain: 'fbflipper.com',
|
||||
@@ -28,10 +29,33 @@ const siteConfig = {
|
||||
src: 'img/icon.png',
|
||||
},
|
||||
items: [
|
||||
{to: 'docs/features/index', label: 'Features', position: 'right'},
|
||||
{to: 'docs/getting-started/index', label: 'Setup', position: 'right'},
|
||||
{to: 'docs/extending/index', label: 'Extending', position: 'right'},
|
||||
{href: repoUrl, label: 'GitHub', position: 'right'},
|
||||
{
|
||||
to: 'docs/features/index',
|
||||
label: 'Features',
|
||||
position: 'right',
|
||||
},
|
||||
{
|
||||
to: 'docs/getting-started/index',
|
||||
label: 'Setup',
|
||||
position: 'right',
|
||||
},
|
||||
{
|
||||
to: 'docs/extending/index',
|
||||
label: 'Extending',
|
||||
position: 'right',
|
||||
},
|
||||
{
|
||||
href: repoUrl,
|
||||
label: 'GitHub',
|
||||
position: 'right',
|
||||
},
|
||||
...FBInternalOnly([
|
||||
{
|
||||
to: 'docs/fb/index',
|
||||
label: 'FB Internal',
|
||||
position: 'right',
|
||||
},
|
||||
]),
|
||||
],
|
||||
},
|
||||
colorMode: {
|
||||
@@ -46,14 +70,23 @@ const siteConfig = {
|
||||
{
|
||||
title: 'Learn',
|
||||
items: [
|
||||
{label: 'Getting Started', to: 'docs/getting-started/index'},
|
||||
{label: 'Plugin Creation Tutorial', to: 'docs/tutorial/intro'},
|
||||
{
|
||||
label: 'Getting Started',
|
||||
to: 'docs/getting-started/index',
|
||||
},
|
||||
{
|
||||
label: 'Plugin Creation Tutorial',
|
||||
to: 'docs/tutorial/intro',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Plugins',
|
||||
items: [
|
||||
{label: 'Core Plugins', to: 'docs/features/index'},
|
||||
{
|
||||
label: 'Core Plugins',
|
||||
to: 'docs/features/index',
|
||||
},
|
||||
{
|
||||
label: 'Community Plugins',
|
||||
href: 'https://www.npmjs.com/search?q=keywords:flipper-plugin',
|
||||
@@ -77,10 +110,16 @@ const siteConfig = {
|
||||
{
|
||||
title: 'More',
|
||||
items: [
|
||||
{label: 'Twitter', href: 'https://twitter.com/flipper_fb'},
|
||||
{label: 'GitHub', href: repoUrl},
|
||||
{
|
||||
label: 'Twitter',
|
||||
href: 'https://twitter.com/flipper_fb',
|
||||
},
|
||||
{
|
||||
label: 'GitHub',
|
||||
href: repoUrl,
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
],
|
||||
copyright: 'Copyright © ' + new Date().getFullYear() + ' Facebook',
|
||||
logo: {
|
||||
@@ -127,4 +166,8 @@ const siteConfig = {
|
||||
],
|
||||
};
|
||||
|
||||
function FBInternalOnly(elements, fallback) {
|
||||
return process.env.FB_INTERNAL == 1 ? elements : fallback || [];
|
||||
}
|
||||
|
||||
module.exports = siteConfig;
|
||||
|
||||
Reference in New Issue
Block a user