-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/facebook/Docusaurus into …
…deepmerge
- Loading branch information
Showing
132 changed files
with
848 additions
and
4,212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
packages/docusaurus-1.x/lib/core/__tests__/__fixtures__/split-tab_doc1.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!--DOCUSAURUS_CODE_TABS--> | ||
<!--JavaScript--> | ||
```js | ||
console.log('Hello, world!'); | ||
``` | ||
<!--Python--> | ||
```py | ||
print('Hello, world!') | ||
``` | ||
|
||
<!--C--> | ||
```C | ||
#include <stdio.h> | ||
|
||
int main() { | ||
printf("Hello World!"); | ||
return 0; | ||
} | ||
``` | ||
|
||
<!--Pascal--> | ||
```Pascal | ||
program HelloWorld; | ||
begin | ||
WriteLn('Hello, world!'); | ||
end. | ||
``` | ||
|
||
<!--END_DOCUSAURUS_CODE_TABS--> |
32 changes: 32 additions & 0 deletions
32
packages/docusaurus-1.x/lib/core/__tests__/__fixtures__/split-tab_doc2.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
1. Doc | ||
* Hello | ||
<!--DOCUSAURUS_CODE_TABS--> | ||
<!--JavaScript--> | ||
```js | ||
console.log('Hello, world!'); | ||
``` | ||
<!--Python--> | ||
```py | ||
print('Hello, world!') | ||
``` | ||
|
||
<!--C--> | ||
```C | ||
#include <stdio.h> | ||
int main() { | ||
printf("Hello World!"); | ||
return 0; | ||
} | ||
``` | ||
|
||
<!--Pascal--> | ||
```Pascal | ||
program HelloWorld; | ||
begin | ||
WriteLn('Hello, world!'); | ||
end. | ||
``` | ||
|
||
<!--END_DOCUSAURUS_CODE_TABS--> | ||
1. Do that |
10 changes: 10 additions & 0 deletions
10
packages/docusaurus-1.x/lib/core/__tests__/__fixtures__/website/i18n/en.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"_comment": "This file is auto-generated by write-translations.js", | ||
"localized-strings": { | ||
}, | ||
"pages-strings": { | ||
"Help Translate|recruit community translators for your project": "Help Us Translate", | ||
"Edit this Doc|recruitment message asking to edit the doc source": "Edit", | ||
"Translate this Doc|recruitment message asking to translate the docs": "Translate" | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
packages/docusaurus-1.x/lib/core/__tests__/__fixtures__/website/siteConfig.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
/* List of projects/orgs using your project for the users page */ | ||
|
||
const siteConfig = { | ||
title: 'Docusaurus', | ||
tagline: 'Easy to Maintain Open Source Documentation Websites', | ||
url: 'https://docusaurus.io', | ||
baseUrl: '/', | ||
organizationName: 'facebook', | ||
projectName: 'Docusaurus', | ||
cname: 'docusaurus.io', | ||
noIndex: false, | ||
editUrl: 'https://github.com/facebook/docusaurus/edit/master/docs/', | ||
headerLinks: [], | ||
headerIcon: 'img/docusaurus.svg', | ||
footerIcon: 'img/docusaurus_monochrome.svg', | ||
favicon: 'img/docusaurus.ico', | ||
algolia: { | ||
apiKey: '3eb9507824b8be89e7a199ecaa1a9d2c', | ||
indexName: 'docusaurus', | ||
algoliaOptions: { | ||
facetFilters: ['language:LANGUAGE', 'version:VERSION'], | ||
}, | ||
}, | ||
colors: { | ||
primaryColor: '#2E8555', | ||
secondaryColor: '#205C3B', | ||
}, | ||
translationRecruitingLink: 'https://crowdin.com/project/docusaurus', | ||
copyright: `Copyright © ${new Date().getFullYear()} Facebook Inc.`, | ||
usePrism: ['jsx'], | ||
highlight: { | ||
theme: 'atom-one-dark', | ||
}, | ||
scripts: [ | ||
'https://buttons.github.io/buttons.js', | ||
'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js', | ||
'/js/code-blocks-buttons.js', | ||
], | ||
gaTrackingId: 'UA-44373548-31', | ||
facebookAppId: '199138890728411', | ||
facebookComments: true, | ||
twitter: 'true', | ||
twitterUsername: 'docusaurus', | ||
ogImage: 'img/docusaurus.png', | ||
twitterImage: 'img/docusaurus.png', | ||
onPageNav: 'separate', | ||
cleanUrl: true, | ||
scrollToTop: true, | ||
scrollToTopOptions: { | ||
zIndex: 100, | ||
}, | ||
enableUpdateTime: true, | ||
enableUpdateBy: true, | ||
docsSideNavCollapsible: true, | ||
}; | ||
|
||
module.exports = siteConfig; |
Oops, something went wrong.