mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-30 02:37:59 +02:00
Add plugin usage to build script, update example files
This commit is contained in:
parent
30a8ff329a
commit
a7b5148e06
3 changed files with 9 additions and 64 deletions
|
@ -1,59 +0,0 @@
|
||||||
{
|
|
||||||
"localized-strings": {
|
|
||||||
"doc1": "Docusaurus",
|
|
||||||
"doc2": "The Second in a Series of Documents",
|
|
||||||
"doc3": "The Third in a Series of Documents",
|
|
||||||
"doc4": "Separate Sidebar Document 1",
|
|
||||||
"doc5": "Separate Sidebar Document 2",
|
|
||||||
"Docusaurus": "Docusaurus Guide",
|
|
||||||
"First Category": "Example Category 1",
|
|
||||||
"Second Category": "Example Category 2",
|
|
||||||
"previous": "Previous",
|
|
||||||
"next": "Continue Reading",
|
|
||||||
"Docs": "Docs",
|
|
||||||
"API": "API",
|
|
||||||
"GitHub": "GitHub",
|
|
||||||
"Help": "Help",
|
|
||||||
"Blog": "Blog"
|
|
||||||
},
|
|
||||||
"tagline": "Tagline",
|
|
||||||
"pages-strings": {
|
|
||||||
"index": {
|
|
||||||
"My Tagline": "My Tagline",
|
|
||||||
"Try It Out": "Try It Out",
|
|
||||||
"Example Link": "Example Link",
|
|
||||||
"Example Link 2": "Example Link 2",
|
|
||||||
"This is the content of my feature": "This is the content of my feature",
|
|
||||||
"The content of my second feature": "The content of my second feature",
|
|
||||||
"These are features of this project": "These are features of this project",
|
|
||||||
"Talk about learning how to use this": "Talk about learning how to use this",
|
|
||||||
"Talk about trying this out": "Talk about trying this out",
|
|
||||||
"This is another description of how this project is useful": "This is another description of how this project is useful",
|
|
||||||
"This project is used by all these people": "This project is used by all these people",
|
|
||||||
"More \"Docusaurus\" Users": "More \"Docusaurus\" Users",
|
|
||||||
"Feature One": "Feature One",
|
|
||||||
"Feature Two": "Feature Two",
|
|
||||||
"Feature Callout": "Feature Callout",
|
|
||||||
"Learn How": "Learn How",
|
|
||||||
"Try it Out": "Try it Out",
|
|
||||||
"Description": "Description",
|
|
||||||
"Who's Using This?": "Who's Using This?"
|
|
||||||
},
|
|
||||||
"help": {
|
|
||||||
"Learn more using the [documentation on this site.](/test-site/docs/en/doc1.html)": "Learn more using the [documentation on this site.](/test-site/docs/en/doc1.html)",
|
|
||||||
"Browse Docs": "Browse Docs",
|
|
||||||
"Ask questions about the documentation and project": "Ask questions about the documentation and project",
|
|
||||||
"Join the community": "Join the community",
|
|
||||||
"Find out what's new with this project": "Find out what's new with this project",
|
|
||||||
"Stay up to date": "Stay up to date",
|
|
||||||
"Need help?": "Need help?",
|
|
||||||
"This project is maintained by a dedicated group of people.": "This project is maintained by a dedicated group of people."
|
|
||||||
},
|
|
||||||
"users": {
|
|
||||||
"Who's Using This?": "Who's Using This?",
|
|
||||||
"This project is used by many folks": "This project is used by many folks",
|
|
||||||
"Are you using this project?": "Are you using this project?",
|
|
||||||
"Add your company": "Add your company"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -7,8 +7,6 @@
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const fs = require("fs");
|
|
||||||
|
|
||||||
/* List of projects/orgs using your project for the users page */
|
/* List of projects/orgs using your project for the users page */
|
||||||
const users = [
|
const users = [
|
||||||
{
|
{
|
||||||
|
@ -76,6 +74,11 @@ const siteConfig = {
|
||||||
/* gaTrackingId: "" */
|
/* gaTrackingId: "" */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/* DO NOT EDIT BELOW THIS LINE */
|
||||||
|
|
||||||
|
const fs = require("fs");
|
||||||
|
|
||||||
let languages;
|
let languages;
|
||||||
if (fs.existsSync("./languages.js")) {
|
if (fs.existsSync("./languages.js")) {
|
||||||
languages = require("./languages.js");
|
languages = require("./languages.js");
|
||||||
|
|
|
@ -9,10 +9,11 @@
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require('babel-register') ({
|
require("babel-register")({
|
||||||
ignore: false,
|
ignore: false,
|
||||||
"presets": ["react"]
|
plugins: [require("./server/translate-plugin.js")],
|
||||||
|
presets: ["react"]
|
||||||
});
|
});
|
||||||
|
|
||||||
const generate = require('./server/generate.js');
|
const generate = require("./server/generate.js");
|
||||||
generate();
|
generate();
|
||||||
|
|
Loading…
Add table
Reference in a new issue